File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ ManifoldsBase = "3362f125-f0bb-47a3-aa74-596ffd7ef2fb"
17
17
Neo4j = " d2adbeaf-5838-5367-8a2f-e46d570981db"
18
18
OrderedCollections = " bac558e1-5e72-5ebc-8fee-abe8a469f55d"
19
19
Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
20
+ RecursiveArrayTools = " 731186ca-8d62-57ce-b412-fbd966d074cd"
20
21
Reexport = " 189a3867-3050-52da-a836-e630ba90ab69"
21
22
Requires = " ae029012-a4dd-5104-9daa-d747884805df"
22
23
SHA = " ea8e919c-243c-51af-8825-aaa63cd721ce"
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ import ManifoldsBase
36
36
import ManifoldsBase: AbstractManifold, manifold_dimension
37
37
export AbstractManifold, manifold_dimension
38
38
39
+ import RecursiveArrayTools: ArrayPartition
40
+ export ArrayPartition
41
+
39
42
import Base: getindex
40
43
41
44
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ struct NotAManifold end
27
27
# @test getPointType(TestVarType2) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
28
28
29
29
@test getPointIdentity (TestVarType1) == zeros (3 )
30
- @test getPointIdentity (TestVarType2). parts [1 ] == ArrayPartition (zeros (3 ), diagm (ones (3 ))). parts [1 ]
31
- @test getPointIdentity (TestVarType2). parts [2 ] == ArrayPartition (zeros (3 ), diagm (ones (3 ))). parts [2 ]
30
+ @test getPointIdentity (TestVarType2)[1 ] == ArrayPartition (zeros (3 ), diagm (ones (3 )))[1 ]
31
+ @test getPointIdentity (TestVarType2)[2 ] == ArrayPartition (zeros (3 ), diagm (ones (3 )))[2 ]
32
32
33
33
# #
34
34
@@ -43,7 +43,7 @@ struct NotAManifold end
43
43
# @test getPointType(TestVarType2()) == ProductRepr{Tuple{Vector{Float64}, Matrix{Float64}}}
44
44
45
45
@test getPointIdentity (TestVarType1 ()) == zeros (3 )
46
- @test getPointIdentity (TestVarType2 ()). parts [1 ] == ArrayPartition (zeros (3 ), diagm (ones (3 ))). parts [1 ]
47
- @test getPointIdentity (TestVarType2 ()). parts [2 ] == ArrayPartition (zeros (3 ), diagm (ones (3 ))). parts [2 ]
46
+ @test getPointIdentity (TestVarType2 ())[1 ] == ArrayPartition (zeros (3 ), diagm (ones (3 )))[1 ]
47
+ @test getPointIdentity (TestVarType2 ())[2 ] == ArrayPartition (zeros (3 ), diagm (ones (3 )))[2 ]
48
48
49
49
end
You can’t perform that action at this time.
0 commit comments