public class RationalMatrixFactory extends GenericMatrixFactory<Rational>
RationalField
.
Here the matrices are actually an array Rational[][]
rather than array Object[][]
where the elements are all rationals.Modifier and Type | Class and Description |
---|---|
class |
RationalMatrixFactory.RationalMatrix |
class |
RationalMatrixFactory.RationalVector |
ONE, ZERO
Constructor and Description |
---|
RationalMatrixFactory(RationalField base) |
Modifier and Type | Method and Description |
---|---|
protected Rational[] |
buildDataArray(int len)
Build a data array.
|
protected Rational[][] |
buildDataArray(int rows,
int cols)
Build a data array.
|
protected RationalMatrixFactory.RationalMatrix |
cast(MatrixI m)
A typical implementation will just use
return (GenericMatrix<E>) m; |
protected RationalMatrixFactory.RationalVector |
cast(VectorI m)
A typical implementation will just use
return (V) v; |
RationalMatrixFactory.RationalMatrix |
newMatrixUnchecked(java.lang.Object[][] data) |
RationalMatrixFactory.RationalVector |
newVectorUnchecked(java.lang.Object[] data) |
elementValue, getLightWeightInstance, getONE, identity, identity, init, newMatrix, newVector, zeroEement, zeroMat, zeroMat, zeroMat, zeroVec
public RationalMatrixFactory(RationalField base)
protected RationalMatrixFactory.RationalMatrix cast(MatrixI m)
GenericMatrixFactory
return (GenericMatrix<E>) m;
cast
in class GenericMatrixFactory<Rational>
m
- the matrix to castprotected RationalMatrixFactory.RationalVector cast(VectorI m)
GenericMatrixFactory
return (V) v;
cast
in class GenericMatrixFactory<Rational>
m
- the vector to castprotected Rational[][] buildDataArray(int rows, int cols)
GenericMatrixFactory
return new E[rows][cols]
.buildDataArray
in class GenericMatrixFactory<Rational>
rows
- number of rowscols
- number of colsprotected Rational[] buildDataArray(int len)
GenericMatrixFactory
return new E[rows][len]
.buildDataArray
in class GenericMatrixFactory<Rational>
len
- number of elementspublic RationalMatrixFactory.RationalMatrix newMatrixUnchecked(java.lang.Object[][] data)
newMatrixUnchecked
in class GenericMatrixFactory<Rational>
public RationalMatrixFactory.RationalVector newVectorUnchecked(java.lang.Object[] data)
newVectorUnchecked
in class GenericMatrixFactory<Rational>
Copyright © 2018 Singular Systems http://www.singularsys.com/jep