public interface MatrixFactoryI extends JepComponent
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
elementValue(java.lang.Object o)
Converts the argument to the type of elements of the matrix
|
MatrixI |
identity(int size)
Create an square identity matrix
|
MatrixI |
identity(int rows,
int cols)
Create an identity matrix.
|
MatrixI |
newMatrix(java.lang.Object[][] data)
Create a new MatrixI using the given 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
|
getLightWeightInstance, init
java.lang.Object elementValue(java.lang.Object o) throws EvaluationException
o
- EvaluationException
VectorI newVector(java.lang.Object... data) throws EvaluationException
data
- EvaluationException
MatrixI newMatrix(java.lang.Object[][] data) throws EvaluationException
data
- EvaluationException
MatrixI identity(int size) throws EvaluationException
size
- sizeEvaluationException
MatrixI identity(int rows, int cols) throws EvaluationException
rows
- cols
- EvaluationException
MatrixI zeroMat(int rows, int cols) throws EvaluationException
rows
- cols
- EvaluationException
VectorI zeroVec(int size) throws EvaluationException
size
- EvaluationException
MatrixI zeroMat(Dimensions dimensions) throws EvaluationException
dimensions
- dimensions specifying the size of a matrix.EvaluationException
- if the dimensions are not of order 2Copyright © 2018 Singular Systems http://www.singularsys.com/jep