Java matrix libraries

前端 未结 6 1178
情书的邮戳
情书的邮戳 2020-11-28 08:02

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

6条回答
  •  难免孤独
    2020-11-28 08:51

    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.

提交回复
热议问题