| NFoldManifold | R Documentation |
Class for an n-fold product manifold M^n. It defines a manifold as the product manifold of n copies of a given base manifold M.
rgeomstats::PythonClass -> rgeomstats::Manifold -> NFoldManifold
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 NFoldManifold class constructor.
NFoldManifold$new( base_manifold, n_copies, metric = NULL, default_coords_type = "intrinsic", py_cls = NULL )
base_manifoldAn R6::R6Class specifying the base manifold to copy.
n_copiesAn integer value specifying the number of replication of the base manifold.
metricAn R6::R6Class specifying the base metric to use.
Defaults to NULL which uses the Riemannian metric.
default_coords_typeA string specifying the coordinate type.
Choices are "intrinsic" or "extrinsic". Defaults to "intrinsic".
py_clsA Python object of class NFoldManifold. Defaults to
NULL in which case it is instantiated on the fly using the other
input arguments.
A NFoldManifold R6::R6Class object.
if (reticulate::py_module_available("geomstats")) {
nfm <- NFoldManifold$new(
base_manifold = SPDMatrix(n = 3),
n_copies = 3
)
nfm
}
clone()The objects of this class are cloneable with this method.
NFoldManifold$clone(deep = FALSE)
deepWhether to make a deep clone.
Nicolas Guigui
## ------------------------------------------------
## Method `NFoldManifold$new`
## ------------------------------------------------
if (reticulate::py_module_available("geomstats")) {
nfm <- NFoldManifold$new(
base_manifold = SPDMatrix(n = 3),
n_copies = 3
)
nfm
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.