|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Matrix arithmetic operations, including element-wise arithmetic and various matrix products and similar operations.
The element-wise operations are expected to work in place, while matrix products and other operations that generally produce results of different shape than the original object are expected to leave the object alone.
Implementations may extend the Protected interface, to signal that they promise to leave the original object untouched in all methods. Otherwise, the caller is responsible for copying when necessary.
| Method Summary | |
NumericMatrix |
add(double y)
Add the scalar in place. |
NumericMatrix |
add(NumericMatrix y)
Add in place the elements of the matrix, which must be identical in dimension. |
NumericMatrix |
crossProduct(NumericMatrix y)
The cross products of the object and the argument. |
NumericMatrix |
divide(double y)
Divide by the scalar in place. |
NumericMatrix |
divide(NumericMatrix y)
Divide in place by the elements of the matrix, which must be identical in dimension. |
NumericMatrix |
elementInverse()
Replace each element by 1. |
NumericMatrix |
multiply(double y)
Multiply by the scalar in place. |
NumericMatrix |
multiply(NumericMatrix y)
Multiply in place by the elements of the matrix, which must be identical in dimension. |
NumericMatrix |
product(NumericMatrix y)
The matrix product, with y on the right |
NumericMatrix |
productLeft(NumericMatrix y)
The matrix product, with y on the left. |
NumericMatrix |
productTranspose(NumericMatrix y)
The matrix product on the right by the transpose of y. |
NumericMatrix |
subtract(double y)
Subtract the scalar in place. |
NumericMatrix |
subtract(NumericMatrix y)
Subtract in place the elements of the matrix, which must be identical in dimension. |
| Method Detail |
public NumericMatrix add(NumericMatrix y)
public NumericMatrix subtract(NumericMatrix y)
public NumericMatrix multiply(NumericMatrix y)
public NumericMatrix divide(NumericMatrix y)
public NumericMatrix elementInverse()
public NumericMatrix add(double y)
public NumericMatrix subtract(double y)
public NumericMatrix multiply(double y)
public NumericMatrix divide(double y)
public NumericMatrix product(NumericMatrix y)
public NumericMatrix productLeft(NumericMatrix y)
public NumericMatrix crossProduct(NumericMatrix y)
[i, j] element of the
result is
the cross product of the column i of the object with column j
of the argument.public NumericMatrix productTranspose(NumericMatrix y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||