|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.vector.GenMatrixRing<C>
public class GenMatrixRing<C extends RingElem<C>>
GenMatrixRing implements a generic matrix algebra factory with RingFactory. Matrices of n rows and m columns over C.
| Field Summary | |
|---|---|
int |
blocksize
|
RingFactory<C> |
coFac
|
int |
cols
|
static int |
DEFAULT_BSIZE
|
static float |
DEFAULT_DENSITY
|
GenMatrix<C> |
ONE
|
int |
rows
|
GenMatrix<C> |
ZERO
|
| Constructor Summary | |
|---|---|
GenMatrixRing(RingFactory<C> b,
int r,
int c)
Constructors for GenMatrixRing. |
|
GenMatrixRing(RingFactory<C> b,
int r,
int c,
int s)
Constructors for GenMatrixRing. |
|
| Method Summary | |
|---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring. |
GenMatrix<C> |
copy(GenMatrix<C> c)
copy matrix. |
boolean |
equals(java.lang.Object other)
Comparison with any other object. |
GenMatrix<C> |
fromInteger(java.math.BigInteger a)
Get the matrix for a. |
GenMatrix<C> |
fromInteger(long a)
Get the matrix for a. |
GenMatrix<C> |
fromList(java.util.List<java.util.List<C>> om)
From List of coefficients. |
java.util.List<GenMatrix<C>> |
generators()
Get a list of the generating elements. |
GenMatrix<C> |
getONE()
Get the constant one for the GenMatrix. |
GenMatrix<C> |
getZERO()
Get the constant one for the GenMatrix. |
int |
hashCode()
Hash code for this matrix ring. |
boolean |
isAssociative()
Query if this ring is associative. |
boolean |
isCommutative()
Query if this monoid is commutative. |
boolean |
isField()
Query if this ring is a field. |
boolean |
isFinite()
Is this structure finite or infinite. |
GenMatrix<C> |
parse(java.io.Reader r)
parse a matrix from a Reader. |
GenMatrix<C> |
parse(java.lang.String s)
parse a matrix from a String. |
GenMatrixRing<C> |
product(GenMatrixRing<C> other)
Product matrix ring for multiplication. |
GenMatrix<C> |
random(int k)
Random matrix. |
GenMatrix<C> |
random(int k,
float q)
Random matrix. |
GenMatrix<C> |
random(int k,
float q,
java.util.Random random)
Random matrix. |
GenMatrix<C> |
random(int k,
java.util.Random random)
Random matrix. |
GenMatrix<C> |
randomLower(int k,
float q)
Random lower triangular matrix. |
GenMatrix<C> |
randomLower(int k,
float q,
java.util.Random random)
Random lower triangular matrix. |
GenMatrix<C> |
randomUpper(int k,
float q)
Random upper triangular matrix. |
GenMatrix<C> |
randomUpper(int k,
float q,
java.util.Random random)
Random upper triangular matrix. |
java.lang.String |
toScript()
Get a scripting compatible string representation. |
java.lang.String |
toString()
Get the String representation as RingElem. |
GenMatrixRing<C> |
transpose()
Transposed matrix ring. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final RingFactory<C extends RingElem<C>> coFac
public final int rows
public final int cols
public final int blocksize
public static final int DEFAULT_BSIZE
public final GenMatrix<C extends RingElem<C>> ZERO
public final GenMatrix<C extends RingElem<C>> ONE
public static final float DEFAULT_DENSITY
| Constructor Detail |
|---|
public GenMatrixRing(RingFactory<C> b,
int r,
int c)
b - coefficient factory.r - number of rows.c - number of colums.
public GenMatrixRing(RingFactory<C> b,
int r,
int c,
int s)
b - coefficient factory.r - number of rows.c - number of colums.s - block size for blocked operations.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
toScript in interface ElemFactory<GenMatrix<C extends RingElem<C>>>ElemFactory.toScript()public GenMatrix<C> getZERO()
getZERO in interface AbelianGroupFactory<GenMatrix<C extends RingElem<C>>>public GenMatrix<C> getONE()
getONE in interface MonoidFactory<GenMatrix<C extends RingElem<C>>>public java.util.List<GenMatrix<C>> generators()
generators in interface ElemFactory<GenMatrix<C extends RingElem<C>>>ElemFactory.generators()public boolean isFinite()
isFinite in interface ElemFactory<GenMatrix<C extends RingElem<C>>>ElemFactory.isFinite()public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isField()
isField in interface RingFactory<GenMatrix<C extends RingElem<C>>>public boolean isCommutative()
isCommutative in interface MonoidFactory<GenMatrix<C extends RingElem<C>>>public boolean isAssociative()
isAssociative in interface MonoidFactory<GenMatrix<C extends RingElem<C>>>public java.math.BigInteger characteristic()
characteristic in interface RingFactory<GenMatrix<C extends RingElem<C>>>public GenMatrixRing<C> transpose()
public GenMatrixRing<C> product(GenMatrixRing<C> other)
other - matrix ring factory.
public GenMatrix<C> fromInteger(long a)
fromInteger in interface ElemFactory<GenMatrix<C extends RingElem<C>>>a - long
public GenMatrix<C> fromInteger(java.math.BigInteger a)
fromInteger in interface ElemFactory<GenMatrix<C extends RingElem<C>>>a - long
public GenMatrix<C> fromList(java.util.List<java.util.List<C>> om)
fromList in interface AlgebraFactory<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>om - list of list of coefficients.
public GenMatrix<C> random(int k)
random in interface ElemFactory<GenMatrix<C extends RingElem<C>>>k - size of random coefficients.
public GenMatrix<C> random(int k,
float q)
random in interface AlgebraFactory<GenMatrix<C extends RingElem<C>>,C extends RingElem<C>>k - size of random coefficients.q - density of nozero coefficients.
public GenMatrix<C> random(int k,
java.util.Random random)
random in interface ElemFactory<GenMatrix<C extends RingElem<C>>>k - size of random coefficients.random - is a source for random bits.
public GenMatrix<C> random(int k,
float q,
java.util.Random random)
k - size of random coefficients.q - density of nozero coefficients.random - is a source for random bits.
public GenMatrix<C> randomUpper(int k,
float q)
k - size of random coefficients.q - density of nozero coefficients.
public GenMatrix<C> randomUpper(int k,
float q,
java.util.Random random)
k - size of random coefficients.q - density of nozero coefficients.random - is a source for random bits.
public GenMatrix<C> randomLower(int k,
float q)
k - size of random coefficients.q - density of nozero coefficients.
public GenMatrix<C> randomLower(int k,
float q,
java.util.Random random)
k - size of random coefficients.q - density of nozero coefficients.random - is a source for random bits.
public GenMatrix<C> copy(GenMatrix<C> c)
copy in interface ElemFactory<GenMatrix<C extends RingElem<C>>>public GenMatrix<C> parse(java.lang.String s)
parse in interface ElemFactory<GenMatrix<C extends RingElem<C>>>s - String.
public GenMatrix<C> parse(java.io.Reader r)
parse in interface ElemFactory<GenMatrix<C extends RingElem<C>>>r - Reader.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||