Eigen  3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)

Detailed Description

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.:

With [c++11], you can also use fully generic column and row vector types: Vector<Type,Size> and RowVector<Type,Size>.

See also
class Matrix

Typedefs

template<typename Type >
using Eigen::Matrix2 = Matrix< Type, 2, 2 >
 [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 = Matrix< Type, 2, Dynamic >
 [c++11] 2×Dynamic matrix of type Type
 
typedef Matrix< std::complex< double >, 2, DynamicEigen::Matrix2Xcd
 2×Dynamic matrix of type std::complex<double>.
 
typedef Matrix< std::complex< float >, 2, DynamicEigen::Matrix2Xcf
 2×Dynamic matrix of type std::complex<float>.
 
typedef Matrix< double, 2, DynamicEigen::Matrix2Xd
 2×Dynamic matrix of type double.
 
typedef Matrix< float, 2, DynamicEigen::Matrix2Xf
 2×Dynamic matrix of type float.
 
typedef Matrix< int, 2, DynamicEigen::Matrix2Xi
 2×Dynamic matrix of type int.
 
template<typename Type >
using Eigen::Matrix3 = Matrix< Type, 3, 3 >
 [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 = Matrix< Type, 3, Dynamic >
 [c++11] 3×Dynamic matrix of type Type
 
typedef Matrix< std::complex< double >, 3, DynamicEigen::Matrix3Xcd
 3×Dynamic matrix of type std::complex<double>.
 
typedef Matrix< std::complex< float >, 3, DynamicEigen::Matrix3Xcf
 3×Dynamic matrix of type std::complex<float>.
 
typedef Matrix< double, 3, DynamicEigen::Matrix3Xd
 3×Dynamic matrix of type double.
 
typedef Matrix< float, 3, DynamicEigen::Matrix3Xf
 3×Dynamic matrix of type float.
 
typedef Matrix< int, 3, DynamicEigen::Matrix3Xi
 3×Dynamic matrix of type int.
 
template<typename Type >
using Eigen::Matrix4 = Matrix< Type, 4, 4 >
 [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 = Matrix< Type, 4, Dynamic >
 [c++11] 4×Dynamic matrix of type Type
 
typedef Matrix< std::complex< double >, 4, DynamicEigen::Matrix4Xcd
 4×Dynamic matrix of type std::complex<double>.
 
typedef Matrix< std::complex< float >, 4, DynamicEigen::Matrix4Xcf
 4×Dynamic matrix of type std::complex<float>.
 
typedef Matrix< double, 4, DynamicEigen::Matrix4Xd
 4×Dynamic matrix of type double.
 
typedef Matrix< float, 4, DynamicEigen::Matrix4Xf
 4×Dynamic matrix of type float.
 
typedef Matrix< int, 4, DynamicEigen::Matrix4Xi
 4×Dynamic matrix of type int.
 
template<typename Type >
using Eigen::MatrixX = Matrix< Type, Dynamic, Dynamic >
 [c++11] Dynamic×Dynamic matrix of type Type.
 
template<typename Type >
using Eigen::MatrixX2 = Matrix< Type, Dynamic, 2 >
 [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 = Matrix< Type, Dynamic, 3 >
 [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 = Matrix< Type, Dynamic, 4 >
 [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, DynamicEigen::MatrixXcd
 Dynamic×Dynamic matrix of type std::complex<double>.
 
typedef Matrix< std::complex< float >, Dynamic, DynamicEigen::MatrixXcf
 Dynamic×Dynamic matrix of type std::complex<float>.
 
typedef Matrix< double, Dynamic, DynamicEigen::MatrixXd
 Dynamic×Dynamic matrix of type double.
 
typedef Matrix< float, Dynamic, DynamicEigen::MatrixXf
 Dynamic×Dynamic matrix of type float.
 
typedef Matrix< int, Dynamic, DynamicEigen::MatrixXi
 Dynamic×Dynamic matrix of type int.
 
template<typename Type , int Size>
using Eigen::RowVector = Matrix< Type, 1, Size >
 [c++11] 1×Size vector of type Type.
 
template<typename Type >
using Eigen::RowVector2 = Matrix< Type, 1, 2 >
 [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 = Matrix< Type, 1, 3 >
 [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 = Matrix< Type, 1, 4 >
 [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 = Matrix< Type, 1, Dynamic >
 [c++11] 1×Dynamic vector of type Type.
 
typedef Matrix< std::complex< double >, 1, DynamicEigen::RowVectorXcd
 1×Dynamic vector of type std::complex<double>.
 
typedef Matrix< std::complex< float >, 1, DynamicEigen::RowVectorXcf
 1×Dynamic vector of type std::complex<float>.
 
typedef Matrix< double, 1, DynamicEigen::RowVectorXd
 1×Dynamic vector of type double.
 
typedef Matrix< float, 1, DynamicEigen::RowVectorXf
 1×Dynamic vector of type float.
 
typedef Matrix< int, 1, DynamicEigen::RowVectorXi
 1×Dynamic vector of type int.
 
template<typename Type , int Size>
using Eigen::Vector = Matrix< Type, Size, 1 >
 [c++11] Size×1 vector of type Type.
 
template<typename Type >
using Eigen::Vector2 = Matrix< Type, 2, 1 >
 [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 = Matrix< Type, 3, 1 >
 [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 = Matrix< Type, 4, 1 >
 [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 = Matrix< Type, Dynamic, 1 >
 [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.