The equations of patchwork.solvers.backends, declared on the code that implements them and checked by the tests.
The FFT solve of one uniform system (see FFTBackend).
- scaled
- V−1Aϕ=V−1b,V−1A=−a∑δa2 (the difference Laplacian)
- dirichlet
- λk=h24sin22nπk,k=1,…,n−1 (DST-I)
- neumann
- λk=h24sin22nπk,k=0,…,n (DCT-I)
- periodic
- λk=h24sin2nπk,k=0,…,n−1 (FFT);λk=∣2πfftfreq(n,h)∣2 (spectral)
- solve
- ϕ^k=∑aλkab^k,ϕ^0=0 where the sum vanishes
- Assumes
- one level that fills its rectangle, Cartesian, no bodies; both faces of a non-periodic axis of one kind
- a singular operator gives the solution of zero volume-weighted mean;
spectral=True is not the assembled operator - O(NlogN) per solve, no factorization
A direct LU factorization of the whole operator, on every rank.
- tridiagonal
- A=LDL⊤ (pttrf/pttrs, equal off-diagonals),PA=LU (gttrf/gttrs)
- sparse
- PrAPc=LU,Pc minimum degree on the pattern of A+A⊤
- Assumes
- the whole matrix on every rank; a line without a periodic seam is tridiagonal
- SuperLU in symmetric mode: diagonal pivots, as the ordering assumes (the operator is diagonally dominant)
- refuses a singular operator (no Dirichlet face, no body)
- References