[SciPy-user] sparse matrices again

Stéfan van der Walt stefan@sun.ac...
Sat Feb 21 11:19:28 CST 2009


2009/2/21 Soeren Sonnenburg <python-ml@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