#include <algorithm>
#include <cstddef>
|
| namespace | mtl |
| namespace | mtl::detail |
| | mat*vec multiply into pre-allocated y: y = A * x.
|
|
| template<typename T> |
| void | mtl::detail::transpose_copy (const T *in, std::size_t rows, std::size_t cols, T *out) |
| | out[c * rows + r] = in[r * cols + c] for every r < rows, c < cols: copies the row-major rows x cols array in into out as the column-major one, which is the same as writing in^T row-major.
|
|
| constexpr std::size_t | mtl::detail::transpose_tile = 32 |
| | Tile edge of transpose_copy, chosen by measurement on an Apple M2 and an x86-64 host (issue 1040): 32 beat 8, 16 and 64 for float and double.
|