|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
MatrixEBEOperation
Encapsulates an operation that can be performed on elements at the same position in two matrices.
Usage: from MatrixOperator.add(org.jmatrices.dbl.Matrix, org.jmatrices.dbl.Matrix)
public static Matrix add(Matrix a, Matrix b) {
return applyEBEOperation(a, b, new MatrixEBEOperation() {
public double apply(double a, double b) {
return a + b;
}
});
}
Check out the "See Also" list to find some more methods that use this method
Author: purangp
Date: 07.03.2004 Time: 19:17:46
MatrixOperator,
MatrixOperator.subtract(org.jmatrices.dbl.Matrix, org.jmatrices.dbl.Matrix),
MatrixOperator.multiplyEBE(org.jmatrices.dbl.Matrix, org.jmatrices.dbl.Matrix),
MatrixOperator.divideEBE(org.jmatrices.dbl.Matrix, org.jmatrices.dbl.Matrix)| Method Summary | |
double |
apply(double a,
double b)
Applies the operation to the elements todo - perhaps we should provide row, col for better control! |
| Method Detail |
public double apply(double a,
double b)
todo - perhaps we should provide row, col for better control!
a - element of a matrixb - element of a matrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||