Thanks for your quick response. I was motivated by the lecture to try to implement my own vector structure, but it wasn't at first clear for me that it requires way more effort than a vmult operation. (But of course it makes sense.) I tried this to get more used to the solver/vector/matrix structure, but of course the dealii Vector classes provide me a sufficient structure.
Wolfgang Bangerth schrieb am Dienstag, 25. April 2023 um 18:12:44 UTC+2: > 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/38e403a8-39f5-4583-a451-5598ffc48bafn%40googlegroups.com.
