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 very much.
This should work:
C = B;
C.add (h, A);
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/b049bd31-33fa-416a-9fbf-0a2a85353788%40colostate.edu.