[Numpy-discussion] numarray.linear_algrebra > cholesky_decomposition problem

Justin Worrall Justin.Worrall at morganstanley.com
Fri Aug 29 01:05:05 CDT 2003


I'm having problems using the cholesky decomposition function - perhaps
someone could point out where I am going wrong. Many thanks,


dingy /ms/user/w/worrall 22$ python
Python 2.3 (#1, Aug 19 2003, 16:53:06)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from numarray import *
>>> from numarray.linear_algebra import *
>>> x=array([[1.0,0.0],[0.5,1.0]])
>>> x
array([[ 1. ,  0. ],
       [ 0.5,  1. ]])
>>> cholesky_decomposition(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
"/u/worrall/Python-2.3/numarray/linear_algebra/LinearAlgebra2.py", line
159, in cholesky_decomposition
    return copy.copy(num.transpose(mlab.triu(a,k=0)))
  File "/u/worrall/Python-2.3/numarray/linear_algebra/mlab.py", line
134, in triu
    svsp = m.spacesaver()
AttributeError: 'NumArray' object has no attribute 'spacesaver'

This is not an offer (or solicitation of an offer) to buy/sell the securities/instruments mentioned or an official confirmation.  Morgan Stanley may deal as principal in or own or act as market maker for securities/instruments mentioned or may advise the issuers.  This may refer to a research analyst/research report. Unless indicated, these views are the author?s and may differ from those of Morgan Stanley research or others in the Firm. We do not represent this is accurate or complete and we may not update this.  Past performance is not indicative of future returns. For additional information, research reports and important disclosures, contact me or see https://secure.ms.com/servlet/cls.  You should not use email to request, authorize or effect the purchase or sale of any security or instrument, to send transfer instructions, or to effect any other transactions.  We cannot guarantee that any such requests received via email will be processed in a timely manner.  This communication is solely for the addres

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20030829/36c924a5/attachment.html 

More information about the Numpy-discussion mailing list