diff --git a/defm.hpp b/defm.hpp index 4cccfe3c7..8b68749ee 100644 --- a/defm.hpp +++ b/defm.hpp @@ -1303,6 +1303,8 @@ class DEFM : public DEFMModel { std::vector< bool > is_motif(); + bool get_column_major() const noexcept; + }; #endif @@ -1438,7 +1440,7 @@ inline DEFM::DEFM( size_t m_order, bool copy_data, bool column_major -) { +) : column_major(column_major) { // Pointers if (copy_data) @@ -1772,6 +1774,11 @@ inline std::vector< bool > DEFM::is_motif() return res; } +inline bool DEFM::get_column_major() const noexcept +{ + return column_major; +} + #undef DEFM_RANGES #undef DEFM_LOOP_ARRAYS diff --git a/include/barry/models/defm/defm-bones.hpp b/include/barry/models/defm/defm-bones.hpp index 27197d60e..5fb8b98a5 100644 --- a/include/barry/models/defm/defm-bones.hpp +++ b/include/barry/models/defm/defm-bones.hpp @@ -87,6 +87,8 @@ class DEFM : public DEFMModel { std::vector< bool > is_motif(); + bool get_column_major() const noexcept; + }; #endif diff --git a/include/barry/models/defm/defm-meat.hpp b/include/barry/models/defm/defm-meat.hpp index ba7635e2e..0a5c7549a 100644 --- a/include/barry/models/defm/defm-meat.hpp +++ b/include/barry/models/defm/defm-meat.hpp @@ -111,7 +111,7 @@ inline DEFM::DEFM( size_t m_order, bool copy_data, bool column_major -) { +) : column_major(column_major) { // Pointers if (copy_data) @@ -445,6 +445,11 @@ inline std::vector< bool > DEFM::is_motif() return res; } +inline bool DEFM::get_column_major() const noexcept +{ + return column_major; +} + #undef DEFM_RANGES #undef DEFM_LOOP_ARRAYS