allEquationScalarIndices

Method of mdss.

Test whether the model’s equation index vectors each hold a single row.

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

Syntax

result = allEquationScalarIndices(sys)

Description

allEquationScalarIndices returns true when both equation index vectors — equalityIndex and inequalityIndex — are scalars, i.e. the model has exactly one equality row and one inequality row in its parameter matrix. It is a small predicate helper used internally to decide whether the equation dimension can be treated as a single scalar, and is not normally called directly.

Input arguments

Argument Description
sys The mdss model.

Output arguments

Output Description
result Logical scalar, true if equalityIndex and inequalityIndex are both scalar.

See also

mdss · allSignalScalarIndices · checkIndexDimensions


MyToolbox Documentation | Generated automatically by CI/CD pipeline