Class MatrixSwitch
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.misc.functions.Switch
com.singularsys.extensions.matrix.functions.MatrixSwitch
- All Implemented Interfaces:
MatrixFunctionI,CallbackEvaluationI,PostfixMathCommandI,Serializable
A versions of the
Switch function which implements the
MatrixFunctionI interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.jep.misc.functions.Switch
Switch.NullBehaviour -
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, description, name, NaN, numberOfParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcDims(Dimensions... inDims) Attempts to calculate the dimensions of a result of a PostfixMathCommand.Methods inherited from class com.singularsys.jep.misc.functions.Switch
checkNumberOfParameters, evaluate, getNullBehaviourMethods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, run, setCurNumberOfParameters, setDescription, setName, toString, toString
-
Constructor Details
-
MatrixSwitch
public MatrixSwitch()
-
-
Method Details
-
calcDims
Description copied from interface:MatrixFunctionIAttempts to calculate the dimensions of a result of a PostfixMathCommand.- Specified by:
calcDimsin interfaceMatrixFunctionI- Parameters:
inDims- the dimensions of each argument- Returns:
- the dimension of the result, or null, if it cannot be calculated
- Throws:
ParseException- if there is a parse error
-