checkIndexDimensions

Method of mdss.

Assert that the model’s index vectors are consistent with the size of its tensor.

Source: src/model/@mdss/checkIndexDimensions.m

Syntax

checkIndexDimensions(sys)

Description

checkIndexDimensions is an internal consistency check. It verifies that the index vectors of the model cover exactly the rows of the underlying tensor, and raises an error otherwise. It returns nothing; it either passes silently or throws.

Two conditions are asserted:

The expected sizes are read according to the tensor type:

Tensor type Signal rows Equation rows
CPNTensor rows of structureMatrixTrue rows of parameterMatrixOne
TTTensor numel(cores) - 1 second dimension of the first core

Any other tensor class raises "Unsupported tensor type.".

Input arguments

Argument Description
sys The mdss model to validate.

Output arguments

None. The function returns nothing β€” it either passes silently or throws an assertion error.

See also

mdss Β· allSignalScalarIndices Β· allEquationScalarIndices Β· CPNTensor Β· TTTensor


MyToolbox Documentation | Generated automatically by CI/CD pipeline