Class MatrixComponents
- java.lang.Object
-
- com.singularsys.jep.ComponentSubset
-
- com.singularsys.extensions.matrix.MatrixComponents
-
- All Implemented Interfaces:
JepComponent
,java.io.Serializable
- Direct Known Subclasses:
DoubleMatrixComponents
public class MatrixComponents extends ComponentSubset
Creates matrix specific components. Creates aMatrixFunctionTable
andMatrixOperatorTable
based on suppliedMatrixFactoryI
andMatrixFieldI
. In version 2.0- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixComponents(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static MatrixFieldI
buildField(MatrixFieldI mfield, boolean logical, boolean strings)
Creates a field with optional logical and string supportJepComponent
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.MatrixFactoryI
getMatrixFactory()
MatrixFieldI
getMatrixField()
MatrixFunctionTable
getMatrixFunctionTable()
Return a function tableMatrixOperatorTable
getMatrixOperatorTable()
Return an operator tablevoid
init(Jep jep)
Initialize the component.-
Methods inherited from class com.singularsys.jep.ComponentSubset
getParts
-
-
-
-
Constructor Detail
-
MatrixComponents
public MatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield)
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 Detail
-
buildField
protected static MatrixFieldI buildField(MatrixFieldI mfield, boolean logical, boolean strings)
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
public void init(Jep jep)
Description copied from interface:JepComponent
Initialize the component. This methods 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:
init
in interfaceJepComponent
- Overrides:
init
in classComponentSubset
- Parameters:
jep
- the current Jep instance
-
getLightWeightInstance
public JepComponent getLightWeightInstance()
Description copied from interface:JepComponent
Gets a light-weight instance suitable for using in multiple threads.- Specified by:
getLightWeightInstance
in interfaceJepComponent
- Overrides:
getLightWeightInstance
in classComponentSubset
- Returns:
- either an new instance, null or 'this'.
-
getMatrixFactory
public MatrixFactoryI getMatrixFactory()
-
getMatrixField
public MatrixFieldI getMatrixField()
-
getMatrixFunctionTable
public MatrixFunctionTable getMatrixFunctionTable()
Return a function table- Returns:
- a table created during construction
- Since:
- Jep 4.0/Extensions 2.1
-
getMatrixOperatorTable
public MatrixOperatorTable getMatrixOperatorTable()
Return an operator table- Returns:
- a table created during construction
- Since:
- Jep 4.0/Extensions 2.1
-
-