View source: R/special-orthogonal.R
SpecialOrthogonal | R Documentation |
This function generates an instance of the class for the special orthogonal group \mathrm{SO}(n).
SpecialOrthogonal(n, point_type = "matrix", epsilon = 0, ..., py_cls = NULL)
n |
An integer value representing the shape of the |
point_type |
A character string specifying how elements of the group
should be represented. Choices are either |
epsilon |
A numeric value specifying the precision to use for
calculations involving potential division by 0 in rotations. Defaults to
|
... |
Extra arguments to be passed to parent class constructors. See
|
py_cls |
A Python object of class |
An object of class SpecialOrthogonal
which is an instance of one
of three different R6::R6Class
depending on the values of the input
arguments. Specifically:
if n == 2
and point_type == "vector"
, then the user wants to
instantiate the space of 2D rotations in vector representations and thus the
output is an instance of the SpecialOrthogonal2Vectors
class;
if n == 3
and point_type == "vector"
, then the user wants to
instantiate the space of 3D rotations in vector representations and thus the
output is an instance of the SpecialOrthogonal3Vectors
class;
in all other cases, either the user is dealing with rotations in matrix
representation or with rotations in dimension greater than 3 and thus the
output is an instance of the SpecialOrthogonalMatrices
class.
Nicolas Guigui and Nina Miolane
Other special orthogonal classes:
SpecialOrthogonal2Vectors
,
SpecialOrthogonal3Vectors
,
SpecialOrthogonalMatrices
if (reticulate::py_module_available("geomstats")) { so3 <- SpecialOrthogonal(n = 3) so3 }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.