[SciPy-user] sparse matrices again

Soeren Sonnenburg python-ml@nn7...
Sat Feb 21 10:23:55 CST 2009


On Fri, 2009-02-20 at 15:05 -0500, Nathan Bell wrote:
> On Fri, Feb 20, 2009 at 4:02 AM, Soeren Sonnenburg <python-ml@nn7.de> wrote:
> >>
> >> 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).
> >
> 
> You can access those arrays in Python:
> 
> A = csc_matrix( ... )
> A.indptr # pointer array
> A.indices # indices array
> A.data # nonzero values array

I need to pass A to C++ code, so I need access to sparse arrays from C/C
++.

Soeren.



More information about the SciPy-user mailing list