Skip to content

raisim::Transpose ​

class · #include <raisim/math/Matrix.hpp>

Inherits: raisim::MatExpr< Transpose< T > >

cpp
template <class T>
class Transpose

Lazy 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> SelfType

This type (used by the shared expression machinery).

Constructors & destructor ​

Transpose ​

cpp
explicit Transpose(T const &u)

Parameters

ParameterDescription
u (in)expression to transpose (held by reference)

Public member functions ​

operator() ​

cpp
double operator()(size_t i, size_t j) const

Parameters

ParameterDescription
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) const

Parameters

ParameterDescription
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 &_u

Referenced operand.

RaiSim — physics for robotics and AI.