n = require('numbers')
var m1 = [[1,2,3],[4,5,6],[7,8,9]];
var m2 = n.matrix.scalar(m1, 10);
this function alters m1 as well.
I think it would be good to have an option for having both in-place operations and ... not in-place. Julia (http://julialang.org) uses the ! character to represent in-place operations, but we are not so lucky to have no access to this character. any suggestions?
e.g.
this function alters
m1
as well.I think it would be good to have an option for having both in-place operations and ... not in-place. Julia (http://julialang.org) uses the
!
character to represent in-place operations, but we are not so lucky to have no access to this character. any suggestions?