Resolve "[API-#2] Pseudo-privatization of rotgen entity member functions"
Closes #18 Co-authored-by: Jules Pénuchot <jules@penuchot.com> See merge request oss/rotgen!50
This commit is contained in:
parent
6489697c05
commit
e151e136d6
52 changed files with 2212 additions and 1556 deletions
|
|
@ -25,10 +25,10 @@ namespace rotgen::tests
|
|||
|
||||
TTS_WHEN("Unary Cwise operations")
|
||||
{
|
||||
eigen_mat_t eigen_ref(rotgen_input.rows(), rotgen_input.cols());
|
||||
eigen_mat_t eigen_ref(rows(rotgen_input), cols(rotgen_input));
|
||||
prepare([&](auto r, auto c) { return rotgen_input(r, c); }, eigen_ref);
|
||||
|
||||
rotgen_mat_t rotgen_ref(rotgen_input.rows(), rotgen_input.cols());
|
||||
rotgen_mat_t rotgen_ref(rows(rotgen_input), cols(rotgen_input));
|
||||
|
||||
TTS_AND_THEN("abs()")
|
||||
{
|
||||
|
|
@ -57,8 +57,8 @@ namespace rotgen::tests
|
|||
auto mat = rotgen::abs(rotgen_input);
|
||||
auto proper_input = rotgen::sqrt(mat);
|
||||
|
||||
for (rotgen::Index r = 0; r < rotgen_input.rows(); ++r)
|
||||
for (rotgen::Index c = 0; c < rotgen_input.cols(); ++c)
|
||||
for (rotgen::Index r = 0; r < rows(rotgen_input); ++r)
|
||||
for (rotgen::Index c = 0; c < cols(rotgen_input); ++c)
|
||||
TTS_ULP_EQUAL(proper_input(r, c), eigen_ref(r, c), 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue