We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b15cb commit d0117a7Copy full SHA for d0117a7
Project.toml
@@ -38,7 +38,7 @@ Infinities = "0.1"
38
IntervalSets = "0.7"
39
LazyArrays = "2"
40
Makie = "0.20, 0.21, 0.22, 0.24"
41
-QuasiArrays = "0.13"
+QuasiArrays = "0.13.1"
42
Random = "1.0"
43
RecipesBase = "1.0"
44
StaticArrays = "1.0"
test/test_basisconcat.jl
@@ -1,4 +1,4 @@
1
-using ContinuumArrays, BlockArrays, InfiniteArrays, Test
+using ContinuumArrays, BlockArrays, InfiniteArrays, StaticArrays, Test
2
import ContinuumArrays: PiecewiseBasis, VcatBasis, HvcatBasis, arguments, ApplyLayout, checkpoints, UnionDomain
3
4
@testset "ConcatBasis" begin
@@ -10,6 +10,14 @@ import ContinuumArrays: PiecewiseBasis, VcatBasis, HvcatBasis, arguments, ApplyL
10
H∞ = [ones(x) Q]
11
@test H∞[:,1:∞] isa SubQuasiArray
12
@test (H∞')[1:∞,:] isa SubQuasiArray
13
+
14
+ 𝐱 = Inclusion((-1.0..1)^2)
15
+ @test 𝐱[SVector(0.1,0.2)] == SVector(0.1,0.2)
16
+ H = [first.(𝐱) last.(𝐱)]
17
+ @test H[SVector(0.1,0.2),1] == 0.1
18
+ @test H[SVector(0.1,0.2),1:2] == H[SVector(0.1,0.2),:] == [0.1, 0.2]
19
+ @test H[[SVector(0.1,0.2),SVector(0.3,0.4)],1] == [0.1,0.3]
20
+ @test H[[SVector(0.1,0.2),SVector(0.3,0.4)],1:2] == H[[SVector(0.1,0.2),SVector(0.3,0.4)],:] == [0.1 0.2; 0.3 0.4]
21
end
22
@testset "PiecewiseBasis" begin
23
S1 = LinearSpline(0:1)
0 commit comments