[SciPy-user] sparse matrices again

Nathan Bell wnbell@gmail....
Fri Feb 20 14:05:36 CST 2009


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

-- 
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the SciPy-user mailing list