On 4/25/23 07:15, Stefan Karch wrote:
I am trying to implement a CG Solver with my own VectorType. According to Lecture 21, what one needs is that the Vector and Operator are compatible, and that the operator has a vmult-function. However, the compiler misses a lot of member function of my own Vector class. Am I doing something wrong or do I need to implement all additional member function for "MyVector"?

Stefan:
that's the only requirement on the "operator* (that it has to have a vmult function), but the vector really needs to satisfy pretty much the entire VectorSpaceVector interface. CG and the other iterative solvers require dot products, vector updates, and norms -- all functions you need to implement in the vector class you want to use.

While there are good reasons to implement your own operator class, it isn't quite clear to me why anyone would want to implement their own vector class. Can you elaborate on this point?

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/7cc3a8b4-7eda-238d-5553-4a5611f5d05e%40colostate.edu.

Reply via email to