|
GKD.RoboCtrl
|
在文件 Matrix.hpp 第 23 行定义.
Public 成员函数 | |
| constexpr | Matrix ()=default |
| Constructor without input data | |
| constexpr | Matrix (T val) |
| constexpr | Matrix (const T *data) |
| Constructor with input data | |
| constexpr | Matrix (const Matrix &mat) |
| Copy Constructor | |
| constexpr | Matrix (Matrix &&mat) noexcept |
| template<typename Ty > requires (std::is_arithmetic_v<Ty>) | |
| constexpr | Matrix (const Matrix< _rows, _cols, Ty > &mat) |
| ~Matrix ()=default | |
| Destructor | |
| constexpr uint32_t | rows () const |
| returns the row size of the matrix | |
| constexpr uint32_t | cols () const |
| return the column size of the matrix | |
| constexpr std::array< T, _cols > & | operator[] (int row) |
| Return the element of the matrix | |
| constexpr const std::array< T, _cols > & | operator[] (int row) const |
| constexpr Matrix & | operator= (const Matrix &mat) |
| Copy assignment of the matrix(row * size) instance | |
| constexpr Matrix & | operator= (Matrix &&mat) noexcept |
| constexpr Matrix & | operator+= (const Matrix &mat) |
| Additional operator of two matrices(row * size) | |
| constexpr Matrix & | operator-= (const Matrix &mat) |
| Substraction operator of two matrices(row * size) | |
| template<typename Ty > requires (std::is_arithmetic_v<Ty>) | |
| constexpr Matrix & | operator*= (Ty val) |
| Scalar operator of the matrix and a scaling factor | |
| template<typename Ty > requires (std::is_arithmetic_v<Ty>) | |
| constexpr Matrix & | operator/= (Ty val) |
| Scalar operator of the matrix and a division factor | |
| constexpr Matrix | operator+ (const Matrix &mat) const |
| Additonal operator | |
| constexpr Matrix | operator- (const Matrix &mat) const |
| Substraction matrix | |
| template<typename Ty > requires (std::is_arithmetic_v<Ty>) | |
| constexpr Matrix | operator* (Ty val) const |
| Scalar operator of the matrix and a scaling factor | |
| template<typename Ty > requires (std::is_arithmetic_v<Ty>) | |
| Matrix | operator/ (Ty val) const |
| Scalar operator of the matrix and a division factor | |
| constexpr bool | operator== (const Matrix &mat) const |
| Compare whether two matrices are identical | |
| template<int rows, int cols> | |
| constexpr Matrix< rows, cols, T > | block (int start_row, int start_col) const |
| constexpr Matrix< 1, _cols, T > | row (int row) const |
| Return the specific row of the matrix | |
| constexpr Matrix< _rows, 1, T > | col (int col) const |
| Return the specific row of the matrix | |
| constexpr Matrix< _cols, _rows > | trans () const |
| Get the transpose of the matrix | |
| constexpr Matrix | clone () const |
| constexpr T | trace () const |
| Get the trace of the matrix | |
| constexpr Matrix | inv () const |
| Get the inverse of the matrix | |
静态 Public 成员函数 | |
| static constexpr Matrix | zeros () |
| Returns a _rows x _cols zero matrix | |
| static constexpr Matrix | ones () |
| Returns a _rows x _cols one matrix | |
| static constexpr Matrix | eye () |
| Returns a _rows * columns matrix | |
| static constexpr Matrix | diag (Matrix< _rows, 1 > vec) |
| Returns a _rows x _cols diagonal matrix | |
友元 | |
| template<typename Ty > requires (std::is_arithmetic_v<Ty>) | |
| constexpr friend Matrix | operator* (Ty val, const Matrix &mat) |
| Scalar operator of the matrix and a scaling factor | |
| template<int cols2> | |
| constexpr friend Matrix< _rows, cols2, T > | operator* (const Matrix< _rows, _cols, T > &mat1, const Matrix< _cols, cols2, T > &mat2) |
| The matrix multiplication | |
|
constexprdefault |
Constructor without input data
|
inlineexplicitconstexpr |
在文件 Matrix.hpp 第 33 行定义.
|
inlineexplicitconstexpr |
|
inlineconstexprnoexcept |
在文件 Matrix.hpp 第 59 行定义.
|
inlineconstexpr |
在文件 Matrix.hpp 第 66 行定义.
|
inlineconstexpr |
在文件 Matrix.hpp 第 305 行定义.
|
inlineconstexpr |
|
inlineconstexpr |
Return the specific row of the matrix
| col | The column index |
| The | column vector presented in the matrix from |
在文件 Matrix.hpp 第 329 行定义.
|
inlineconstexpr |
|
inlinestaticconstexpr |
Returns a _rows x _cols diagonal matrix
| _rows | The row size |
| _cols | The column size |
| vec | The diagnoal entries |
| The | diagnoanl matrix |
在文件 Matrix.hpp 第 468 行定义.
Returns a _rows * columns matrix
| _rows | The row size |
| _cols | The column size |
| The | identity matrix |
在文件 Matrix.hpp 第 451 行定义.
引用了 roboctrl::utils::Matrix< _rows, _cols, T >::zeros().
被这些函数引用 roboctrl::utils::Matrix< _rows, _cols, T >::inv() , 以及 roboctrl::utils::RLS< dim >::reset().
|
inlineconstexpr |
Returns a _rows x _cols one matrix
| _rows | The row size |
| _cols | The column size |
| The | one matrix |
在文件 Matrix.hpp 第 440 行定义.
|
inlineconstexpr |
Scalar operator of the matrix and a scaling factor
| val | The scaling factor |
在文件 Matrix.hpp 第 232 行定义.
|
inlineconstexpr |
Scalar operator of the matrix and a scaling factor
| val | The scaling factor |
在文件 Matrix.hpp 第 165 行定义.
|
inlineconstexpr |
Additonal operator
| mat | The matrix on the right hand side |
在文件 Matrix.hpp 第 198 行定义.
|
inlineconstexpr |
Additional operator of two matrices(row * size)
| mat | The matrix on the right hand side |
在文件 Matrix.hpp 第 133 行定义.
|
inlineconstexpr |
Substraction matrix
| mat | matrix on the right hand side |
在文件 Matrix.hpp 第 214 行定义.
|
inlineconstexpr |
Substraction operator of two matrices(row * size)
| mat | The matrix on the left hand side |
在文件 Matrix.hpp 第 148 行定义.
|
inline |
Scalar operator of the matrix and a division factor
| val | The division factor |
| matrix | / val |
在文件 Matrix.hpp 第 265 行定义.
|
inlineconstexpr |
Scalar operator of the matrix and a division factor
| val | The division factor |
| matrix | / val |
在文件 Matrix.hpp 第 183 行定义.
|
inlineconstexpr |
Copy assignment of the matrix(row * size) instance
| mat | The copied prototype |
在文件 Matrix.hpp 第 115 行定义.
|
inlineconstexprnoexcept |
在文件 Matrix.hpp 第 121 行定义.
|
inlineconstexpr |
Compare whether two matrices are identical
在文件 Matrix.hpp 第 299 行定义.
|
inlineconstexpr |
|
inlineconstexpr |
在文件 Matrix.hpp 第 105 行定义.
|
inlineconstexpr |
Return the specific row of the matrix
| row | The row index |
| The | row vector presented in the matrix from |
在文件 Matrix.hpp 第 319 行定义.
|
inlineconstexpr |
|
inlineconstexpr |
Returns a _rows x _cols zero matrix
| _rows | The row size |
| _cols | The column size |
| The | zero matrix |
在文件 Matrix.hpp 第 429 行定义.
被这些函数引用 roboctrl::utils::Matrix< _rows, _cols, T >::diag(), roboctrl::utils::Matrix< _rows, _cols, T >::eye() , 以及 roboctrl::utils::RLS< dim >::reset().
|
friend |
The matrix multiplication
| mat1 | the matrix on the LHS |
| mat2 | the matrix on the RHS |
在文件 Matrix.hpp 第 282 行定义.
Scalar operator of the matrix and a scaling factor
| val | The scaling factor on the left hand side |
在文件 Matrix.hpp 第 251 行定义.