ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 12 Mar 2013 10:01:36 +0100How to calculate element-wise matrix functions in Sagehttps://ask.sagemath.org/question/9902/how-to-calculate-element-wise-matrix-functions-in-sage/In MATLAB one can write:
A = [1,2,3];
B = 2*A.^3;
where B gets element-wise result of the function 2*A.^3 given matrix (or vector) A.
In Sage the notation .^ does not function. How to do this in Sage?
Then how to calculate the element-wise sin(A) in Sage?JPITue, 12 Mar 2013 10:01:36 +0100https://ask.sagemath.org/question/9902/