public class GenMatrix<C extends RingElem<C>> extends java.lang.Object implements AlgebraElem<GenMatrix<C>,C>
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<java.util.ArrayList<C>> |
matrix |
GenMatrixRing<C> |
ring |
| Constructor and Description |
|---|
GenMatrix(GenMatrixRing<C> r)
Constructor for zero GenMatrix.
|
GenMatrix(GenMatrixRing<C> r,
java.util.ArrayList<java.util.ArrayList<C>> m)
Constructor for GenMatrix.
|
GenMatrix(GenMatrixRing<C> r,
java.util.List<java.util.List<C>> m)
Constructor for GenMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
GenMatrix<C> |
abs()
Absolute value of this matrix.
|
int |
compareTo(GenMatrix<C> b)
compareTo, lexicogaphical comparison.
|
GenMatrix<C> |
copy()
clone method.
|
GenMatrix<C> |
divide(GenMatrix<C> S)
Divide this by S.
|
GenMatrix<C>[] |
egcd(GenMatrix<C> b)
Extended greatest common divisor.
|
boolean |
equals(java.lang.Object other)
Comparison with any other object.
|
GenMatrixRing<C> |
factory()
Get the corresponding element factory.
|
GenMatrix<C> |
gcd(GenMatrix<C> b)
Greatest common divisor.
|
C |
get(int i,
int j)
Get element at row i, column j.
|
int |
hashCode()
Hash code for this GenMatrix.
|
GenMatrix<C> |
inverse()
Inverse of this.
|
boolean |
isONE()
Test if this is one.
|
boolean |
isUnit()
Test if this is a unit.
|
boolean |
isZERO()
Test if this is equal to a zero matrix.
|
GenMatrix<C> |
leftLinearCombination(C s,
C t,
GenMatrix<C> b)
left linear compination of this matrix with scalar multiple of other
matrix.
|
GenMatrix<C> |
leftScalarMultiply(C s)
Left product of this matrix with scalar.
|
GenMatrix<C> |
linearCombination(C t,
GenMatrix<C> b)
Left linear combination of this matrix with scalar multiple of other
matrix.
|
GenMatrix<C> |
linearCombination(C s,
GenMatrix<C> b,
C t)
Linear compination of this matrix with scalar multiple of other matrix.
|
GenMatrix<C> |
linearCombination(GenMatrix<C> b,
C t)
Linear combination of this matrix with scalar multiple of other matrix.
|
GenMatrix<C> |
multiply(GenMatrix<C> S)
Multiply this with S.
|
GenMatrix<C> |
multiplySimple(GenMatrix<C> S)
Multiply this with S.
|
GenMatrix<C> |
negate()
Negative of this matrix.
|
GenMatrix<C> |
remainder(GenMatrix<C> S)
Remainder after division of this by S.
|
GenMatrix<C> |
scalarMultiply(C s)
Product of this matrix with scalar.
|
GenMatrix<C> |
set(int i,
int j,
C el)
Set element at row i, column j.
|
void |
setMutate(int i,
int j,
C el)
Set element at row i, column j.
|
int |
signum()
sign of matrix.
|
GenMatrix<C> |
subtract(GenMatrix<C> b)
Difference of matrices.
|
GenMatrix<C> |
sum(GenMatrix<C> b)
Sum of matrices.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toScriptFactory()
Get a scripting compatible string representation of the factory.
|
java.lang.String |
toString()
Get the String representation as RingElem.
|
GenMatrix<C> |
transpose(GenMatrixRing<C> tr)
Transposed matrix.
|
public final GenMatrixRing<C extends RingElem<C>> ring
public GenMatrix(GenMatrixRing<C> r)
r - matrix ringpublic GenMatrix(GenMatrixRing<C> r, java.util.List<java.util.List<C>> m)
r - matrix ringm - matrixpublic GenMatrix(GenMatrixRing<C> r, java.util.ArrayList<java.util.ArrayList<C>> m)
r - matrix ringm - matrixpublic C get(int i, int j)
i - row index.j - column index.public void setMutate(int i, int j, C el)
i - row index.j - column index.el - element to set.public GenMatrix<C> set(int i, int j, C el)
i - row index.j - column index.el - element to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
public java.lang.String toScriptFactory()
toScriptFactory in interface Element<GenMatrix<C extends RingElem<C>>>Element.toScriptFactory()public GenMatrixRing<C> factory()
public boolean isZERO()
public boolean isONE()
public boolean equals(java.lang.Object other)
public int hashCode()
public boolean isUnit()
public int signum()
public GenMatrix<C> scalarMultiply(C s)
scalarMultiply in interface AlgebraElem<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>s - scalarpublic GenMatrix<C> leftScalarMultiply(C s)
public GenMatrix<C> linearCombination(C s, GenMatrix<C> b, C t)
linearCombination in interface AlgebraElem<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>s - scalarb - algebra elementt - scalarpublic GenMatrix<C> linearCombination(GenMatrix<C> b, C t)
linearCombination in interface AlgebraElem<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>b - algebra elementt - scalarpublic GenMatrix<C> linearCombination(C t, GenMatrix<C> b)
public GenMatrix<C> leftLinearCombination(C s, C t, GenMatrix<C> b)
public GenMatrix<C> transpose(GenMatrixRing<C> tr)
public GenMatrix<C> multiplySimple(GenMatrix<C> S)
S -