raisim::Transpose
class · #include <raisim/math/Matrix.hpp>
Inherits: raisim::MatExpr< Transpose< T > >
cpp
template <class T>
class TransposeLazy expression for the transpose of a fixed-size matrix expression, returned by Mat::transpose(). It holds a reference to its operand and must not outlive it.
Public types
SelfType
cpp
typedef Transpose<T> SelfTypeThis type (used by the shared expression machinery).
Constructors & destructor
Transpose
cpp
explicit Transpose(T const &u)Parameters
| Parameter | Description |
|---|---|
u (in) | expression to transpose (held by reference) |
Public member functions
operator()
cpp
double operator()(size_t i, size_t j) constParameters
| Parameter | Description |
|---|---|
i (in) | row index |
j (in) | column index |
Returns element (i, j) of the transpose, i.e. element (j, i) of the operand.
operator[]
cpp
double operator[](size_t i) constParameters
| Parameter | Description |
|---|---|
i (in) | column-major linear index into the transpose |
Returns element i of the transpose.
Static member functions
size static
cpp
static constexpr size_t size()Returns number of elements.
cols static
cpp
static constexpr size_t cols()Returns number of columns (rows of the operand).
rows static
cpp
static constexpr size_t rows()Returns number of rows (columns of the operand).
Public attributes
_u
cpp
const T &_uReferenced operand.