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, subpublic MatrixFieldCollection(FieldI... fields)
public java.lang.Object det(java.lang.Object mat)
throws EvaluationException
MatrixFieldIdet in interface MatrixFieldIEvaluationExceptionpublic java.lang.Object trans(java.lang.Object mat)
throws EvaluationException
MatrixFieldItrans in interface MatrixFieldImat - the matrixEvaluationExceptionpublic java.lang.Object dot(java.lang.Object l,
java.lang.Object r)
throws EvaluationException
MatrixFieldIdot in interface MatrixFieldIEvaluationExceptionpublic java.lang.Object cross(java.lang.Object l,
java.lang.Object r)
throws EvaluationException
MatrixFieldIcross in interface MatrixFieldIEvaluationException - if either vectors not of length 3public java.lang.Object trace(java.lang.Object mat)
throws EvaluationException
MatrixFieldItrace in interface MatrixFieldImat - the matrixEvaluationExceptionpublic java.lang.Object inv(java.lang.Object mat)
throws EvaluationException
MatrixFieldIinv in interface MatrixFieldImat - the matrixEvaluationException - if matrix is not square or is singularpublic java.lang.Object solve(java.lang.Object l,
java.lang.Object r)
throws EvaluationException
MatrixFieldIsolve in interface MatrixFieldIl - 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
IntegerConvertorconvertToInt in interface IntegerConvertorconvertToInt in class FieldCollectionl - value to convertEvaluationExceptionpublic java.lang.Object convertFromInt(java.lang.Integer l)
throws EvaluationException
IntegerConvertorconvertFromInt in interface IntegerConvertorconvertFromInt in class FieldCollectionl - value to convertEvaluationExceptionpublic 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