I was wondering whether any of the well-known matrix libraries for Java, such as Colt or EJML, actually provide similar functionality as MatLab? For instance, I can\'t seem
The interface for COLT gives you a generic OP: assign(matrix, function), which you can use to add or subtract matrices and vectors.
As the javadocs for assign()
says:
Assigns the result of a function to each cell;
x[row,col] =function(x[row,col],y[row,col])
.
So by using using an addition function as function
- you can add matrices.