|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsci.maths.matrices.Matrix
jsci.maths.matrices.RingMatrix
public class RingMatrix
The RingMatrix class provides an object for encapsulating matrices over an arbitrary ring.
Constructor Summary | |
---|---|
RingMatrix(Ring.Member[][] array)
Constructs a matrix by wrapping an array. |
Method Summary | |
---|---|
AbelianGroup.Member |
add(AbelianGroup.Member m)
Returns the addition of this matrix and another. |
RingMatrix |
add(RingMatrix m)
Returns the addition of this matrix and another. |
RingMatrix |
directSum(RingMatrix m)
Returns the direct sum of this matrix and another. |
boolean |
equals(Object m)
Compares two matrices for equality. |
Ring.Member |
getElement(int i,
int j)
Returns an element of the matrix. |
Object |
getSet()
|
Ring.Member |
multiply(Ring.Member m)
Returns the multiplication of this matrix and another. |
RingMatrix |
multiply(RingMatrix 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 |
setElement(int i,
int j,
Ring.Member r)
Sets the value of an element of the matrix. |
AbelianGroup.Member |
subtract(AbelianGroup.Member m)
Returns the subtraction of this matrix and another. |
RingMatrix |
subtract(RingMatrix m)
Returns the subtraction of this matrix and another. |
RingMatrix |
tensor(RingMatrix m)
Returns the tensor product of this matrix and another. |
String |
toString()
Returns a string representing this matrix. |
Matrix |
transpose()
Returns the transpose of this matrix. |
Methods inherited from class jsci.maths.matrices.Matrix |
---|
columns, rows |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RingMatrix(Ring.Member[][] array)
array
- an assigned valueMethod Detail |
---|
public boolean equals(Object m)
equals
in class Object
m
- a matrixpublic String toString()
toString
in class Object
public Ring.Member getElement(int i, int j)
i
- row index of the elementj
- column index of the element
MatrixDimensionException
- If attempting to access an invalid element.public void setElement(int i, int j, Ring.Member r)
i
- row index of the elementj
- column index of the elementr
- a ring element
MatrixDimensionException
- If attempting to access an invalid element.public Object getSet()
public AbelianGroup.Member negate()
public final AbelianGroup.Member add(AbelianGroup.Member m)
m
- a group memberpublic RingMatrix add(RingMatrix m)
m
- a matrix
MatrixDimensionException
- If the matrices are different sizes.public final AbelianGroup.Member subtract(AbelianGroup.Member m)
m
- a group memberpublic RingMatrix subtract(RingMatrix m)
m
- a matrix
MatrixDimensionException
- If the matrices are different sizes.public Module.Member scalarMultiply(Ring.Member r)
r
- a ring element.public VectorSpace.Member scalarDivide(Field.Member x)
x
- a field element.public final Ring.Member multiply(Ring.Member m)
m
- a ring memberpublic RingMatrix multiply(RingMatrix m)
m
- a matrix
MatrixDimensionException
- If the matrices are incompatible.public RingMatrix directSum(RingMatrix m)
public RingMatrix tensor(RingMatrix m)
public Matrix transpose()
transpose
in class Matrix
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |