need help inverting DerivVar array (Numpy/Scientific Python Quest ion)

PoulsenL at capecon.com PoulsenL at capecon.com
Tue Jun 5 18:12:27 EDT 2001


I am having trouble inverting an array of DerivVar objects.  Here is the
code and error:
 
>>> a =
Numeric.array([[DerivVar(-2.5,0,1),DerivVar(.45,1,1)],[DerivVar(5.5,2,1),Der
ivVar(-4.5,3,1)]])
>>> Numeric.sum(a)
array([(3.0, [1, 0, 1]) , (-4.0499999999999998, [0, 1, 0, 1]) ],'O')
>>> Numeric.invert(a)
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
AttributeError: DerivVar instance has no attribute '__invert__'
 
Any help would be greatly appreciated.
 
Thanks, 
 
Loren Poulsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010605/fee067b3/attachment.html>


More information about the Python-list mailing list