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 c923c39 commit 0c3656bCopy full SHA for 0c3656b
test/linalg.jl
@@ -18,3 +18,15 @@ N = ModelingToolkit.nullspace(A)
18
@test size(N, 2) == 3
19
@test rank(N) == 3
20
@test iszero(A * N)
21
+
22
+A = [0 1 2 0 1 0;
23
+ 0 0 0 0 0 1;
24
25
+ 1 0 1 2 0 1;
26
+ 0 0 0 2 1 0]
27
+col_order = Int[]
28
+N = ModelingToolkit.nullspace(A; col_order)
29
+colspan = A[:,col_order[1:4]] # rank is 4
30
+@test iszero(ModelingToolkit.nullspace(colspan))
31
+@test !iszero(ModelingToolkit.nullspace(A[:,col_order[1:5]]))
32
+@test !iszero(ModelingToolkit.nullspace(A[:,[col_order[1:4]...,col_order[6]]]))
0 commit comments