diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-09 23:26:45 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-09 23:26:45 +0000 |
commit | 335d3bcf054cd0d1328cc12fbc72bb8463aef859 (patch) | |
tree | 8936d0870e24cb849efb37999cd72261bfb0a517 /Eigen/src/Core | |
parent | 5052d3659b797926afb4396329fcb6f050f24572 (diff) |
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
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/MatrixStorage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/MatrixStorage.h b/Eigen/src/Core/MatrixStorage.h index ceee90e1a..a1a10ead5 100644 --- a/Eigen/src/Core/MatrixStorage.h +++ b/Eigen/src/Core/MatrixStorage.h @@ -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 |