powered by
A %*% diag(v)
gmatTimesDiagVec(A, v)
gmatrix
diag
v=grnorm(10) A=gmatrix(grnorm(100),10,10,dup=FALSE) gmatTimesDiagVec(A, v)
Run the code above in your browser using DataLab