Skip to main content
. Author manuscript; available in PMC: 2020 Apr 15.
Published in final edited form as: J Comput Phys. 2019 Feb 1;383:72–93. doi: 10.1016/j.jcp.2019.01.019

Algorithm 2.

The multiplication of S with a vector xp.

1: Compute the matrix-vector multiplication x^pDxp.
2: Compute the matrix-vector multiplication x¯pBxp.
3: Solve for x˜p from the linear system
Ax˜p=x¯p. (4.6)
4: Compute the matrix-vector multiplication x¯pCx˜p.
5: return x^px¯p.