![]()  | 
  
    Eigen
    5.0.1-dev+284dcc12
    
   | 
    
Eigen defines several typedef shortcuts for most common matrix and vector types.
The general patterns are the following:
MatrixSizeType where Size can be 2,3,4 for fixed size square matrices or X for dynamic size, and where Type can be i for integer, f for float, d for double, cf for complex float, cd for complex double.
For example, Matrix3d is a fixed-size 3x3 matrix type of doubles, and MatrixXf is a dynamic-size matrix of floats.
There are also VectorSizeType and RowVectorSizeType which are self-explanatory. For example, Vector4cf is a fixed-size vector of 4 complex floats.
With [c++11], template alias are also defined for common sizes. They follow the same pattern as above except that the scalar type suffix is replaced by a template parameter, i.e.:
MatrixSize<Type> where Size can be 2,3,4 for fixed size square matrices or X for dynamic size.MatrixXSize<Type> and MatrixSizeX<Type> where Size can be 2,3,4 for hybrid dynamic/fixed matrices.VectorSize<Type> and RowVectorSize<Type> for column and row vectors.With [c++11], you can also use fully generic column and row vector types: Vector<Type,Size> and RowVector<Type,Size>.
Typedefs | |
| template<typename Type> | |
| using | Eigen::Matrix2 | 
[c++11] 2×2 matrix of type Type.  | |
| typedef Matrix< std::complex< double >, 2, 2 > | Eigen::Matrix2cd | 
2×2 matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 2, 2 > | Eigen::Matrix2cf | 
2×2 matrix of type std::complex<float>.  | |
| typedef Matrix< double, 2, 2 > | Eigen::Matrix2d | 
2×2 matrix of type double.  | |
| typedef Matrix< float, 2, 2 > | Eigen::Matrix2f | 
2×2 matrix of type float.  | |
| typedef Matrix< int, 2, 2 > | Eigen::Matrix2i | 
2×2 matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::Matrix2X | 
[c++11] 2×Dynamic matrix of type Type  | |
| typedef Matrix< std::complex< double >, 2, Dynamic > | Eigen::Matrix2Xcd | 
2×Dynamic matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 2, Dynamic > | Eigen::Matrix2Xcf | 
2×Dynamic matrix of type std::complex<float>.  | |
| typedef Matrix< double, 2, Dynamic > | Eigen::Matrix2Xd | 
2×Dynamic matrix of type double.  | |
| typedef Matrix< float, 2, Dynamic > | Eigen::Matrix2Xf | 
2×Dynamic matrix of type float.  | |
| typedef Matrix< int, 2, Dynamic > | Eigen::Matrix2Xi | 
2×Dynamic matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::Matrix3 | 
[c++11] 3×3 matrix of type Type.  | |
| typedef Matrix< std::complex< double >, 3, 3 > | Eigen::Matrix3cd | 
3×3 matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 3, 3 > | Eigen::Matrix3cf | 
3×3 matrix of type std::complex<float>.  | |
| typedef Matrix< double, 3, 3 > | Eigen::Matrix3d | 
3×3 matrix of type double.  | |
| typedef Matrix< float, 3, 3 > | Eigen::Matrix3f | 
3×3 matrix of type float.  | |
| typedef Matrix< int, 3, 3 > | Eigen::Matrix3i | 
3×3 matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::Matrix3X | 
[c++11] 3×Dynamic matrix of type Type  | |
| typedef Matrix< std::complex< double >, 3, Dynamic > | Eigen::Matrix3Xcd | 
3×Dynamic matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 3, Dynamic > | Eigen::Matrix3Xcf | 
3×Dynamic matrix of type std::complex<float>.  | |
| typedef Matrix< double, 3, Dynamic > | Eigen::Matrix3Xd | 
3×Dynamic matrix of type double.  | |
| typedef Matrix< float, 3, Dynamic > | Eigen::Matrix3Xf | 
3×Dynamic matrix of type float.  | |
| typedef Matrix< int, 3, Dynamic > | Eigen::Matrix3Xi | 
3×Dynamic matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::Matrix4 | 
[c++11] 4×4 matrix of type Type.  | |
| typedef Matrix< std::complex< double >, 4, 4 > | Eigen::Matrix4cd | 
4×4 matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 4, 4 > | Eigen::Matrix4cf | 
4×4 matrix of type std::complex<float>.  | |
| typedef Matrix< double, 4, 4 > | Eigen::Matrix4d | 
4×4 matrix of type double.  | |
| typedef Matrix< float, 4, 4 > | Eigen::Matrix4f | 
4×4 matrix of type float.  | |
| typedef Matrix< int, 4, 4 > | Eigen::Matrix4i | 
4×4 matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::Matrix4X | 
[c++11] 4×Dynamic matrix of type Type  | |
| typedef Matrix< std::complex< double >, 4, Dynamic > | Eigen::Matrix4Xcd | 
4×Dynamic matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 4, Dynamic > | Eigen::Matrix4Xcf | 
4×Dynamic matrix of type std::complex<float>.  | |
| typedef Matrix< double, 4, Dynamic > | Eigen::Matrix4Xd | 
4×Dynamic matrix of type double.  | |
| typedef Matrix< float, 4, Dynamic > | Eigen::Matrix4Xf | 
4×Dynamic matrix of type float.  | |
| typedef Matrix< int, 4, Dynamic > | Eigen::Matrix4Xi | 
4×Dynamic matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::MatrixX | 
[c++11] Dynamic×Dynamic matrix of type Type.  | |
| template<typename Type> | |
| using | Eigen::MatrixX2 | 
[c++11] Dynamic×2 matrix of type Type.  | |
| typedef Matrix< std::complex< double >, Dynamic, 2 > | Eigen::MatrixX2cd | 
Dynamic×2 matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, Dynamic, 2 > | Eigen::MatrixX2cf | 
Dynamic×2 matrix of type std::complex<float>.  | |
| typedef Matrix< double, Dynamic, 2 > | Eigen::MatrixX2d | 
Dynamic×2 matrix of type double.  | |
| typedef Matrix< float, Dynamic, 2 > | Eigen::MatrixX2f | 
Dynamic×2 matrix of type float.  | |
| typedef Matrix< int, Dynamic, 2 > | Eigen::MatrixX2i | 
Dynamic×2 matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::MatrixX3 | 
[c++11] Dynamic×3 matrix of type Type.  | |
| typedef Matrix< std::complex< double >, Dynamic, 3 > | Eigen::MatrixX3cd | 
Dynamic×3 matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, Dynamic, 3 > | Eigen::MatrixX3cf | 
Dynamic×3 matrix of type std::complex<float>.  | |
| typedef Matrix< double, Dynamic, 3 > | Eigen::MatrixX3d | 
Dynamic×3 matrix of type double.  | |
| typedef Matrix< float, Dynamic, 3 > | Eigen::MatrixX3f | 
Dynamic×3 matrix of type float.  | |
| typedef Matrix< int, Dynamic, 3 > | Eigen::MatrixX3i | 
Dynamic×3 matrix of type int.  | |
| template<typename Type> | |
| using | Eigen::MatrixX4 | 
[c++11] Dynamic×4 matrix of type Type.  | |
| typedef Matrix< std::complex< double >, Dynamic, 4 > | Eigen::MatrixX4cd | 
Dynamic×4 matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, Dynamic, 4 > | Eigen::MatrixX4cf | 
Dynamic×4 matrix of type std::complex<float>.  | |
| typedef Matrix< double, Dynamic, 4 > | Eigen::MatrixX4d | 
Dynamic×4 matrix of type double.  | |
| typedef Matrix< float, Dynamic, 4 > | Eigen::MatrixX4f | 
Dynamic×4 matrix of type float.  | |
| typedef Matrix< int, Dynamic, 4 > | Eigen::MatrixX4i | 
Dynamic×4 matrix of type int.  | |
| typedef Matrix< std::complex< double >, Dynamic, Dynamic > | Eigen::MatrixXcd | 
Dynamic×Dynamic matrix of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, Dynamic, Dynamic > | Eigen::MatrixXcf | 
Dynamic×Dynamic matrix of type std::complex<float>.  | |
| typedef Matrix< double, Dynamic, Dynamic > | Eigen::MatrixXd | 
Dynamic×Dynamic matrix of type double.  | |
| typedef Matrix< float, Dynamic, Dynamic > | Eigen::MatrixXf | 
Dynamic×Dynamic matrix of type float.  | |
| typedef Matrix< int, Dynamic, Dynamic > | Eigen::MatrixXi | 
Dynamic×Dynamic matrix of type int.  | |
| template<typename Type, int Size> | |
| using | Eigen::RowVector | 
[c++11] 1×Size vector of type Type.  | |
| template<typename Type> | |
| using | Eigen::RowVector2 | 
[c++11] 1×2 vector of type Type.  | |
| typedef Matrix< std::complex< double >, 1, 2 > | Eigen::RowVector2cd | 
1×2 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 1, 2 > | Eigen::RowVector2cf | 
1×2 vector of type std::complex<float>.  | |
| typedef Matrix< double, 1, 2 > | Eigen::RowVector2d | 
1×2 vector of type double.  | |
| typedef Matrix< float, 1, 2 > | Eigen::RowVector2f | 
1×2 vector of type float.  | |
| typedef Matrix< int, 1, 2 > | Eigen::RowVector2i | 
1×2 vector of type int.  | |
| template<typename Type> | |
| using | Eigen::RowVector3 | 
[c++11] 1×3 vector of type Type.  | |
| typedef Matrix< std::complex< double >, 1, 3 > | Eigen::RowVector3cd | 
1×3 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 1, 3 > | Eigen::RowVector3cf | 
1×3 vector of type std::complex<float>.  | |
| typedef Matrix< double, 1, 3 > | Eigen::RowVector3d | 
1×3 vector of type double.  | |
| typedef Matrix< float, 1, 3 > | Eigen::RowVector3f | 
1×3 vector of type float.  | |
| typedef Matrix< int, 1, 3 > | Eigen::RowVector3i | 
1×3 vector of type int.  | |
| template<typename Type> | |
| using | Eigen::RowVector4 | 
[c++11] 1×4 vector of type Type.  | |
| typedef Matrix< std::complex< double >, 1, 4 > | Eigen::RowVector4cd | 
1×4 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 1, 4 > | Eigen::RowVector4cf | 
1×4 vector of type std::complex<float>.  | |
| typedef Matrix< double, 1, 4 > | Eigen::RowVector4d | 
1×4 vector of type double.  | |
| typedef Matrix< float, 1, 4 > | Eigen::RowVector4f | 
1×4 vector of type float.  | |
| typedef Matrix< int, 1, 4 > | Eigen::RowVector4i | 
1×4 vector of type int.  | |
| template<typename Type> | |
| using | Eigen::RowVectorX | 
[c++11] 1×Dynamic vector of type Type.  | |
| typedef Matrix< std::complex< double >, 1, Dynamic > | Eigen::RowVectorXcd | 
1×Dynamic vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 1, Dynamic > | Eigen::RowVectorXcf | 
1×Dynamic vector of type std::complex<float>.  | |
| typedef Matrix< double, 1, Dynamic > | Eigen::RowVectorXd | 
1×Dynamic vector of type double.  | |
| typedef Matrix< float, 1, Dynamic > | Eigen::RowVectorXf | 
1×Dynamic vector of type float.  | |
| typedef Matrix< int, 1, Dynamic > | Eigen::RowVectorXi | 
1×Dynamic vector of type int.  | |
| template<typename Type, int Size> | |
| using | Eigen::Vector | 
[c++11] Size×1 vector of type Type.  | |
| template<typename Type> | |
| using | Eigen::Vector2 | 
[c++11] 2×1 vector of type Type.  | |
| typedef Matrix< std::complex< double >, 2, 1 > | Eigen::Vector2cd | 
2×1 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 2, 1 > | Eigen::Vector2cf | 
2×1 vector of type std::complex<float>.  | |
| typedef Matrix< double, 2, 1 > | Eigen::Vector2d | 
2×1 vector of type double.  | |
| typedef Matrix< float, 2, 1 > | Eigen::Vector2f | 
2×1 vector of type float.  | |
| typedef Matrix< int, 2, 1 > | Eigen::Vector2i | 
2×1 vector of type int.  | |
| template<typename Type> | |
| using | Eigen::Vector3 | 
[c++11] 3×1 vector of type Type.  | |
| typedef Matrix< std::complex< double >, 3, 1 > | Eigen::Vector3cd | 
3×1 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 3, 1 > | Eigen::Vector3cf | 
3×1 vector of type std::complex<float>.  | |
| typedef Matrix< double, 3, 1 > | Eigen::Vector3d | 
3×1 vector of type double.  | |
| typedef Matrix< float, 3, 1 > | Eigen::Vector3f | 
3×1 vector of type float.  | |
| typedef Matrix< int, 3, 1 > | Eigen::Vector3i | 
3×1 vector of type int.  | |
| template<typename Type> | |
| using | Eigen::Vector4 | 
[c++11] 4×1 vector of type Type.  | |
| typedef Matrix< std::complex< double >, 4, 1 > | Eigen::Vector4cd | 
4×1 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, 4, 1 > | Eigen::Vector4cf | 
4×1 vector of type std::complex<float>.  | |
| typedef Matrix< double, 4, 1 > | Eigen::Vector4d | 
4×1 vector of type double.  | |
| typedef Matrix< float, 4, 1 > | Eigen::Vector4f | 
4×1 vector of type float.  | |
| typedef Matrix< int, 4, 1 > | Eigen::Vector4i | 
4×1 vector of type int.  | |
| template<typename Type> | |
| using | Eigen::VectorX | 
[c++11] Dynamic×1 vector of type Type.  | |
| typedef Matrix< std::complex< double >, Dynamic, 1 > | Eigen::VectorXcd | 
Dynamic×1 vector of type std::complex<double>.  | |
| typedef Matrix< std::complex< float >, Dynamic, 1 > | Eigen::VectorXcf | 
Dynamic×1 vector of type std::complex<float>.  | |
| typedef Matrix< double, Dynamic, 1 > | Eigen::VectorXd | 
Dynamic×1 vector of type double.  | |
| typedef Matrix< float, Dynamic, 1 > | Eigen::VectorXf | 
Dynamic×1 vector of type float.  | |
| typedef Matrix< int, Dynamic, 1 > | Eigen::VectorXi | 
Dynamic×1 vector of type int.  | |