Based on code + help from Alex Stapleton:

*Add Eigen/StdVector header.
Including it #includes<vector> and "Core" and generates a partial
specialization of std::vector<T> for T=Eigen::Matrix<...>
that will work even with vectorizable fixed-size Eigen types
(working around a design issue in the c++ STL)
*Add unit-test

CCMAIL: alex.stapleton@gmail.com
This commit is contained in:
Benoit Jacob
2009-01-09 23:26:45 +00:00
parent 5052d3659b
commit 335d3bcf05
5 changed files with 143 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ template <typename T, int Size, int MatrixOptions,
template <typename T, int Size, int MatrixOptions> struct ei_matrix_array<T,Size,MatrixOptions,false>
{
T array[Size];
ei_matrix_array() {}
ei_matrix_array(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
};
/** \internal