Method of mdss.
Assert that the modelβs index vectors are consistent with the size of its tensor.
Source: src/model/@mdss/checkIndexDimensions.m
checkIndexDimensions(sys)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.".
| Argument | Description |
|---|---|
sys |
The mdss model to validate. |
None. The function returns nothing β it either passes silently or throws an assertion error.
mdss Β· allSignalScalarIndices
Β· allEquationScalarIndices
Β· CPNTensor Β· TTTensor
MyToolbox Documentation | Generated automatically by CI/CD pipeline