[Numpy-discussion] Matlab Translation - sqrt elementwise
Tue Apr 17 15:31:56 CDT 2007
Be sure to check out the numpy examples page too.
Always a good resource if you're not sure how to call a particular command.
On 4/18/07, Miquel Poch <email@example.com> wrote:
> I've found the next expression write it in Matlab,
> Rtx = sqrt(Rt);
> Rtx is a matrix, and that's why I need sqrt() to operate elementwise. I've
> read NumPy tutorial, and I know it's possible,
> A set of this functions, has been provided wich optimize certain kinds of
> calculations on arrays. Most of this functions, such as sin, cos and sqrt
> are unary functions wich operate elementwise. [Numerical Python, pg. 13]
> but I don't know who to do it. The next error appear when I execute the
> ''' exceptions.TypeError : only length-1 arrays can be converted to Python
> scalars ''
> Thanks in advance,
> Numpy-discussion mailing list
More information about the Numpy-discussion