[Trilinos-Users] Epetra python interface

maxsimg at nist.gov maxsimg at nist.gov
Wed May 30 14:28:37 MDT 2007

Hello everyone, 

I am trying to populate an epetra sparse matrix, using the python interfaces
available through PyTrilinos. Ideally, I would like to specify a list of row
indices, column indices, and values to insert (or sum into) the matrix. I've
tried to use some of the overloaded forms of InsertGlobalValues and
SumIntoGlobalValues, but some of the ones that I have tried give me
"NotImplementedError: Wrong number of arguments for overloaded function
'FECrsMatrix_SumIntoGlobalValues'" and others don't support inserting into
multiple rows, so I'm not sure what to use and how. Would someone be able to
suggest what is a good way to populate a matrix through the available python

Ideally, I'd like to do something like 

theMatrix.putGlobalValues(values, i, j) 

where i is a list of indices and j is a list of indices, where the lengths of
i,j, and values are the same. 

-Maxsim Gibiansky

More information about the Trilinos-Users mailing list