|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.vector.GenMatrix<C>
public class GenMatrix<C extends RingElem<C>>
GenMatrix implements a generic matrix algebra over RingElem entries. Matrix has n columns and m rows over C.
Field Summary | |
---|---|
java.util.ArrayList<java.util.ArrayList<C>> |
matrix
|
GenMatrixRing<C> |
ring
|
Constructor Summary | |
---|---|
GenMatrix(GenMatrixRing<C> r)
Constructor for 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. |
Method Summary | |
---|---|
GenMatrix<C> |
abs()
Absolute value of this matrix. |
GenMatrix<C> |
clone()
clone method. |
int |
compareTo(GenMatrix<C> b)
compareTo, lexicogaphical comparison. |
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 compination 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 compination 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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final GenMatrixRing<C extends RingElem<C>> ring
public final java.util.ArrayList<java.util.ArrayList<C extends RingElem<C>>> matrix
Constructor Detail |
---|
public GenMatrix(GenMatrixRing<C> r)
public GenMatrix(GenMatrixRing<C> r, java.util.List<java.util.List<C>> m)
public GenMatrix(GenMatrixRing<C> r, java.util.ArrayList<java.util.ArrayList<C>> m)
Method Detail |
---|
public 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.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface Element<GenMatrix<C extends RingElem<C>>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<GenMatrix<C extends RingElem<C>>>
Element.toScriptFactory()
public GenMatrixRing<C> factory()
factory
in interface Element<GenMatrix<C extends RingElem<C>>>
Element.factory()
public GenMatrix<C> clone()
clone
in class java.lang.Object
Object.clone()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<GenMatrix<C extends RingElem<C>>>
public boolean isONE()
isONE
in interface MonoidElem<GenMatrix<C extends RingElem<C>>>
public boolean equals(java.lang.Object other)
equals
in interface Element<GenMatrix<C extends RingElem<C>>>
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<GenMatrix<C extends RingElem<C>>>
hashCode
in class java.lang.Object
Object.hashCode()
public int compareTo(GenMatrix<C> b)
compareTo
in interface Element<GenMatrix<C extends RingElem<C>>>
compareTo
in interface java.lang.Comparable<GenMatrix<C extends RingElem<C>>>
b
- other
public boolean isUnit()
isUnit
in interface MonoidElem<GenMatrix<C extends RingElem<C>>>
public int signum()
signum
in interface AbelianGroupElem<GenMatrix<C extends RingElem<C>>>
public GenMatrix<C> sum(GenMatrix<C> b)
sum
in interface AbelianGroupElem<GenMatrix<C extends RingElem<C>>>
public GenMatrix<C> subtract(GenMatrix<C> b)
subtract
in interface AbelianGroupElem<GenMatrix<C extends RingElem<C>>>
public GenMatrix<C> negate()
negate
in interface AbelianGroupElem<GenMatrix<C extends RingElem<C>>>
public GenMatrix<C> abs()
abs
in interface AbelianGroupElem<GenMatrix<C extends RingElem<C>>>
public GenMatrix<C> scalarMultiply(C s)
scalarMultiply
in interface AlgebraElem<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>
s
- scalar
public 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
- scalar
public GenMatrix<C> linearCombination(GenMatrix<C> b, C t)
linearCombination
in interface AlgebraElem<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>
b
- algebra elementt
- scalar
public 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> multiply(GenMatrix<C> S)
multiply
in interface MonoidElem<GenMatrix<C extends RingElem<C>>>
S
-
public GenMatrix<C> multiplySimple(GenMatrix<C> S)
S
-
public GenMatrix<C> divide(GenMatrix<C> S)
divide
in interface MonoidElem<GenMatrix<C extends RingElem<C>>>
S
-
public GenMatrix<C> remainder(GenMatrix<C> S)
remainder
in interface MonoidElem<GenMatrix<C extends RingElem<C>>>
S
-
public GenMatrix<C> inverse()
inverse
in interface MonoidElem<GenMatrix<C extends RingElem<C>>>
public GenMatrix<C> gcd(GenMatrix<C> b)
gcd
in interface RingElem<GenMatrix<C extends RingElem<C>>>
b
- other element.
public GenMatrix<C>[] egcd(GenMatrix<C> b)
egcd
in interface RingElem<GenMatrix<C extends RingElem<C>>>
b
- other element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |