Implements block typs and related functions - First part
Co-authored-by: Karen <kkaspar@codereckons.com> Co-authored-by: Joel FALCOU <jfalcou@codereckons.com> See merge request oss/rotgen!9
This commit is contained in:
parent
09be3b4b15
commit
c6b864f247
28 changed files with 1814 additions and 114 deletions
|
|
@ -28,4 +28,22 @@ namespace rotgen::tests
|
|||
std::size_t rows, cols;
|
||||
std::function<double(std::size_t,std::size_t)> init_fn;
|
||||
};
|
||||
|
||||
template<typename MatrixType>
|
||||
struct matrix_block_test_case
|
||||
{
|
||||
std::size_t rows, cols;
|
||||
std::function<typename MatrixType::scalar_type(std::size_t, std::size_t)> init_fn;
|
||||
std::size_t i0, j0, ni, nj;
|
||||
};
|
||||
|
||||
template<typename MatrixType, std::size_t NI, std::size_t NJ>
|
||||
struct static_matrix_block_test_case
|
||||
{
|
||||
std::size_t rows, cols;
|
||||
std::function<typename MatrixType::scalar_type(std::size_t, std::size_t)> init_fn;
|
||||
static constexpr std::size_t ni = NI;
|
||||
static constexpr std::size_t nj = NJ;
|
||||
std::size_t i0, j0;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue