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 ComplexMatrixcast(MatrixI m)A typical implementation will just usereturn (GenericMatrix<E>) m;ComplexVectorcast(VectorI v)A typical implementation will just usereturn (V) v;ComplexelementValue(java.lang.Object o)Convert the element o to type E.JepComponentgetLightWeightInstance()Returns this.ComplexMatrixnewMatrixUnchecked(java.lang.Object[][] data)ComplexVectornewVectorUnchecked(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:GenericMatrixFactoryConvert 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:
elementValuein interfaceMatrixFactoryI- Overrides:
elementValuein 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:
newMatrixUncheckedin classGenericMatrixFactory<Complex>
-
newVectorUnchecked
public ComplexVector newVectorUnchecked(java.lang.Object[] data)
- Overrides:
newVectorUncheckedin classGenericMatrixFactory<Complex>
-
cast
public ComplexMatrix cast(MatrixI m)
Description copied from class:GenericMatrixFactoryA typical implementation will just usereturn (GenericMatrix<E>) m;- Overrides:
castin 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:GenericMatrixFactoryA typical implementation will just usereturn (V) v;- Overrides:
castin classGenericMatrixFactory<Complex>- Parameters:
v- the vector to cast- Returns:
- a vector of type V = GenericVector<E>
-
getLightWeightInstance
public JepComponent getLightWeightInstance()
Description copied from class:GenericMatrixFactoryReturns this.- Specified by:
getLightWeightInstancein interfaceJepComponent- Overrides:
getLightWeightInstancein classGenericMatrixFactory<Complex>- Returns:
- either an new instance, null or 'this'.
-
-