public class MatrixFieldCollection extends FieldCollection implements MatrixFieldI
BooleanField
to add logical capability.fields
Constructor and Description |
---|
MatrixFieldCollection(FieldI... fields) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertFromInt(java.lang.Integer l)
Attempt to convert argument from an integer
|
java.lang.Integer |
convertToInt(java.lang.Object l)
Attempt to convert argument to an integer
|
java.lang.Object |
cross(java.lang.Object l,
java.lang.Object r)
The cross product of two vectors
|
java.lang.Object |
det(java.lang.Object mat)
The determinant of a matrix
|
java.lang.Object |
dot(java.lang.Object l,
java.lang.Object r)
The dot product of two vectors
|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
void |
init(Jep jep)
Initialize the component.
|
java.lang.Object |
inv(java.lang.Object mat)
Returns the inverse of a square matrix.
|
java.lang.Object |
solve(java.lang.Object l,
java.lang.Object r)
Solve equation A * X = B
|
java.lang.Object |
trace(java.lang.Object mat)
Returns the trace of a matrix.
|
java.lang.Object |
trans(java.lang.Object mat)
Transpose of a matrix
|
add, addField, and, clearFields, div, eq, ge, getFields, getOne, getZero, gt, le, lt, mod, mul, ne, neg, not, or, pow, removeField, sub
public MatrixFieldCollection(FieldI... fields)
public java.lang.Object det(java.lang.Object mat) throws EvaluationException
MatrixFieldI
det
in interface MatrixFieldI
EvaluationException
public java.lang.Object trans(java.lang.Object mat) throws EvaluationException
MatrixFieldI
trans
in interface MatrixFieldI
mat
- the matrixEvaluationException
public java.lang.Object dot(java.lang.Object l, java.lang.Object r) throws EvaluationException
MatrixFieldI
dot
in interface MatrixFieldI
EvaluationException
public java.lang.Object cross(java.lang.Object l, java.lang.Object r) throws EvaluationException
MatrixFieldI
cross
in interface MatrixFieldI
EvaluationException
- if either vectors not of length 3public java.lang.Object trace(java.lang.Object mat) throws EvaluationException
MatrixFieldI
trace
in interface MatrixFieldI
mat
- the matrixEvaluationException
public java.lang.Object inv(java.lang.Object mat) throws EvaluationException
MatrixFieldI
inv
in interface MatrixFieldI
mat
- the matrixEvaluationException
- if matrix is not square or is singularpublic java.lang.Object solve(java.lang.Object l, java.lang.Object r) throws EvaluationException
MatrixFieldI
solve
in interface MatrixFieldI
l
- a square matrixr
- either a vector or matrix with same number of rows as AEvaluationException
- if matrix is not square or is singularpublic java.lang.Integer convertToInt(java.lang.Object l) throws EvaluationException
IntegerConvertor
convertToInt
in interface IntegerConvertor
convertToInt
in class FieldCollection
l
- value to convertEvaluationException
public java.lang.Object convertFromInt(java.lang.Integer l) throws EvaluationException
IntegerConvertor
convertFromInt
in interface IntegerConvertor
convertFromInt
in class FieldCollection
l
- value to convertEvaluationException
public 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