|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.algebraic.AbstractHypermatrix
org.jscience.mathematics.algebraic.matrices.RingHypermatrix
public class RingHypermatrix
The RingHypermatrix class provides an implementation for extended matrices.
| Constructor Summary | |
|---|---|
RingHypermatrix(int[] dimensions)
Constructs a RingHypermatrix. |
|
RingHypermatrix(int[] dimensions,
java.lang.Object[] elements)
Constructs an hypermatrix. |
|
RingHypermatrix(java.lang.Object array)
Constructs an hypermatrix. |
|
RingHypermatrix(RingHypermatrix matrix)
|
|
| Method Summary | |
|---|---|
AbelianGroup.Member |
add(AbelianGroup.Member m)
Returns the addition of this matrix and another. |
RingHypermatrix |
add(RingHypermatrix m)
Returns the addition of this matrix and another. |
java.lang.Object |
clone()
Clone matrix into a new matrix. |
boolean |
equals(java.lang.Object m)
Compares two hypermatrices for equality. |
java.lang.Number |
getElement(int[] position)
Returns the element at position given by the array of int. |
java.lang.Object |
getElements()
Returns a projection of this hypermatrix. |
RingHypermatrix |
mapElements(NumberMapping f)
Applies a function on all the Hypermatrix components. |
Ring.Member |
multiply(Ring.Member m)
Returns the multiplication of this matrix and another. |
AbelianGroup.Member |
negate()
Returns the negative of this matrix. |
VectorSpace.Member |
scalarDivide(Field.Member x)
Returns the division of this matrix by a scalar. |
Module.Member |
scalarMultiply(Ring.Member r)
Returns the multiplication of this matrix by a scalar. |
void |
setAllElements(Ring.Member m)
DOCUMENT ME! |
void |
setElement(int[] position,
Ring.Member m)
Sets the element at position given by the array of int. |
AbelianGroup.Member |
subtract(AbelianGroup.Member m)
Returns the subtraction of this matrix and another. |
RingHypermatrix |
subtract(RingHypermatrix m)
Returns the subtraction of this matrix and another. |
Ring.Member[] |
toFlatArray()
Returns a flat array (that is a one dimension array) of all elements given "row first", given "row first". |
java.lang.String |
toString()
Returns a string representing this matrix. |
| Methods inherited from class org.jscience.mathematics.algebraic.AbstractHypermatrix |
|---|
getDimensions, numDimensions, numElements, numElements, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RingHypermatrix(int[] dimensions)
dimensions - DOCUMENT ME!public RingHypermatrix(RingHypermatrix matrix)
public RingHypermatrix(java.lang.Object array)
public RingHypermatrix(int[] dimensions,
java.lang.Object[] elements)
| Method Detail |
|---|
public void setAllElements(Ring.Member m)
m - DOCUMENT ME!
public java.lang.Number getElement(int[] position)
throws IllegalDimensionException
getElement in interface HypermatrixgetElement in class AbstractHypermatrixposition - DOCUMENT ME!
IllegalDimensionException - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!
public void setElement(int[] position,
Ring.Member m)
throws IllegalDimensionException
position - DOCUMENT ME!m - DOCUMENT ME!
IllegalDimensionException - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public boolean equals(java.lang.Object m)
equals in class java.lang.Objectm - an hypermatrix
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getElements()
public Ring.Member[] toFlatArray()
public AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic AbelianGroup.Member add(AbelianGroup.Member m)
add in interface AbelianGroup.Memberm - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public RingHypermatrix add(RingHypermatrix m)
m - a matrix
IllegalDimensionException - If the matrices are different sizes.public AbelianGroup.Member subtract(AbelianGroup.Member m)
subtract in interface AbelianGroup.Memberm - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public RingHypermatrix subtract(RingHypermatrix m)
m - a matrix
IllegalDimensionException - If the matrices are different sizes.public Module.Member scalarMultiply(Ring.Member r)
scalarMultiply in interface Module.Memberr - a ring element.
public VectorSpace.Member scalarDivide(Field.Member x)
scalarDivide in interface VectorSpace.Memberx - a field element.
public Ring.Member multiply(Ring.Member m)
multiply in interface Ring.Memberm - DOCUMENT ME!
java.lang.UnsupportedOperationException - DOCUMENT ME!public RingHypermatrix mapElements(NumberMapping f)
f - a user-defined function.
java.lang.IllegalArgumentException - DOCUMENT ME!public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||