Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class FieldType,
- class = std::enable_if_t<
- arma::is_Col<typename FieldType::object_type>::value ||
- arma::is_Mat_only<typename FieldType::object_type>::value>>
- // Check the values of two field types
- inline void CheckFields(const FieldType& a,
- const FieldType& b)
- {
- BOOST_REQUIRE_EQUAL(a.n_rows, b.n_rows);
- BOOST_REQUIRE_EQUAL(a.n_cols, b.n_cols);
- for (size_t i = 0; i < a.n_elem; ++i)
- for(size_t j = 0; j < a[i].n_elem; ++j)
- BOOST_REQUIRE_EQUAL(a[i][j], b[i][j]);
- }
Add Comment
Please, Sign In to add comment