| OpenSet | R Documentation |
Class for manifolds that are open sets of a vector space. In this case, tangent vectors are identified with vectors of the ambient space.
rgeomstats::PythonClass -> rgeomstats::Manifold -> OpenSet
ambient_spaceAn object of class VectorSpace specifying the
ambient space.
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()new()The OpenSet class constructor.
OpenSet$new(dim, ambient_space, ..., py_cls = NULL)
dimAn integer value specifying the dimension of the manifold.
ambient_spaceAn object of class VectorSpace specifying the
ambient space.
...Extra arguments to be passed to parent class constructors. See
Manifold class.
py_clsA Python object of class OpenSet. Defaults to NULL in
which case it is instantiated on the fly using the other input
arguments.
An object of class OpenSet.
projection()Project a point in the ambient space onto the manifold.
OpenSet$projection(point)
pointA numeric array of shape [… \times \{\mathrm{dim}\}] specifying one or more vectors in the ambient space of the manifold.
A numeric array of the same shape storing the corresponding projections onto the manifold.
if (reticulate::py_module_available("geomstats")) {
spd3 <- SPDMatrix(n = 3)
spd3$projection(diag(1, 3))
}
clone()The objects of this class are cloneable with this method.
OpenSet$clone(deep = FALSE)
deepWhether to make a deep clone.
Nicolas Guigui and Nina Miolane
SPDMatrix
## ------------------------------------------------
## Method `OpenSet$projection`
## ------------------------------------------------
if (reticulate::py_module_available("geomstats")) {
spd3 <- SPDMatrix(n = 3)
spd3$projection(diag(1, 3))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.