//================================================================================================== /* ROTGEN - Runtime Overlay for Eigen Copyright : CODE RECKONS SPDX-License-Identifier: BSL-1.0 */ //================================================================================================== #include "unit/tests.hpp" #include TTS_CASE_TPL("rowwise API", rotgen::tests::types) ( tts::type< tts::types> ) { using e_t = Eigen::Matrix; e_t ref = e_t::Random(4,4); auto ref_rw = ref.rowwise(); rotgen::matrix mat(4,4); rotgen::tests::prepare([&](auto r, auto c) { return ref(r,c); }, mat); auto rw = rotgen::rowwise(mat); for(rotgen::Index i=0;i( tts::type< tts::types> ) { using e_t = Eigen::Matrix; e_t ref = e_t::Random(4,4); auto ref_rw = ref.colwise(); rotgen::matrix mat(4,4); rotgen::tests::prepare([&](auto r, auto c) { return ref(r,c); }, mat); auto rw = rotgen::colwise(mat); for(rotgen::Index i=0;i