Assembling a matrix

Anirban Chatterjee achatter at cse.psu.edu
Tue Dec 8 16:05:31 CST 2009


Hi,

I have an nxn matrix A, a column vector v and a scalar c. I want to 
assemble a matrix B as follows,
B = [A v;
        v^T c]
Can someone tell me the easiest and most efficient way to do this.

--Anirban


More information about the petsc-users mailing list