mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Review of is_matrix
This commit is contained in:
parent
80feb93c98
commit
f9e7baa515
1 changed files with 1 additions and 3 deletions
|
@ -985,10 +985,8 @@ function determinant(M) =
|
||||||
function is_matrix(A,m,n,square=false) =
|
function is_matrix(A,m,n,square=false) =
|
||||||
is_list(A)
|
is_list(A)
|
||||||
&& (( is_undef(m) && len(A) ) || len(A)==m)
|
&& (( is_undef(m) && len(A) ) || len(A)==m)
|
||||||
&& is_list(A[0])
|
|
||||||
&& (( is_undef(n) && len(A[0]) ) || len(A[0])==n)
|
|
||||||
&& (!square || len(A) == len(A[0]))
|
&& (!square || len(A) == len(A[0]))
|
||||||
&& is_vector(A[0])
|
&& is_vector(A[0],n)
|
||||||
&& is_consistent(A);
|
&& is_consistent(A);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue