Class ComplexMatrixFactory
- java.lang.Object
-
- com.singularsys.extensions.matrix.genericmat.GenericMatrixFactory<Complex>
-
- com.singularsys.extensions.matrix.complexmat.ComplexMatrixFactory
-
- All Implemented Interfaces:
MatrixFactoryI
,JepComponent
,java.io.Serializable
public class ComplexMatrixFactory extends GenericMatrixFactory<Complex>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.extensions.matrix.genericmat.GenericMatrixFactory
ONE, ZERO
-
-
Constructor Summary
Constructors Constructor Description ComplexMatrixFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplexMatrix
cast(MatrixI m)
A typical implementation will just usereturn (GenericMatrix<E>) m;
ComplexVector
cast(VectorI v)
A typical implementation will just usereturn (V) v;
Complex
elementValue(java.lang.Object o)
Convert the element o to type E.JepComponent
getLightWeightInstance()
Returns this.ComplexMatrix
newMatrixUnchecked(java.lang.Object[][] data)
ComplexVector
newVectorUnchecked(java.lang.Object[] data)
-
Methods inherited from class com.singularsys.extensions.matrix.genericmat.GenericMatrixFactory
buildDataArray, buildDataArray, getONE, identity, identity, init, newMatrix, newVector, zeroEement, zeroMat, zeroMat, zeroMat, zeroVec
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.singularsys.extensions.matrix.MatrixFactoryI
zeroVec
-
-
-
-
Method Detail
-
elementValue
public Complex elementValue(java.lang.Object o)
Description copied from class:GenericMatrixFactory
Convert the element o to type E. A typical implementation will just usepublic abstract E elementValue(Object o) { if(o instance of E) return (E) o; return null; }
- Specified by:
elementValue
in interfaceMatrixFactoryI
- Overrides:
elementValue
in classGenericMatrixFactory<Complex>
- Parameters:
o
- value to convert- Returns:
- the value cast to type E or null if the type cannot be converted.
-
newMatrixUnchecked
public ComplexMatrix newMatrixUnchecked(java.lang.Object[][] data)
- Overrides:
newMatrixUnchecked
in classGenericMatrixFactory<Complex>
-
newVectorUnchecked
public ComplexVector newVectorUnchecked(java.lang.Object[] data)
- Overrides:
newVectorUnchecked
in classGenericMatrixFactory<Complex>
-
cast
public ComplexMatrix cast(MatrixI m)
Description copied from class:GenericMatrixFactory
A typical implementation will just usereturn (GenericMatrix<E>) m;
- Overrides:
cast
in classGenericMatrixFactory<Complex>
- Parameters:
m
- the matrix to cast- Returns:
- a matrix of type GenericMatrix<E> = GenericMatrix<E>
-
cast
public ComplexVector cast(VectorI v)
Description copied from class:GenericMatrixFactory
A typical implementation will just usereturn (V) v;
- Overrides:
cast
in classGenericMatrixFactory<Complex>
- Parameters:
v
- the vector to cast- Returns:
- a vector of type V = GenericVector<E>
-
getLightWeightInstance
public JepComponent getLightWeightInstance()
Description copied from class:GenericMatrixFactory
Returns this.- Specified by:
getLightWeightInstance
in interfaceJepComponent
- Overrides:
getLightWeightInstance
in classGenericMatrixFactory<Complex>
- Returns:
- either an new instance, null or 'this'.
-
-