add eigen-style typedefs

This commit is contained in:
Benoit Jacob 2007-06-08 05:57:47 +00:00
parent 9939776cdb
commit 9dd7a0b602
3 changed files with 19 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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