|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface MatrixRing
A matrix ring is the set of all n×n matrices over an arbitrary Ring R.
This matrix set becomes a ring under matrix addition and multiplication.
Moreover, it has a structure of a *-algebra over R, where the involution * on the matrix ring is the matrix transposition.
| Method Summary | |
|---|---|
Matrix |
add(Matrix that)
this + that |
Matrix |
minus(Matrix that)
this - that |
Matrix |
multiply(Matrix that)
this %*% that |
Matrix |
ONE()
Get an identity matrix that has the same dimension as this matrix. |
Matrix |
opposite()
Get the opposite of this matrix. |
Matrix |
t()
t(this)
Compute the transpose of this matrix. |
Matrix |
ZERO()
Get a zero matrix that has the same dimension as this matrix. |
| Method Detail |
|---|
Matrix add(Matrix that)
this + that
add in interface AbelianGroup<Matrix>that - another matrix
this and thatMatrix minus(Matrix that)
this - that
minus in interface AbelianGroup<Matrix>that - another matrix
this and thatMatrix multiply(Matrix that)
this %*% that
multiply in interface Monoid<Matrix>that - another matrix
this and thatMatrix opposite()
opposite in interface AbelianGroup<Matrix>-thisMatrix ZERO()
ZERO in interface AbelianGroup<Matrix>Matrix ONE()
For a non-square matrix, it zeros out the rows (columns) with index > nCols (nRows).
ONE in interface Monoid<Matrix>Matrix t()
t(this)
Compute the transpose of this matrix. The original matrix does not change. The returned value is independent and can be modified anyhow.
This is the involution on the matrix ring.
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||