I was reading this response on another post, which mentions using a Mat object to compute a scalar product. For example, given: real[int] v; Mat J; J(v, v);
then, as the response says, “J(v, v) computes a scalar product according to the domain decomposition of J.”
I’m curious as to why J(v,v) gives the scalar product? Is this a mathematical property, or is it more a feature of FreeFem / PETSc? Does this always work for any Mat object we create?
Thank you @prj for the response!
Is there any mathematical reasoning behind that notation? I just wasn’t sure if there was an intuitive way to understand why something like J(v,v) would give a scalar product.