I want to perform simple matrix operations in my code and I use the Colt library
(see in here: http://acs.lbl.gov/software/colt/api/index.html)
I want for example to add/subtract/multiply matrices, add/subtract/multiply/divide a scalar to each cell of a matrix etc...But there seem to be no such functions in this library.
However, I found this comment: https://stackoverflow.com/a/10815643/2866701
How can I use the assign() command to perform these simple operations in my code?
Why don't you try la4j (Linear Algebra for Java)? It is easy to use:
There is also
transform()method that is similar to Colt'sassign(). It can be used as following:But it only works for 2D matrices.