Code Documentation#
Welcome! This page provides a structured overview of the spherical-inr toolbox.
Modules are grouped by purpose.
Conventions#
Spherical coordinates are represented as (theta, phi) in radians, with tensors
of shape (..., 2):
theta ∈ [0, π](polar angle)phi ∈ [-π, π](azimuth)
Cartesian coordinates are represented as tensors of shape (..., 3) in \(\mathbb{R}^3\).
Core modules#
Models#
Ready-to-use networks combining an encoding and a backbone:
INR— generic composition wrapperSirenNet— Fourier features on angles + sine MLPHerglotzNet— Herglotz map + sine MLPSphericalSirenNet— spherical harmonics on angles + sine MLP
Positional encodings#
Coordinate-to-feature mappings used by models or custom compositions:
MLP backbones#
Pointwise networks applied to encoded coordinates:
Coordinate transforms#
Utilities for converting between spherical and Cartesian representations:
Differential operators#
Autograd-based operators for implicit functions (Cartesian, spherical, and \(\mathbb{S}^2\) variants):