[SciPy-user] C++ extensions

David Grant david at dwavesys.com
Fri Oct 29 18:18:24 CDT 2004

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 

>> 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 at 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


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: david.vcf
Type: text/x-vcard
Size: 334 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20041029/19718bac/david.vcf

More information about the SciPy-user mailing list