MatSetValues
Matt Funk
mafunk at nmsu.edu
Mon Jan 8 20:26:08 CST 2007
Hi,
i was wondering in MatSetValues, when i need to specify the number of columns,
whether that is the number of column entries per row?
So, if i want to insert two rows at five entries each, do i specify 5 or 10
for the number of columns?
So something like this:
m_ierr = MatSetValues(m_globalMatrix, //the matrix
2, //the number of rows
GlobalRowIndices, //and their global indices
5, //the number of columns
GlobalColIndices, //and their global indices
Values, //the value to be inserted
INSERT_VALUES);
and where the size of GlobalRowIndices is of size 2 and the size of
GlobalColIndices is 10 as well as the size of Values?
thanks
mat
More information about the petsc-users
mailing list