[Numpy-discussion] Matlab Translation - sqrt elementwise

2007-04-17 Thread Miquel Poch
Hi, 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. M

[Numpy-discussion] Translation of a Matlab expresion

2007-04-09 Thread Miquel Poch
Hi, I've got a function write in Matlab, and I need to tranlate it into python. I've found an expresion like this: BF = b0 + (b1 + (b2 + (b3 + (b4 + (b5 + b6*T).*T).*T).*T).*T).*T or dBFdT = b1 + (2 * b2 + (3 * b3 + (4 * b4 + (5 * b5 + 6* b6*T).*T).*T).*T).*T T is a matrix and the rest of the v

Re: [Numpy-discussion] Translation of Matlab function find()

2007-03-21 Thread Miquel Poch
Hi, I'm trying to translate some Matlab functions. I don't know exactly how make and equivalent for function find(). This give us the index of an array where a condition it's true. I've found some options like this one: (a>0).nonzero(), where a is the array and (a>0) the condition. But the probl