set a column of a matrix
Barry Smith
bsmith at mcs.anl.gov
Sun Nov 1 07:44:58 CST 2009
MatSetValues() so long as you have good matrix preallocation this
will work fine.
Doing a transpose is very expensive.
Barry
On Nov 1, 2009, at 5:01 AM, Umut Tabak wrote:
> Dear all,
>
> I would like to set a column of a matrix, I read through the
> manual
> pages a bit... Since the matrices are row oriented in PETSc and
> there is a function MatSetValuesRow, I guess transposing my
> original matrix and then using this function is the best option I
> could see for the moment. Could you comment on this?
>
> BR,
> Umut
> --
> Quote: I love the name of honor, more than I fear death.
> Author: Julius Caesar 101-44 BC, Roman Emperor
More information about the petsc-users
mailing list