mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-03 09:53:00 +02:00
make all_zero, etc, non-recursive, just work on vectors
This commit is contained in:
@@ -136,7 +136,7 @@ module test_null_space(){
|
||||
|
||||
function nullcheck(A,dim) =
|
||||
let(v=null_space(A))
|
||||
len(v)==dim && all_zero(A*transpose(v),eps=1e-12);
|
||||
len(v)==dim && all_zero(flatten(A*transpose(v)),eps=1e-12);
|
||||
|
||||
A = [[-1, 2, -5, 2],[-3,-1,3,-3],[5,0,5,0],[3,-4,11,-4]];
|
||||
assert(nullcheck(A,1));
|
||||
|
Reference in New Issue
Block a user