<< mustBeScalarOrEmpty | Validators | mustBeText >> |
mustBeSparse(var) |
mustBeSparse(var, argPosition) |
C++: void mustBeSparse(const ArrayOfVector& args, int argPosition) |
a variable: all supported types and classes that implement issparse method.
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)))
Version | Description |
---|---|
1.11.0 | initial version |
Allan CORNET