Learn R Programming

fmesher (version 0.7.0)

fmesher_spherical_harmonics: Spherical harmonics

Description

Internal C++ method.

Compute spherical harmonics on the unit sphere

Usage

fmesher_spherical_harmonics(loc, max_order, rot_inv)

Value

A matrix of evaluated spherical harmonic basis functions

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

Examples

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

Run the code above in your browser using DataLab