Re: [deal.II] Linear Operator

2020-10-26 Thread Nikki Holtzer
Matthias, When you helped me implement the operator N_c which is added to my linear_operator , i.e. auto N_c = temp1_coef*M + temp_coef*Kronecker; auto system_matrix = linear_operator(linear_part) + N_c; the first term is not complete. Really I want, auto N_c = temp1_coef*|Psi^m|^2 *M + t

Re: [deal.II] Linear Operator

2020-10-26 Thread Matthias Maier
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

[deal.II] Linear Operator

2020-10-26 Thread Nikki Holtzer
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