mustBeSparse
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Checks that value is a sparse matrix or raise an error.
mustBeSparse(var)
mustBeSparse(var, argPosition)
C++: void mustBeSparse(const ArrayOfVector& args, int argPosition)
var - a variable: all supported types and classes that implement issparse method.
argPosition - a positive integer value: Position of input argument.
mustBeSparse checks that value is a sparse matrix or raise an error.
mustBeSparse(true)
mustBeSparse(eye(3, 4))
mustBeSparse(sparse(eye(3, 4)))
1.11.0
initial version
Allan CORNET