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 forComplexMatrix
andComplexVector
types.- 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 Complex
addEle(Complex l, Complex r)
Adds two elements of the vector/matrixprotected java.lang.Boolean
andEle(Complex l, Complex r)
protected Complex
calcSize(Complex ele)
Get the current "size" of an elementprotected boolean
cmpSize(Complex size, Complex max)
Compare current "size" to maximum.java.lang.Object
convertFromInt(java.lang.Integer l)
Attempt to convert argument from an integerjava.lang.Integer
convertToInt(java.lang.Object l)
Attempt to convert argument to an integerprotected Complex
divEle(Complex l, Complex r)
protected java.lang.Boolean
eqEle(Complex l, Complex r)
protected java.lang.Boolean
geEle(Complex l, Complex r)
JepComponent
getLightWeightInstance()
Returns thisComplex
getOne()
Get the multiplicative identity for this field.Complex
getZero()
Get the additive identity for this fieldprotected java.lang.Boolean
gtEle(Complex l, Complex r)
protected java.lang.Boolean
leEle(Complex l, Complex r)
protected java.lang.Boolean
ltEle(Complex l, Complex r)
protected Complex
modEle(Complex l, Complex r)
protected Complex
mulEle(Complex l, Complex r)
protected java.lang.Boolean
neEle(Complex l, Complex r)
protected Complex
negEle(Complex l)
protected java.lang.Boolean
notEle(Complex l)
protected java.lang.Boolean
orEle(Complex l, Complex r)
protected Complex
powEle(Complex l, Complex r)
protected Complex
subEle(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:GenericMatrixField
Adds two elements of the vector/matrix- Specified by:
addEle
in 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:
divEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
mulEle
protected Complex mulEle(Complex l, Complex r) throws EvaluationException
- Specified by:
mulEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
negEle
protected Complex negEle(Complex l) throws EvaluationException
- Specified by:
negEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
subEle
protected Complex subEle(Complex l, Complex r) throws EvaluationException
- Specified by:
subEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
eqEle
protected java.lang.Boolean eqEle(Complex l, Complex r) throws EvaluationException
- Specified by:
eqEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
neEle
protected java.lang.Boolean neEle(Complex l, Complex r) throws EvaluationException
- Specified by:
neEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
modEle
protected Complex modEle(Complex l, Complex r) throws EvaluationException
- Specified by:
modEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
powEle
protected Complex powEle(Complex l, Complex r) throws EvaluationException
- Specified by:
powEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
ltEle
protected java.lang.Boolean ltEle(Complex l, Complex r) throws EvaluationException
- Specified by:
ltEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
leEle
protected java.lang.Boolean leEle(Complex l, Complex r) throws EvaluationException
- Specified by:
leEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
gtEle
protected java.lang.Boolean gtEle(Complex l, Complex r) throws EvaluationException
- Specified by:
gtEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
geEle
protected java.lang.Boolean geEle(Complex l, Complex r) throws EvaluationException
- Specified by:
geEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
andEle
protected java.lang.Boolean andEle(Complex l, Complex r) throws EvaluationException
- Specified by:
andEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
orEle
protected java.lang.Boolean orEle(Complex l, Complex r) throws EvaluationException
- Specified by:
orEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
notEle
protected java.lang.Boolean notEle(Complex l) throws EvaluationException
- Specified by:
notEle
in classGenericMatrixField<Complex>
- Throws:
EvaluationException
-
calcSize
protected Complex calcSize(Complex ele) throws EvaluationException
Description copied from class:GenericMatrixField
Get the current "size" of an element- Overrides:
calcSize
in classGenericMatrixField<Complex>
- Returns:
- Throws:
EvaluationException
-
cmpSize
protected boolean cmpSize(Complex size, Complex max) throws EvaluationException
Description copied from class:GenericMatrixField
Compare current "size" to maximum.- Overrides:
cmpSize
in classGenericMatrixField<Complex>
- Parameters:
size
- currentmax
- maximum- Returns:
- true is size > max
- Throws:
EvaluationException
-
getZero
public Complex getZero()
Description copied from interface:FieldI
Get the additive identity for this field- Specified by:
getZero
in interfaceFieldI
- Specified by:
getZero
in classGenericMatrixField<Complex>
- Returns:
- object representing zero or null if undefined for this field
-
getOne
public Complex getOne()
Description copied from interface:FieldI
Get the multiplicative identity for this field.- Specified by:
getOne
in interfaceFieldI
- Specified by:
getOne
in 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:IntegerConvertor
Attempt 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 EvaluationException
Description copied from interface:IntegerConvertor
Attempt 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:
getLightWeightInstance
in interfaceJepComponent
- Overrides:
getLightWeightInstance
in classGenericMatrixField<Complex>
- Returns:
- either an new instance, null or 'this'.
-
-