raisim::Prod_op< Mat< 4, 4 >, Mat< 4, 4 > >
class · #include <raisim/math/Operation.hpp>
Inherits: raisim::MatExpr< Prod_op< Mat< 4, 4 >, Mat< 4, 4 > > >
cpp
template <>
class Prod_op<Mat<4, 4>, Mat<4, 4>>Specialization for the 4x4 by 4x4 product: it is evaluated eagerly (with Eigen) when constructed and stores the result.
Public types
SelfType
cpp
using SelfType = Prod_op<Mat<4, 4>, Mat<4, 4>>This type.
Constructors & destructor
Prod_op
cpp
Prod_op(Mat<4, 4> const &u, Mat<4, 4> const &v)Computes u * v.
Parameters
| Parameter | Description |
|---|---|
u (in) | left operand |
v (in) | right operand |
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 product.
cpp
double operator()(size_t i) constParameters
| Parameter | Description |
|---|---|
i (in) | column-major linear index |
Returns element i of the product.
operator[]
cpp
double operator[](size_t i) constParameters
| Parameter | Description |
|---|---|
i (in) | column-major linear index |
Returns element i of the product.
Static member functions
size static
cpp
static constexpr size_t size()Returns 16.
cols static
cpp
static constexpr size_t cols()Returns 4.
rows static
cpp
static constexpr size_t rows()Returns 4.
Public attributes
result
cpp
Mat<4, 4> resultEvaluated product.
_u
cpp
const Mat<4, 4> &_uLeft operand.
_v
cpp
const Mat<4, 4> &_vRight operand.