|
| constexpr | ct_matrix ()=default |
| |
| constexpr | ct_matrix (std::initializer_list< std::initializer_list< Scalar > > list) |
| | Constructs a scalar VariableMatrix from a nested list of Variables.
|
| |
template<typename Derived >
requires std::derived_from<Derived, Eigen::MatrixBase<Derived>> |
| constexpr | ct_matrix (const Derived &mat) |
| |
| constexpr int | rows () const |
| | Returns number of rows.
|
| |
| constexpr int | cols () const |
| | Returns number of columns.
|
| |
| constexpr const Scalar & | operator() (int row, int col) const |
| | Returns reference to matrix element.
|
| |
| constexpr Scalar & | operator() (int row, int col) |
| | Returns reference to matrix element.
|
| |
| constexpr const Scalar & | operator() (int index) const |
| | Returns reference to matrix element.
|
| |
| constexpr Scalar & | operator() (int index) |
| | Returns reference to matrix element.
|
| |
| constexpr ct_matrix< Scalar, Cols, Rows > | transpose () const |
| | Constexpr version of Eigen's transpose member function.
|
| |
template<int RhsRows, int RhsCols>
requires (Rows == 1 || Cols == 1) && (RhsRows == 1 || RhsCols == 1) && (Rows * Cols == RhsRows * RhsCols) |
| constexpr Scalar | dot (const ct_matrix< Scalar, RhsRows, RhsCols > &rhs) const |
| | Constexpr version of Eigen's vector dot member function.
|
| |
| constexpr Scalar | norm () const |
| | Constexpr version of Eigen's norm member function.
|
| |
| constexpr ct_matrix< Scalar, 3, 1 > | cross (const ct_matrix< Scalar, 3, 1 > &rhs) |
| | Constexpr version of Eigen's 3D vector cross member function.
|
| |
| constexpr Scalar | determinant () const |
| | Constexpr version of Eigen's 2x2 matrix determinant member function.
|
| |
| constexpr Scalar | determinant () const |
| | Constexpr version of Eigen's 3x3 matrix determinant member function.
|
| |
| constexpr const Eigen::Matrix< Scalar, Rows, Cols > & | storage () const |
| | Returns the internal Eigen matrix.
|
| |
| constexpr | operator Eigen::Matrix< Scalar, Rows, Cols > () const |
| | Implicit cast to an Eigen matrix.
|
| |
|
| constexpr ct_matrix< Scalar, Rows, Cols > | operator* (Scalar lhs, const ct_matrix< Scalar, Rows, Cols > &rhs) |
| | Constexpr version of Eigen's scalar multiplication operator.
|
| |
| template<int Cols2> |
| constexpr ct_matrix< Scalar, Rows, Cols2 > | operator* (const ct_matrix< Scalar, Rows, Cols > &lhs, const ct_matrix< Scalar, Rows, Cols2 > &rhs) |
| | Constexpr version of Eigen's matrix multiplication operator.
|
| |
| constexpr ct_matrix< Scalar, Rows, Cols > | operator+ (const ct_matrix< Scalar, Rows, Cols > &lhs, const ct_matrix< Scalar, Rows, Cols > &rhs) |
| | Constexpr version of Eigen's matrix addition operator.
|
| |
| constexpr ct_matrix< Scalar, Rows, Cols > | operator- (const ct_matrix< Scalar, Rows, Cols > &lhs, const ct_matrix< Scalar, Rows, Cols > &rhs) |
| | Constexpr version of Eigen's matrix subtraction operator.
|
| |
template<typename Scalar, int Rows, int Cols>
class frc::ct_matrix< Scalar, Rows, Cols >
Compile-time wrapper for Eigen::Matrix.
- Template Parameters
-
| Rows | Rows of matrix. |
| Cols | Columns of matrix. |
template<typename Scalar , int Rows, int Cols>
template<int RhsRows, int RhsCols>
requires (Rows == 1 || Cols == 1) && (RhsRows == 1 || RhsCols == 1) && (Rows * Cols == RhsRows * RhsCols)
Constexpr version of Eigen's vector dot member function.
- Template Parameters
-
| RhsRows | Rows of RHS vector. |
| RhsCols | Columns of RHS vector. |
- Parameters
-
- Returns
- Dot product of two vectors.