Class MatrixComponents
java.lang.Object
com.singularsys.jep.ComponentSubset
com.singularsys.extensions.matrix.MatrixComponents
- All Implemented Interfaces:
JepComponent,Serializable
- Direct Known Subclasses:
DoubleMatrixComponents
Creates matrix specific components.
Creates a
MatrixFunctionTable and MatrixOperatorTable
based on supplied MatrixFactoryI and MatrixFieldI.
Unlike MatrixComponentSet it does not create a DimensionVisitor
or use the StandardConfigurableParser needed for correct parsing of element access.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield) Constructor with no logical or string supportMatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield, boolean logical, boolean strings) Constructor with optional logical and string support -
Method Summary
Modifier and TypeMethodDescriptionprotected static MatrixFieldIbuildField(MatrixFieldI mfield, boolean logical, boolean strings) Creates a field with optional logical and string supportGets a light-weight instance suitable for using in multiple threads.Return a function tableReturn an operator tablevoidInitialize the component.Methods inherited from class com.singularsys.jep.ComponentSubset
getParts
-
Constructor Details
-
MatrixComponents
Constructor with no logical or string support- Parameters:
mfact- the MatrixFactory to usemfield- the MatrixField to use
-
MatrixComponents
public MatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield, boolean logical, boolean strings) Constructor with optional logical and string support- Parameters:
mfact- the MatrixFactory to usemfield- the MatrixField to uselogical- whether operations on booleans are supportedstrings- whether string operations are supported
-
-
Method Details
-
buildField
Creates a field with optional logical and string support- Parameters:
mfield- base fieldlogical- whether operations on booleans are supportedstrings- whether string operations are supported- Returns:
-
init
Description copied from interface:JepComponentInitialize the component. This method is called whenever a component is added to Jep. Hence, it allows components to keep track of the other components they may rely on.- Specified by:
initin interfaceJepComponent- Overrides:
initin classComponentSubset- Parameters:
jep- the current Jep instance
-
getLightWeightInstance
Description copied from interface:JepComponentGets a light-weight instance suitable for using in multiple threads.- Specified by:
getLightWeightInstancein interfaceJepComponent- Overrides:
getLightWeightInstancein classComponentSubset- Returns:
- either a new instance, null or 'this'.
-
getMatrixFactory
-
getMatrixField
-
getMatrixFunctionTable
Return a function table- Returns:
- a table created during construction
- Since:
- Jep 4.0/Extensions 2.1
-
getMatrixOperatorTable
Return an operator table- Returns:
- a table created during construction
- Since:
- Jep 4.0/Extensions 2.1
-