|
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 MatrixMathOperation
This interface defines some standard operations for matrices.
The definitions do not assume any particular implementation of Matrix.
Thus, a class that implements this interface should work with all Matrix subclasses.
The return type of the computations is the general interface Matrix.
| Method Summary | |
|---|---|
Matrix |
add(Matrix A1,
Matrix A2)
A1 + A2 |
Matrix |
minus(Matrix A1,
Matrix A2)
A1 - A2 |
Matrix |
multiply(Matrix A1,
Matrix A2)
A1 %*% A2 |
Vector |
multiply(Matrix A,
Vector v)
A %*% v |
Matrix |
scaled(Matrix A,
double s)
s * A |
Matrix |
transpose(Matrix A)
t(A) |
| Method Detail |
|---|
Matrix add(Matrix A1,
Matrix A2)
A1 + A2
A1 - a matrixA2 - a matrix
A1 and A2
Matrix minus(Matrix A1,
Matrix A2)
A1 - A2
A1 - a matrixA2 - a matrix
A1 and A2
Matrix multiply(Matrix A1,
Matrix A2)
A1 %*% A2
A1 - a matrixA2 - a matrix
A1 and A2
Vector multiply(Matrix A,
Vector v)
A %*% v
A - a matrixv - a vector
A and v
Matrix scaled(Matrix A,
double s)
s * A
A - a matrixs - a scalar
A scaled by sMatrix transpose(Matrix A)
t(A)
A - a matrix
A
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||