Skip to content

Commit 5b6c8d0

Browse files
authored
Upgrade to FillArrays v1 (#629)
1 parent 13ebdba commit 5b6c8d0

File tree

4 files changed

+8
-30
lines changed

4 files changed

+8
-30
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.9.22"
3+
version = "0.9.23"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
@@ -36,7 +36,7 @@ DSP = "0.6, 0.7"
3636
DomainSets = "0.5, 0.6, 0.7"
3737
DualNumbers = "0.6.2"
3838
FFTW = "0.3, 1"
39-
FillArrays = "0.11, 0.12, 0.13, 1"
39+
FillArrays = "1"
4040
InfiniteArrays = "0.13"
4141
Infinities = "0.1"
4242
IntervalSets = "0.5, 0.6, 0.7"

src/ApproxFunBase.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ end
149149

150150
include("LinearAlgebra/LinearAlgebra.jl")
151151
include("Fun.jl")
152-
include("onehotvector.jl")
153152
include("Domains/Domains.jl")
154153
include("Multivariate/Multivariate.jl")
155154
include("Operators/Operator.jl")

src/Space.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,3 +724,9 @@ julia> Chebyshev()(1, 0.5)
724724
```
725725
"""
726726
(s::Space)(n::Integer, args...) = s(n)(args...)
727+
728+
# assume that the basis label starts at zero
729+
function basisfunction(sp, oneindex)
730+
oneindex >= 0 || throw(ArgumentError("index to set to one must be non-negative, received $oneindex"))
731+
Fun(sp, OneElement{Float64}(oneindex, oneindex))
732+
end

src/onehotvector.jl

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)