Re: [Numpy-discussion] matrix problem: float to matrix power

2007-10-31 Thread Charles R Harris
On 10/31/07, Alan G Isaac [EMAIL PROTECTED] wrote: 1.0**numpy.array([1,2,3]) array([ 1., 1., 1.]) 1.0**numpy.mat([1,2,3]) Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for ** or pow(): 'float' and 'matrix' Why the restriction

Re: [Numpy-discussion] matrix problem: float to matrix power

2007-10-31 Thread Robert Kern
Charles R Harris wrote: On 10/31/07, Robert Kern [EMAIL PROTECTED] wrote: Charles R Harris wrote: On 10/31/07, Alan G Isaac [EMAIL PROTECTED] wrote: 1.0**numpy.array([1,2,3]) array([ 1., 1., 1.]) 1.0**numpy.mat([1,2,3]) Traceback (most recent call last): File stdin, line 1, in module

Re: [Numpy-discussion] matrix problem: float to matrix power

2007-10-31 Thread Charles R Harris
On 10/31/07, Robert Kern [EMAIL PROTECTED] wrote: Charles R Harris wrote: On 10/31/07, Alan G Isaac [EMAIL PROTECTED] wrote: 1.0**numpy.array([1,2,3]) array([ 1., 1., 1.]) 1.0**numpy.mat([1,2,3]) Traceback (most recent call last): File stdin, line 1, in module TypeError:

[Numpy-discussion] matrix problem: float to matrix power

2007-10-30 Thread Alan G Isaac
1.0**numpy.array([1,2,3]) array([ 1., 1., 1.]) 1.0**numpy.mat([1,2,3]) Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for ** or pow(): 'float' and 'matrix' Why the restriction for matrices? Same question for matrices conformable for