Class ComplexMatrixFactory
java.lang.Object
com.singularsys.extensions.matrix.genericmat.GenericMatrixFactory<Complex>
com.singularsys.extensions.matrix.complexmat.ComplexMatrixFactory
- All Implemented Interfaces:
MatrixFactoryI,JepComponent,Serializable
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.extensions.matrix.genericmat.GenericMatrixFactory
ONE, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA typical implementation will just usereturn (GenericMatrix<E>) m;A typical implementation will just usereturn (V) v;Convert the element o to type E.Returns this.newMatrixUnchecked(Object[][] data) newVectorUnchecked(Object[] data) Methods inherited from class com.singularsys.extensions.matrix.genericmat.GenericMatrixFactory
buildDataArray, buildDataArray, duplicate, duplicate, duplicateGM, duplicateGV, getONE, identity, identity, init, newMatrix, newVector, newVector, zeroElement, zeroMat, zeroMat, zeroMat, zeroVecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.singularsys.extensions.matrix.MatrixFactoryI
zeroVec
-
Constructor Details
-
ComplexMatrixFactory
public ComplexMatrixFactory()
-
-
Method Details
-
elementValue
Description copied from class:GenericMatrixFactoryConvert the element o to type E. A typical implementation will just usepublic abstract E elementValue(Object o) { if(o instanceof 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
- Overrides:
newMatrixUncheckedin classGenericMatrixFactory<Complex>
-
newVectorUnchecked
- Overrides:
newVectorUncheckedin classGenericMatrixFactory<Complex>
-
cast
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
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
Description copied from class:GenericMatrixFactoryReturns this.- Specified by:
getLightWeightInstancein interfaceJepComponent- Overrides:
getLightWeightInstancein classGenericMatrixFactory<Complex>- Returns:
- either a new instance, null or 'this'.
-