public class SequenceMatrixFactory extends java.lang.Object implements MatrixFactoryI
SequenceMatrix
(stored internally as a 1D array of double values)
or DoubleVector
.Constructor and Description |
---|
SequenceMatrixFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
elementValue(java.lang.Object o)
Converts the argument to the type of elements of the matrix
|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
MatrixI |
identity(int size)
Create an square identity matrix
|
MatrixI |
identity(int rows,
int cols)
Create an identity matrix.
|
void |
init(Jep jep)
Initialize the component.
|
SequenceMatrix |
newMatrix(double[][] data) |
MatrixI |
newMatrix(java.lang.Object[][] data)
Create a new MatrixI using the given data
|
DoubleVector |
newVector(double[] data) |
VectorI |
newVector(java.lang.Object... data)
Create a new VectorI using the given data
|
MatrixI |
zeroMat(Dimensions dimensions)
Create a matrix with zero elements
|
MatrixI |
zeroMat(int rows,
int cols)
Create an zero matrix.
|
VectorI |
zeroVec(int size)
Create a vector with zeros
|
public SequenceMatrix newMatrix(double[][] data)
public DoubleVector newVector(double[] data)
public MatrixI newMatrix(java.lang.Object[][] data) throws EvaluationException
MatrixFactoryI
newMatrix
in interface MatrixFactoryI
EvaluationException
public VectorI newVector(java.lang.Object... data) throws EvaluationException
MatrixFactoryI
newVector
in interface MatrixFactoryI
EvaluationException
public java.lang.Double elementValue(java.lang.Object o)
MatrixFactoryI
elementValue
in interface MatrixFactoryI
public MatrixI identity(int size)
MatrixFactoryI
identity
in interface MatrixFactoryI
size
- sizepublic MatrixI identity(int rows, int cols)
MatrixFactoryI
identity
in interface MatrixFactoryI
public VectorI zeroVec(int size)
MatrixFactoryI
zeroVec
in interface MatrixFactoryI
public MatrixI zeroMat(int rows, int cols)
MatrixFactoryI
zeroMat
in interface MatrixFactoryI
public MatrixI zeroMat(Dimensions dimensions) throws EvaluationException
MatrixFactoryI
zeroMat
in interface MatrixFactoryI
dimensions
- dimensions specifying the size of a matrix.EvaluationException
- if the dimensions are not of order 2public void init(Jep jep)
JepComponent
init
in interface JepComponent
jep
- the current Jep instancepublic JepComponent getLightWeightInstance()
JepComponent
getLightWeightInstance
in interface JepComponent
Copyright © 2018 Singular Systems http://www.singularsys.com/jep