mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
oops, fix compilation (sorry for all that noise!)
This commit is contained in:
parent
5bef59e371
commit
5052d3659b
@ -134,7 +134,7 @@ class Matrix
|
||||
protected:
|
||||
ei_matrix_storage<Scalar, MaxSizeAtCompileTime, RowsAtCompileTime, ColsAtCompileTime, Options> m_storage;
|
||||
Matrix(ei_select_matrix_constructor_doing_absolutely_nothing) // this ctor does not even do an assertion
|
||||
: m_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing) {}
|
||||
: m_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing()) {}
|
||||
|
||||
public:
|
||||
enum { NeedsToAlign = (Options&AutoAlign) == AutoAlign
|
||||
|
@ -74,7 +74,7 @@ template<typename T, int Size, int _Rows, int _Cols, int _Options> class ei_matr
|
||||
public:
|
||||
inline explicit ei_matrix_storage() {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int,int,int) {}
|
||||
inline void swap(ei_matrix_storage& other) { std::swap(m_data,other.m_data); }
|
||||
inline static int rows(void) {return _Rows;}
|
||||
@ -93,7 +93,7 @@ template<typename T, int Size, int _Options> class ei_matrix_storage<T, Size, Dy
|
||||
public:
|
||||
inline explicit ei_matrix_storage() : m_rows(0), m_cols(0) {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int, int rows, int cols) : m_rows(rows), m_cols(cols) {}
|
||||
inline ~ei_matrix_storage() {}
|
||||
inline void swap(ei_matrix_storage& other)
|
||||
@ -117,7 +117,7 @@ template<typename T, int Size, int _Cols, int _Options> class ei_matrix_storage<
|
||||
public:
|
||||
inline explicit ei_matrix_storage() : m_rows(0) {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int, int rows, int) : m_rows(rows) {}
|
||||
inline ~ei_matrix_storage() {}
|
||||
inline void swap(ei_matrix_storage& other) { std::swap(m_data,other.m_data); std::swap(m_rows,other.m_rows); }
|
||||
@ -139,7 +139,7 @@ template<typename T, int Size, int _Rows, int _Options> class ei_matrix_storage<
|
||||
public:
|
||||
inline explicit ei_matrix_storage() : m_cols(0) {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int, int, int cols) : m_cols(cols) {}
|
||||
inline ~ei_matrix_storage() {}
|
||||
inline void swap(ei_matrix_storage& other) { std::swap(m_data,other.m_data); std::swap(m_cols,other.m_cols); }
|
||||
@ -162,7 +162,7 @@ template<typename T, int _Options> class ei_matrix_storage<T, Dynamic, Dynamic,
|
||||
public:
|
||||
inline explicit ei_matrix_storage() : m_data(0), m_rows(0), m_cols(0) {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int size, int rows, int cols)
|
||||
: m_data(ei_aligned_new<T>(size)), m_rows(rows), m_cols(cols) {}
|
||||
inline ~ei_matrix_storage() { ei_aligned_delete(m_data, m_rows*m_cols); }
|
||||
@ -192,7 +192,7 @@ template<typename T, int _Rows, int _Options> class ei_matrix_storage<T, Dynamic
|
||||
public:
|
||||
inline explicit ei_matrix_storage() : m_data(0), m_cols(0) {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int size, int, int cols) : m_data(ei_aligned_new<T>(size)), m_cols(cols) {}
|
||||
inline ~ei_matrix_storage() { ei_aligned_delete(m_data, _Rows*m_cols); }
|
||||
inline void swap(ei_matrix_storage& other) { std::swap(m_data,other.m_data); std::swap(m_cols,other.m_cols); }
|
||||
@ -219,7 +219,7 @@ template<typename T, int _Cols, int _Options> class ei_matrix_storage<T, Dynamic
|
||||
public:
|
||||
inline explicit ei_matrix_storage() : m_data(0), m_rows(0) {}
|
||||
inline ei_matrix_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing)
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing) {}
|
||||
: m_data(ei_select_matrix_array_constructor_doing_absolutely_nothing()) {}
|
||||
inline ei_matrix_storage(int size, int rows, int) : m_data(ei_aligned_new<T>(size)), m_rows(rows) {}
|
||||
inline ~ei_matrix_storage() { ei_aligned_delete(m_data, _Cols*m_rows); }
|
||||
inline void swap(ei_matrix_storage& other) { std::swap(m_data,other.m_data); std::swap(m_rows,other.m_rows); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user