aboutsummaryrefslogtreecommitdiffhomepage
path: root/tvmet-1.7.1/include
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-06-08 05:57:47 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-06-08 05:57:47 +0000
commit9dd7a0b60271b20bf7e3ed72eecda0af7924b621 (patch)
treed66ac5e15896785e04226957d7d56bded7f30d85 /tvmet-1.7.1/include
parent9939776cdb15a166a63d53b16d255a58487b5ecc (diff)
add eigen-style typedefs
Diffstat (limited to 'tvmet-1.7.1/include')
-rw-r--r--tvmet-1.7.1/include/tvmet/CMakeLists.txt3
-rw-r--r--tvmet-1.7.1/include/tvmet/Matrix.h9
-rw-r--r--tvmet-1.7.1/include/tvmet/Vector.h9
3 files changed, 19 insertions, 2 deletions
diff --git a/tvmet-1.7.1/include/tvmet/CMakeLists.txt b/tvmet-1.7.1/include/tvmet/CMakeLists.txt
index 909379d57..14778920c 100644
--- a/tvmet-1.7.1/include/tvmet/CMakeLists.txt
+++ b/tvmet-1.7.1/include/tvmet/CMakeLists.txt
@@ -41,5 +41,4 @@ INSTALL(FILES
ADD_SUBDIRECTORY(loop)
ADD_SUBDIRECTORY(meta)
ADD_SUBDIRECTORY(xpr)
-ADD_SUBDIRECTORY(util)
-# don't install the util/ subdirectory as it's only used for examples and tests \ No newline at end of file
+ADD_SUBDIRECTORY(util) \ No newline at end of file
diff --git a/tvmet-1.7.1/include/tvmet/Matrix.h b/tvmet-1.7.1/include/tvmet/Matrix.h
index dfc18d623..73e3d1a8c 100644
--- a/tvmet-1.7.1/include/tvmet/Matrix.h
+++ b/tvmet-1.7.1/include/tvmet/Matrix.h
@@ -429,6 +429,15 @@ private:
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
diff --git a/tvmet-1.7.1/include/tvmet/Vector.h b/tvmet-1.7.1/include/tvmet/Vector.h
index 6409fab96..285dfaba2 100644
--- a/tvmet-1.7.1/include/tvmet/Vector.h
+++ b/tvmet-1.7.1/include/tvmet/Vector.h
@@ -489,6 +489,15 @@ private:
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