|
||||||||||
PREV LETTER NEXT LETTER | FRAMES NO FRAMES |
a
's underlying implementation is propogated in the resulting matrix
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;
}
});
}
Hypothetical Usage:
public static Matrix doSomeThing(Matrix a, Matrix b, final double n) {
return applyEBEOperation(a, b, new MatrixEBEOperation() {
public double apply(double a, double b) {
return (a^2 + b^2)^n;
}
});
}
|
||||||||||
PREV LETTER NEXT LETTER | FRAMES NO FRAMES |