public class ComplexMatrixFactory extends GenericMatrixFactory<Complex>
ONE, ZERO
Constructor and Description |
---|
ComplexMatrixFactory() |
Modifier and Type | Method and Description |
---|---|
ComplexMatrix |
cast(MatrixI m)
A typical implementation will just use
return (GenericMatrix<E>) m; |
ComplexVector |
cast(VectorI v)
A typical implementation will just use
return (V) v; |
Complex |
elementValue(java.lang.Object o)
Convert the element o to type E.
|
ComplexMatrix |
newMatrixUnchecked(java.lang.Object[][] data) |
ComplexVector |
newVectorUnchecked(java.lang.Object[] data) |
buildDataArray, buildDataArray, getLightWeightInstance, getONE, identity, identity, init, newMatrix, newVector, zeroEement, zeroMat, zeroMat, zeroMat, zeroVec
public Complex elementValue(java.lang.Object o)
GenericMatrixFactory
public abstract E elementValue(Object o) { if(o instance of E) return (E) o; return null; }
elementValue
in interface MatrixFactoryI
elementValue
in class GenericMatrixFactory<Complex>
o
- value to convertpublic ComplexMatrix newMatrixUnchecked(java.lang.Object[][] data)
newMatrixUnchecked
in class GenericMatrixFactory<Complex>
public ComplexVector newVectorUnchecked(java.lang.Object[] data)
newVectorUnchecked
in class GenericMatrixFactory<Complex>
public ComplexMatrix cast(MatrixI m)
GenericMatrixFactory
return (GenericMatrix<E>) m;
cast
in class GenericMatrixFactory<Complex>
m
- the matrix to castpublic ComplexVector cast(VectorI v)
GenericMatrixFactory
return (V) v;
cast
in class GenericMatrixFactory<Complex>
v
- the vector to castCopyright © 2018 Singular Systems http://www.singularsys.com/jep