|
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 Matrix
This interface defines basic operations for a matrix, of which all entries are double.
We do not dictate how a matrix should be implemented. Different implementations of the mathematical concept "real (double) matrix" implement this interface.
This interface is made minimal so that we do not list all possible matrix operations. Instead, matrix operations are grouped into packages and classes by their properties. This is to avoid interface "pollution", lengthy and cumbersome design.
| Method Summary | |
|---|---|
Matrix |
deepCopy()
The implementation can return an instance created from this by the copy
constructor of the class, or just this if the instance itself is
immutable. |
Vector |
multiply(Vector v)
Right multiply this matrix, A by a vector. |
Matrix |
scaled(double scalar)
scalar * this |
| Methods inherited from interface com.numericalmethod.suanshu.matrix.MatrixDimension |
|---|
nCols, nRows |
| Methods inherited from interface com.numericalmethod.suanshu.matrix.doubles.MatrixAccessor |
|---|
get, getColumn, getRow, set |
| Methods inherited from interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing |
|---|
add, minus, multiply, ONE, opposite, t, ZERO |
| Method Detail |
|---|
Vector multiply(Vector v)
A by a vector.
v - a vector
A %*% vMatrix scaled(double scalar)
scalar * this
scalar - a double
scalar * thisMatrix deepCopy()
this by the copy
constructor of the class, or just this if the instance itself is
immutable.
Override the return type.
deepCopy in interface DeepCopyableMatrix instance
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||