[SciPy-user] sparse matrices again

Stéfan van der Walt stefan at sun.ac.za
Sat Feb 21 12:19:28 EST 2009


2009/2/21 Soeren Sonnenburg <python-ml at nn7.de>:
>> >> What do you want to do exactly?
>> >
>> > Just a pointer to the standard ccs format (similar to what I have in
>> > octave) to be able to exchange data with shogun
>> > (www.shogun-toolbox.org).

The indices, data values and index pointers are stored as ndarrays, so
you can access those pointer locations:

x.indices.ctypes.data

Regards
Stéfan



More information about the SciPy-User mailing list