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
|
|
@ -21,7 +21,7 @@ namespace rotgen::tests
|
|||
using eigen_mat_t =
|
||||
matrix<typename T::value_type, Dynamic, Dynamic, T::storage_order>;
|
||||
|
||||
eigen_mat_t eigen_result(rotgen_input.cols(), rotgen_input.rows());
|
||||
eigen_mat_t eigen_result(cols(rotgen_input), rows(rotgen_input));
|
||||
prepare([&](auto r, auto c) { return rotgen_input(c, r); }, eigen_result);
|
||||
|
||||
TTS_EQUAL(transpose(rotgen_input), eigen_result);
|
||||
|
|
@ -42,7 +42,7 @@ namespace rotgen::tests
|
|||
}
|
||||
else
|
||||
{
|
||||
if (rotgen_input.rows() == rotgen_input.cols())
|
||||
if (rows(rotgen_input) == cols(rotgen_input))
|
||||
{
|
||||
eigen_mat_t eigen_ref = rotgen_input;
|
||||
transposeInPlace(rotgen_input);
|
||||
|
|
@ -66,7 +66,7 @@ namespace rotgen::tests
|
|||
using eigen_mat_t =
|
||||
Eigen::Matrix<typename T::value_type, Eigen::Dynamic, Eigen::Dynamic>;
|
||||
|
||||
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);
|
||||
|
||||
TTS_ULP_EQUAL(sum(rotgen_input), eigen_ref.sum(), 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue