|
|||||||||
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
|
java.util.List<C> |
val
|
Constructor Summary | |
---|---|
|
GenMatrix(GenMatrixRing<C> r)
Constructors for GenMatrix. |
protected |
GenMatrix(GenMatrixRing<C> r,
java.util.ArrayList<java.util.ArrayList<C>> m)
|
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)
equals method. |
GenMatrix<C> |
gcd(GenMatrix<C> b)
Greatest common divisor. |
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. |
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 |
toString()
toString method. |
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.List<C extends RingElem<C>> val
public final java.util.ArrayList<java.util.ArrayList<C extends RingElem<C>>> matrix
Constructor Detail |
---|
public GenMatrix(GenMatrixRing<C> r)
protected GenMatrix(GenMatrixRing<C> r, java.util.ArrayList<java.util.ArrayList<C>> m)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public GenMatrix<C> clone()
clone
in interface Element<GenMatrix<C extends RingElem<C>>>
clone
in class java.lang.Object
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
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 |