set a column of a matrix

Barry Smith bsmith at
Sun Nov 1 11:31:20 CST 2009

    Then I would just use MatGetArray() and stick the values directly  
into the matrix.


On Nov 1, 2009, at 11:27 AM, Umut Tabak wrote:

> Barry Smith wrote:
>>   Is your matrix dense?  If it is sparse then it doesn't make sense  
>> to take values from a vector (which is always dense) to a sparse  
>> matrix.
> Right, the matrix is dense. Filled with eigenvectors, which are also  
> dense...
> Thx,
> Umut

More information about the petsc-users mailing list