<< mustBeNonNan Validators mustBeNonZero >>

mustBeNonSparse


Checks that value is not sparse.


Syntax


mustBeNonSparse(var)
mustBeNonSparse(var, argPosition)
C++: void mustBeNonSparse(const ArrayOfVector& args, int argPosition)

Input argument


var

a variable: all supported types and classes that implement issparse method.

argPosition

a positive integer value: Position of input argument.

Description


mustBeNonSparse checks that value is not sparse or raise an error.

Example


mustBeNonSparse(1)
mustBeNonSparse([])
mustBeNonSparse(sparse(3))

See also


issparse.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< mustBeNonNan Validators mustBeNonZero >>