I wish to do a row_sum of a SpareMatrixEZ. Going through the documentation I found that some operations can be very expensive. Like SparseMatrixEZ.opertor().

Can someone please suggest the most efficient way of doing a row_sum.

Use SparseMatrixEZ::const_iterator to iterate over the elements of a row. This is the efficient way of doing this.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to