OpenSet: Abstract Class for Open Set Manifolds

OpenSetR Documentation

Abstract Class for Open Set Manifolds

Description

Class for manifolds that are open sets of a vector space. In this case, tangent vectors are identified with vectors of the ambient space.

Super classes

rgeomstats::PythonClass -> rgeomstats::Manifold -> OpenSet

Public fields

ambient_space

An object of class VectorSpace specifying the ambient space.

Methods

Public methods

Inherited methods

Method new()

The OpenSet class constructor.

Usage
OpenSet$new(dim, ambient_space, ..., py_cls = NULL)
Arguments
dim

An integer value specifying the dimension of the manifold.

ambient_space

An object of class VectorSpace specifying the ambient space.

...

Extra arguments to be passed to parent class constructors. See Manifold class.

py_cls

A Python object of class OpenSet. Defaults to NULL in which case it is instantiated on the fly using the other input arguments.

Returns

An object of class OpenSet.


Method projection()

Project a point in the ambient space onto the manifold.

Usage
OpenSet$projection(point)
Arguments
point

A numeric array of shape [… \times \{\mathrm{dim}\}] specifying one or more vectors in the ambient space of the manifold.

Returns

A numeric array of the same shape storing the corresponding projections onto the manifold.

Examples
if (reticulate::py_module_available("geomstats")) {
  spd3 <- SPDMatrix(n = 3)
  spd3$projection(diag(1, 3))
}

Method clone()

The objects of this class are cloneable with this method.

Usage
OpenSet$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Nicolas Guigui and Nina Miolane

See Also

SPDMatrix

Examples


## ------------------------------------------------
## Method `OpenSet$projection`
## ------------------------------------------------

if (reticulate::py_module_available("geomstats")) {
  spd3 <- SPDMatrix(n = 3)
  spd3$projection(diag(1, 3))
}

rgeomstats documentation built on Nov. 4, 2022, 5:09 p.m.