SpecialOrthogonal {rgeomstats} | R Documentation |
Class for the Special Orthogonal Group
Description
This function generates an instance of the class for the special orthogonal
group .
Usage
SpecialOrthogonal(n, point_type = "matrix", epsilon = 0, ..., py_cls = NULL)
Arguments
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 |
Value
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
andpoint_type == "vector"
, then the user wants to instantiate the space of 2D rotations in vector representations and thus the output is an instance of theSpecialOrthogonal2Vectors
class;if
n == 3
andpoint_type == "vector"
, then the user wants to instantiate the space of 3D rotations in vector representations and thus the output is an instance of theSpecialOrthogonal3Vectors
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.
Author(s)
Nicolas Guigui and Nina Miolane
See Also
Other special orthogonal classes:
SpecialOrthogonal2Vectors
,
SpecialOrthogonal3Vectors
,
SpecialOrthogonalMatrices
Examples
if (reticulate::py_module_available("geomstats")) {
so3 <- SpecialOrthogonal(n = 3)
so3
}