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_spaceAn object of class
VectorSpacespecifying the ambient space.
Methods
Inherited methods
rgeomstats::PythonClass$get_python_class()rgeomstats::PythonClass$set_python_class()rgeomstats::Manifold$belongs()rgeomstats::Manifold$is_tangent()rgeomstats::Manifold$random_point()rgeomstats::Manifold$random_tangent_vec()rgeomstats::Manifold$regularize()rgeomstats::Manifold$set_metric()rgeomstats::Manifold$to_tangent()
Method new()
The OpenSet class constructor.
Usage
OpenSet$new(dim, ambient_space, ..., py_cls = NULL)Arguments
dimAn integer value specifying the dimension of the manifold.
ambient_spaceAn object of class
VectorSpacespecifying the ambient space....Extra arguments to be passed to parent class constructors. See
Manifoldclass.py_clsA Python object of class
OpenSet. Defaults toNULLin which case it is instantiated on the fly using the other input arguments.
Method projection()
Project a point in the ambient space onto the manifold.
Arguments
pointA numeric array of shape \([\dots \times \{\mathrm{dim}\}]\) specifying one or more vectors in the ambient space of the manifold.
Examples
if (reticulate::py_module_available("geomstats")) {
spd3 <- SPDMatrix(n = 3)
spd3$projection(diag(1, 3))
}Examples
## ------------------------------------------------
## Method `OpenSet$projection`
## ------------------------------------------------
if (reticulate::py_module_available("geomstats")) {
spd3 <- SPDMatrix(n = 3)
spd3$projection(diag(1, 3))
}
