fmesher_spherical_harmonics: Spherical harmonics

View source: R/RcppExports.R

fmesher_spherical_harmonicsR Documentation

Spherical harmonics

Description

Internal C++ method.

Compute spherical harmonics on the unit sphere

Usage

fmesher_spherical_harmonics(loc, max_order, rot_inv)

Arguments

loc

numeric matrix; coordinates of points to locate in the mesh

max_order

integer; the maximum basis order

rot_inv

logical; If TRUE, only evaluate rotationally invariant basis functions

Value

A matrix of evaluated spherical harmonic basis functions

Examples

m <- fm_rcdt_2d(globe = 1)
fmesher_spherical_harmonics(m$loc, max_order = 2, TRUE)
fmesher_spherical_harmonics(m$loc, max_order = 2, FALSE)

fmesher documentation built on Feb. 19, 2026, 9:07 a.m.