Re: [deal.II] ABOUT OPERATING PETScWrappers::MPI::SparseMatrix

2020-08-30 Thread xs...@berkeley.edu
Thank you very much. Best, Xiang On Sunday, August 30, 2020 at 2:40:14 PM UTC-7 Wolfgang Bangerth wrote: > On 8/30/20 12:20 AM, xs...@berkeley.edu wrote: > > Hi, I declared two same scale matrix A and B using > > PETScWrappers::MPI::SparseMatrix and assign values on these two > matrixes. I

Re: [deal.II] ABOUT OPERATING PETScWrappers::MPI::SparseMatrix

2020-08-30 Thread Wolfgang Bangerth
On 8/30/20 12:20 AM, xs...@berkeley.edu wrote: Hi, I declared two same scale matrix A and B using PETScWrappers::MPI::SparseMatrix and assign values on these two matrixes. I want to do some operation on them to get another matrix C which equals h*A+B. How should I get the matrix C? Thank you

[deal.II] ABOUT OPERATING PETScWrappers::MPI::SparseMatrix

2020-08-30 Thread xs...@berkeley.edu
Hi, I declared two same scale matrix A and B using PETScWrappers::MPI::SparseMatrix and assign values on these two matrixes. I want to do some operation on them to get another matrix C which equals h*A+B. How should I get the matrix C? Thank you very much. Xiang -- The deal.II project is