Implements map and ref for both static & dynamic mode
See merge request oss/rotgen!12
This commit is contained in:
parent
aacae1cbb1
commit
6c2b260229
58 changed files with 4121 additions and 1205 deletions
40
include/rotgen/alias.hpp
Normal file
40
include/rotgen/alias.hpp
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
//==================================================================================================
|
||||
/*
|
||||
ROTGEN - Runtime Overlay for Eigen
|
||||
Copyright : CODE RECKONS
|
||||
SPDX-License-Identifier: BSL-1.0
|
||||
*/
|
||||
//==================================================================================================
|
||||
namespace rotgen
|
||||
{
|
||||
// matrix aliases (float and double, fixed and dynamic)
|
||||
using matrix2f = rotgen::matrix<float, 2, 2>;
|
||||
using matrix3f = rotgen::matrix<float, 3, 3>;
|
||||
using matrix4f = rotgen::matrix<float, 4, 4>;
|
||||
using matrix2d = rotgen::matrix<double, 2, 2>;
|
||||
using matrix3d = rotgen::matrix<double, 3, 3>;
|
||||
using matrix4d = rotgen::matrix<double, 4, 4>;
|
||||
using matrixXf = rotgen::matrix<float, rotgen::Dynamic, rotgen::Dynamic>;
|
||||
using matrixXd = rotgen::matrix<double, rotgen::Dynamic, rotgen::Dynamic>;
|
||||
using matrixXi = rotgen::matrix<int, rotgen::Dynamic, rotgen::Dynamic>;
|
||||
|
||||
// Column vector aliases
|
||||
using vector2f = rotgen::matrix<float, 2, 1>;
|
||||
using vector3f = rotgen::matrix<float, 3, 1>;
|
||||
using vector4f = rotgen::matrix<float, 4, 1>;
|
||||
using vector2d = rotgen::matrix<double, 2, 1>;
|
||||
using vector3d = rotgen::matrix<double, 3, 1>;
|
||||
using vector4d = rotgen::matrix<double, 4, 1>;
|
||||
using vectorXf = rotgen::matrix<float, rotgen::Dynamic, 1>;
|
||||
using vectorXd = rotgen::matrix<double, rotgen::Dynamic, 1>;
|
||||
|
||||
// Row vector aliases
|
||||
using row_vector2f = rotgen::matrix<float, 1, 2>;
|
||||
using row_vector3f = rotgen::matrix<float, 1, 3>;
|
||||
using row_vector4f = rotgen::matrix<float, 1, 4>;
|
||||
using row_vector2d = rotgen::matrix<double, 1, 2>;
|
||||
using row_vector3d = rotgen::matrix<double, 1, 3>;
|
||||
using row_vector4d = rotgen::matrix<double, 1, 4>;
|
||||
using row_vectorXf = rotgen::matrix<float, 1, rotgen::Dynamic>;
|
||||
using row_vectorXd = rotgen::matrix<double, 1, rotgen::Dynamic>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue