|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSci.maths.matrices.Matrix
JSci.maths.matrices.AbstractIntegerMatrix
The AbstractIntegerMatrix class provides an object for encapsulating integer matrices.
Field Summary |
Fields inherited from class JSci.maths.matrices.Matrix |
numCols, numRows |
Constructor Summary | |
protected |
AbstractIntegerMatrix(int rows,
int cols)
Constructs a matrix. |
Method Summary | |
AbelianGroup.Member |
add(AbelianGroup.Member m)
Returns the addition of this matrix and another. |
AbstractIntegerMatrix |
add(AbstractIntegerMatrix m)
Returns the addition of this matrix and another. |
AbstractIntegerMatrix |
directSum(AbstractIntegerMatrix m)
Returns the direct sum of this matrix and another. |
boolean |
equals(AbstractIntegerMatrix m)
Compares two ${nativeTyp} matrices for equality. |
boolean |
equals(java.lang.Object obj)
Compares two ${nativeTyp} matrices for equality. |
double |
frobeniusNorm()
Returns the Frobenius or Hilbert-Schmidt (l2) norm. |
abstract int |
getElement(int i,
int j)
Returns an element of the matrix. |
int |
hashCode()
Returns a hashcode for this matrix. |
int |
infNorm()
Returns the l ![]() |
AbstractIntegerMatrix |
multiply(AbstractIntegerMatrix m)
Returns the multiplication of this matrix and another. |
AbstractIntegerVector |
multiply(AbstractIntegerVector v)
Returns the multiplication of a vector by this matrix. |
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. |
AbstractIntegerMatrix |
scalarMultiply(int x)
Returns the multiplication of this matrix by a scalar. |
Module.Member |
scalarMultiply(Ring.Member x)
Returns the multiplication of this matrix by a scalar. |
int |
scalarProduct(AbstractIntegerMatrix m)
Returns the scalar product of this matrix and another. |
abstract void |
setElement(int i,
int j,
int x)
Sets the value of an element of the matrix. |
AbelianGroup.Member |
subtract(AbelianGroup.Member m)
Returns the subtraction of this matrix by another. |
AbstractIntegerMatrix |
subtract(AbstractIntegerMatrix m)
Returns the subtraction of this matrix by another. |
AbstractIntegerMatrix |
tensor(AbstractIntegerMatrix m)
Returns the tensor product of this matrix and another. |
AbstractComplexMatrix |
toComplexMatrix()
Converts this matrix to a complex matrix. |
AbstractDoubleMatrix |
toDoubleMatrix()
Converts this matrix to a double matrix. |
java.lang.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, getInvalidElementMsg, rows |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected AbstractIntegerMatrix(int rows, int cols)
Method Detail |
public final boolean equals(java.lang.Object obj)
obj
- a int matrixpublic boolean equals(AbstractIntegerMatrix m)
public java.lang.String toString()
public int hashCode()
public AbstractDoubleMatrix toDoubleMatrix()
public AbstractComplexMatrix toComplexMatrix()
public abstract int 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 abstract void setElement(int i, int j, int x)
i
- row index of the elementj
- column index of the elementx
- a number
MatrixDimensionException
- If attempting to access an invalid element.public int infNorm()
public double frobeniusNorm()
public AbelianGroup.Member negate()
public final AbelianGroup.Member add(AbelianGroup.Member m)
m
- a group memberpublic AbstractIntegerMatrix add(AbstractIntegerMatrix m)
m
- a int matrix
MatrixDimensionException
- If the matrices are different sizes.public final AbelianGroup.Member subtract(AbelianGroup.Member m)
m
- a group memberpublic AbstractIntegerMatrix subtract(AbstractIntegerMatrix m)
m
- a int matrix
MatrixDimensionException
- If the matrices are different sizes.public final Module.Member scalarMultiply(Ring.Member x)
x
- a ring memberpublic AbstractIntegerMatrix scalarMultiply(int x)
x
- a int.
public final VectorSpace.Member scalarDivide(Field.Member x)
x
- a field memberpublic int scalarProduct(AbstractIntegerMatrix m)
m
- a int matrix.
MatrixDimensionException
- If the matrices are different sizes.public AbstractIntegerVector multiply(AbstractIntegerVector v)
v
- a int vector.
DimensionException
- If the matrix and vector are incompatible.public final Ring.Member multiply(Ring.Member m)
m
- a ring memberpublic AbstractIntegerMatrix multiply(AbstractIntegerMatrix m)
m
- a int matrix
MatrixDimensionException
- If the matrices are incompatible.public AbstractIntegerMatrix directSum(AbstractIntegerMatrix m)
public AbstractIntegerMatrix tensor(AbstractIntegerMatrix m)
public Matrix transpose()
transpose
in class Matrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |