public class DoubleMatrixFactory extends java.lang.Object implements MatrixFactoryI
DoubleMatrix and DoubleVector| Constructor and Description |
|---|
DoubleMatrixFactory() |
| 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.
|
DoubleMatrix |
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 DoubleMatrix newMatrix(double[][] data)
public DoubleVector newVector(double[] data)
public MatrixI newMatrix(java.lang.Object[][] data) throws EvaluationException
MatrixFactoryInewMatrix in interface MatrixFactoryIEvaluationExceptionpublic VectorI newVector(java.lang.Object... data) throws EvaluationException
MatrixFactoryInewVector in interface MatrixFactoryIEvaluationExceptionpublic java.lang.Double elementValue(java.lang.Object o)
MatrixFactoryIelementValue in interface MatrixFactoryIpublic MatrixI identity(int size)
MatrixFactoryIidentity in interface MatrixFactoryIsize - sizepublic MatrixI identity(int rows, int cols)
MatrixFactoryIidentity in interface MatrixFactoryIpublic VectorI zeroVec(int size)
MatrixFactoryIzeroVec in interface MatrixFactoryIpublic MatrixI zeroMat(int rows, int cols)
MatrixFactoryIzeroMat in interface MatrixFactoryIpublic MatrixI zeroMat(Dimensions dimensions) throws EvaluationException
MatrixFactoryIzeroMat in interface MatrixFactoryIdimensions - dimensions specifying the size of a matrix.EvaluationException - if the dimensions are not of order 2public void init(Jep jep)
JepComponentinit in interface JepComponentjep - the current Jep instancepublic JepComponent getLightWeightInstance()
JepComponentgetLightWeightInstance in interface JepComponentCopyright © 2018 Singular Systems http://www.singularsys.com/jep