Skip to content

fmm

linear-algebra · scripts/linear-algebra/fmm.m

: U = fmm (X, Q)
: U = fmm (X, Q, Y)
: U = fmm (…, Name, Value)

Fast multipole / N-body radial-basis summation (direct stub).

X is an N-by-D real matrix of source locations (D in {1,2,3}). Q is an N-by-K matrix of charges / weights. Optional Y is an M-by-D matrix of target locations; when omitted, targets are the sources.

Name-value options:

"Kernel"

"laplace" (default), "coulomb", "gaussian", "multiquadric", "inverseMultiquadric", "thinplate", or a function handle r) ... of distances.

"Epsilon"

Positive RBF scale (default 1).

"ExcludeSelf"

When true, zero the contribution of coincident source/target pairs (default true when Y is omitted; false when Y is supplied).

"Tolerance"

Requested relative accuracy for a future FMM path (default 1e-6). Ignored by the direct stub.

"Method"

"direct" or "auto" (both currently direct).