TVM
0.9.2
|
#include <tvm/Space.h>
Public Types | |
enum | Type { Type::Euclidean, Type::SO3, Type::SE3, Type::Unspecified } |
Public Member Functions | |
Space (int size) | |
Space (int size, int representationSize) | |
Space (int size, int representationSize, int tangentRepresentationSize) | |
Space (Type type, int size=-1) | |
std::unique_ptr< Variable > | createVariable (std::string_view name) const |
int | size () const |
int | rSize () const |
int | tSize () const |
Type | type () const |
bool | isEuclidean () const |
std::string | sizeAsString () const |
bool | operator== (const Space &other) const |
bool | operator!= (const Space &other) const |
bool | operator<= (const Space &other) const |
Friends | |
Space | operator* (const Space &s1, const Space &s2) |
Description of a variable space, and factory for Variable.
The space can have up to 3 different sizes, although Euclidean spaces will have only one :
Here are a few examples:
|
strong |
tvm::Space::Space | ( | int | size | ) |
Constructor for an Euclidean space
size | size of the space |
tvm::Space::Space | ( | int | size, |
int | representationSize | ||
) |
Constructor for a manifold with tsize = size
size | size of the space |
representationSize | size of the vector needed to represent a variable |
tvm::Space::Space | ( | int | size, |
int | representationSize, | ||
int | tangentRepresentationSize | ||
) |
Constructor for a manifold where tsize != size
size | size of the space |
representationSize | size of the vector needed to represent a variable |
tangentRepresentationSize | size of the vector needed to represent a derivative |
tvm::Space::Space | ( | Type | type, |
int | size = -1 |
||
) |
Constructor for a given space type
type | type of space |
size | size of the space. Only for space types whose size is not fixed. |
std::unique_ptr<Variable> tvm::Space::createVariable | ( | std::string_view | name | ) | const |
Factory function to create a variable.
bool tvm::Space::isEuclidean | ( | ) | const |
Check if this is an Euclidean space.
|
inline |
|
inline |
|
inline |
int tvm::Space::rSize | ( | ) | const |
Size of the vector needed to represent a variable in this space.
int tvm::Space::size | ( | ) | const |
Size of the space (as a manifold)
std::string tvm::Space::sizeAsString | ( | ) | const |
Return size triplet as string
int tvm::Space::tSize | ( | ) | const |
Size of the vector needed to represent a derivative in this space.
Type tvm::Space::type | ( | ) | const |
Type of the space.