Learn R Programming

manifold (version 0.1.2)

Operations for Riemannian Manifolds

Description

Implements operations for Riemannian manifolds, e.g., geodesic distance, Riemannian metric, exponential and logarithm maps, etc. Also incorporates random object generator on the manifolds. See Dai, Lin, and Müller (2021) .

Copy Link

Version

Install

install.packages('manifold')

Monthly Downloads

203

Version

0.1.2

License

GPL (>= 2)

Maintainer

Xiongtao Dai

Last Published

December 1st, 2025

Functions in manifold (0.1.2)

projectTangent.Euclidean

Project data points in the ambient space onto the tangent space
runifSphere

Generate uniform random variables on the unit sphere
rieLog.Euclidean

Riemannian logarithm map
rmfd

Generate random variables on the manifold
tanVToCoord

Transform tangent vectors to their coordinates on the tangent space
rieExp.Euclidean

Riemannian exponential map
origin.Euclidean

Returns the origin of the manifold
project.Euclidean

Project data points in the ambient space onto the manifold
norm.Euclidean

Norm on the tangent space induced by the Riemannian metric
LogM

Matrix logarithm
basisTan.Euclidean

Obtain an orthonormal basis on the tangent space
Normalize

Normalize a vector
ExpM

Matrix exponential
axisAngleRep

LogMSPD

Matrix logarithm of a symmetric positive definite
MakeSym

Make a symmetric matrix by specifying a near-symmetric matrix M, or the lower triangular elements lowerTri with diagonal.
GetSettingName

Helper function for simulations
coordToTanV

Transform the coordinates for the tangent space into a tangent vector
createM

Create an object to symbolize the manifold.
dimensions

Dimensions in this package
metric.Euclidean

Returns the Riemannian metric
geodesicCurve

Obtain the geodesic curve
is.finiteDim

Tell whether a manifold is a finite-dimensional one
distance.Euclidean

Geodesic distance
manifold

manifold: Operations for Riemannian manifolds
frechetMean

Calculate the Fréchet mean
frechetMedian

Calculate the Fréchet median
listAvailMfd

List all available manifold names