Dear Nikki, A "linear operator" in deal.II is an object that linearly transforms a vector into another one, i.e., it has a vector space as domain of definition and a vector space as range space.
In your case M.matrix_scalar_product(u,u) is (u^T M u), this is a quadratic operation, not a linear one. You cannot represent this operation with a linear operator. Did you intend to simply scale with that value? Best, Matthias On Mon, Oct 26, 2020, at 13:40 CDT, Nikki Holtzer <[email protected]> wrote: > Hello all, > > I am struggling to turn a matrix scalar product into a linear operator. I > currently have: > > temp = M.matrix_scalar_product(u,u); > > > and I need to turn 'temp' into a linear operator. > > I have tried turning 'M' into a linear operator first and then performing > the multiplication and have also tried something like > linear_operator(temp). Neither has compiled. > > Thank you in advance! -- 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/87sga0vma4.fsf%4043-1.org.
