Skip to content

Commit

Permalink
Counts works
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 19, 2023
1 parent dd48fa3 commit cad3e93
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion defm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,8 @@ class DEFM : public DEFMModel {

std::vector< bool > is_motif();

bool get_column_major() const noexcept;

};

#endif
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions include/barry/models/defm/defm-bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class DEFM : public DEFMModel {

std::vector< bool > is_motif();

bool get_column_major() const noexcept;

};

#endif
Expand Down
7 changes: 6 additions & 1 deletion include/barry/models/defm/defm-meat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit cad3e93

Please sign in to comment.