Class ComplexMatrixField
- java.lang.Object
-
- com.singularsys.extensions.matrix.genericmat.GenericMatrixField<Complex>
-
- com.singularsys.extensions.matrix.complexmat.ComplexMatrixField
-
- All Implemented Interfaces:
FieldI,IntegerConvertor,MatrixFieldI,JepComponent,java.io.Serializable
public final class ComplexMatrixField extends GenericMatrixField<Complex>
Field forComplexMatrixandComplexVectortypes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.extensions.matrix.genericmat.GenericMatrixField
mf
-
-
Constructor Summary
Constructors Constructor Description ComplexMatrixField(ComplexMatrixFactory mf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComplexaddEle(Complex l, Complex r)Adds two elements of the vector/matrixprotected java.lang.BooleanandEle(Complex l, Complex r)protected ComplexcalcSize(Complex ele)Get the current "size" of an elementprotected booleancmpSize(Complex size, Complex max)Compare current "size" to maximum.java.lang.ObjectconvertFromInt(java.lang.Integer l)Attempt to convert argument from an integerjava.lang.IntegerconvertToInt(java.lang.Object l)Attempt to convert argument to an integerprotected ComplexdivEle(Complex l, Complex r)protected java.lang.BooleaneqEle(Complex l, Complex r)protected java.lang.BooleangeEle(Complex l, Complex r)JepComponentgetLightWeightInstance()Returns thisComplexgetOne()Get the multiplicative identity for this field.ComplexgetZero()Get the additive identity for this fieldprotected java.lang.BooleangtEle(Complex l, Complex r)protected java.lang.BooleanleEle(Complex l, Complex r)protected java.lang.BooleanltEle(Complex l, Complex r)protected ComplexmodEle(Complex l, Complex r)protected ComplexmulEle(Complex l, Complex r)protected java.lang.BooleanneEle(Complex l, Complex r)protected ComplexnegEle(Complex l)protected java.lang.BooleannotEle(Complex l)protected java.lang.BooleanorEle(Complex l, Complex r)protected ComplexpowEle(Complex l, Complex r)protected ComplexsubEle(Complex l, Complex r)-
Methods inherited from class com.singularsys.extensions.matrix.genericmat.GenericMatrixField
add, add, add, and, cross, cross, det, det, div, div, div, dot, dot, eq, eq, eq, ge, gt, init, inv, invMat, le, lt, minor, mod, mul, mul, mul, mul, mul, mul, mul, ne, neg, neg, neg, not, or, pow, solve, solveMM, solveMV, sub, sub, sub, subtractMul, swapRows, trace, trace, trans, trans
-
-
-
-
Constructor Detail
-
ComplexMatrixField
public ComplexMatrixField(ComplexMatrixFactory mf)
-
-
Method Detail
-
addEle
protected Complex addEle(Complex l, Complex r) throws EvaluationException
Description copied from class:GenericMatrixFieldAdds two elements of the vector/matrix- Specified by:
addElein classGenericMatrixField<Complex>- Parameters:
l- lhs elementr- rhs element- Returns:
- their sum
- Throws:
EvaluationException
-
divEle
protected Complex divEle(Complex l, Complex r) throws EvaluationException
- Specified by:
divElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
mulEle
protected Complex mulEle(Complex l, Complex r) throws EvaluationException
- Specified by:
mulElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
negEle
protected Complex negEle(Complex l) throws EvaluationException
- Specified by:
negElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
subEle
protected Complex subEle(Complex l, Complex r) throws EvaluationException
- Specified by:
subElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
eqEle
protected java.lang.Boolean eqEle(Complex l, Complex r) throws EvaluationException
- Specified by:
eqElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
neEle
protected java.lang.Boolean neEle(Complex l, Complex r) throws EvaluationException
- Specified by:
neElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
modEle
protected Complex modEle(Complex l, Complex r) throws EvaluationException
- Specified by:
modElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
powEle
protected Complex powEle(Complex l, Complex r) throws EvaluationException
- Specified by:
powElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
ltEle
protected java.lang.Boolean ltEle(Complex l, Complex r) throws EvaluationException
- Specified by:
ltElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
leEle
protected java.lang.Boolean leEle(Complex l, Complex r) throws EvaluationException
- Specified by:
leElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
gtEle
protected java.lang.Boolean gtEle(Complex l, Complex r) throws EvaluationException
- Specified by:
gtElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
geEle
protected java.lang.Boolean geEle(Complex l, Complex r) throws EvaluationException
- Specified by:
geElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
andEle
protected java.lang.Boolean andEle(Complex l, Complex r) throws EvaluationException
- Specified by:
andElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
orEle
protected java.lang.Boolean orEle(Complex l, Complex r) throws EvaluationException
- Specified by:
orElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
notEle
protected java.lang.Boolean notEle(Complex l) throws EvaluationException
- Specified by:
notElein classGenericMatrixField<Complex>- Throws:
EvaluationException
-
calcSize
protected Complex calcSize(Complex ele) throws EvaluationException
Description copied from class:GenericMatrixFieldGet the current "size" of an element- Overrides:
calcSizein classGenericMatrixField<Complex>- Returns:
- Throws:
EvaluationException
-
cmpSize
protected boolean cmpSize(Complex size, Complex max) throws EvaluationException
Description copied from class:GenericMatrixFieldCompare current "size" to maximum.- Overrides:
cmpSizein classGenericMatrixField<Complex>- Parameters:
size- currentmax- maximum- Returns:
- true is size > max
- Throws:
EvaluationException
-
getZero
public Complex getZero()
Description copied from interface:FieldIGet the additive identity for this field- Specified by:
getZeroin interfaceFieldI- Specified by:
getZeroin classGenericMatrixField<Complex>- Returns:
- object representing zero or null if undefined for this field
-
getOne
public Complex getOne()
Description copied from interface:FieldIGet the multiplicative identity for this field.- Specified by:
getOnein interfaceFieldI- Specified by:
getOnein classGenericMatrixField<Complex>- Returns:
- object representing one or null if undefined for this field
-
convertToInt
public java.lang.Integer convertToInt(java.lang.Object l)
Description copied from interface:IntegerConvertorAttempt to convert argument to an integer- Parameters:
l- value to convert- Returns:
- corresponding integer or null if it cannot be converted
-
convertFromInt
public java.lang.Object convertFromInt(java.lang.Integer l) throws EvaluationExceptionDescription copied from interface:IntegerConvertorAttempt to convert argument from an integer- Parameters:
l- value to convert- Returns:
- corresponding value in this field or null if it cannot be converted
- Throws:
EvaluationException- probably never
-
getLightWeightInstance
public JepComponent getLightWeightInstance()
Returns this- Specified by:
getLightWeightInstancein interfaceJepComponent- Overrides:
getLightWeightInstancein classGenericMatrixField<Complex>- Returns:
- either an new instance, null or 'this'.
-
-