expression M | a matrix for which the row is being set. |
expression i | the zero based row index |
vector row | the vector representation of the row |
nerdamer.setVar('M', 'matrix([x,y],[a,b])');
var M2 = nerdamer('matsetrow(M, 0, [1, 2])');
console.log(M2.toString());