mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-18 12:23:13 +08:00
add eigen-style typedefs
This commit is contained in:
parent
9939776cdb
commit
9dd7a0b602
@ -41,5 +41,4 @@ INSTALL(FILES
|
|||||||
ADD_SUBDIRECTORY(loop)
|
ADD_SUBDIRECTORY(loop)
|
||||||
ADD_SUBDIRECTORY(meta)
|
ADD_SUBDIRECTORY(meta)
|
||||||
ADD_SUBDIRECTORY(xpr)
|
ADD_SUBDIRECTORY(xpr)
|
||||||
ADD_SUBDIRECTORY(util)
|
ADD_SUBDIRECTORY(util)
|
||||||
# don't install the util/ subdirectory as it's only used for examples and tests
|
|
@ -429,6 +429,15 @@ private:
|
|||||||
value_type m_data[Size];
|
value_type m_data[Size];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef Matrix<int, 2, 2> Matrix2i;
|
||||||
|
typedef Matrix<int, 3, 3> Matrix3i;
|
||||||
|
typedef Matrix<int, 4, 4> Matrix4i;
|
||||||
|
typedef Matrix<float, 2, 2> Matrix2f;
|
||||||
|
typedef Matrix<float, 3, 3> Matrix3f;
|
||||||
|
typedef Matrix<float, 4, 4> Matrix4f;
|
||||||
|
typedef Matrix<double, 2, 2> Matrix2d;
|
||||||
|
typedef Matrix<double, 3, 3> Matrix3d;
|
||||||
|
typedef Matrix<double, 4, 4> Matrix4d;
|
||||||
|
|
||||||
} // namespace tvmet
|
} // namespace tvmet
|
||||||
|
|
||||||
|
@ -489,6 +489,15 @@ private:
|
|||||||
value_type m_data[Size];
|
value_type m_data[Size];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef Vector<int, 2> Vector2i;
|
||||||
|
typedef Vector<int, 3> Vector3i;
|
||||||
|
typedef Vector<int, 4> Vector4i;
|
||||||
|
typedef Vector<float, 2> Vector2f;
|
||||||
|
typedef Vector<float, 3> Vector3f;
|
||||||
|
typedef Vector<float, 4> Vector4f;
|
||||||
|
typedef Vector<double, 2> Vector2d;
|
||||||
|
typedef Vector<double, 3> Vector3d;
|
||||||
|
typedef Vector<double, 4> Vector4d;
|
||||||
|
|
||||||
} // namespace tvmet
|
} // namespace tvmet
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user