Could anyone suggest a neat way to do this?
Thanks much!
Anil
Sent from my iPhone
Did you converted the scipy.sparse to CSR format before testing the
matvec operations?
> Sent from my iPhone
>
> On Oct 21, 2009, at 3:21 PM, Anil Raj <anil....@gmail.com> wrote:
>
>>
>> Hi all,
>> I'm trying to extract a matrix from a larger one (in scipy.sparse.coo
>> format). Given a list of indices idx and a matrix A, I want to extract
>> Asub of size
>> len(idx) x len(idx) such that Asub[i,j] = A[idx[i],idx[j]].
>>
>> Could anyone suggest a neat way to do this?
>>
>> Thanks much!
>> Anil
>
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
Sent from my iPhone