![](https://secure.gravatar.com/avatar/c84d03cc4b6ed728e124b61d78b3f1e4.jpg?s=120&d=mm&r=g)
Pearu Peterson wrote:
On Fri, 29 Oct 2004, David Grant wrote:
I also see this: http://docs.python.org/ext/ext.html. It says how to build a module but not how to actually USE it??
Did you read the first section of this document:
http://docs.python.org/ext/simpleExample.html
?
Yeah, but that was for C. Mine is C++. I thought it would be a little different.
David Grant wrote:
Anyone used SWIG?
Yes, of course;-)
So will it work for me? From what I've told you so far?
David Grant wrote:
Hey guys (and girls, are there any???),
I have some C++ code, it does a decomposition of a large matrix.. It has a bunch of objects. It is very black box though, you just declare an object, give it the matrix and it will give an output. I think it uses CLAPACK. I would like to call this from python.
What kind of a matrix decomposition are you trying to calculate? May be scipy.linalg has it already.
It does some CSD. But the algorithm is specific to quantum computing, so I doubt it is in scipy.linalg. Although I'm not sure how much of this code is CSD and how much is other stuff. It's possible I guess to use scipy.linalg and rewrite the supporting stuff in python directly.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
-- David J. Grant Scientific Officer Intellectual Property D-Wave Systems Inc. tel: 604.732.6604 fax: 604.732.6614 ************************** CONFIDENTIAL COMMUNICATION This electronic transmission, and any documents attached hereto, is confidential. The information is intended only for use by the recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of information received in error is strictly prohibited.