Lines Matching refs:rows
53 std_trans(mpd_uint_t dest[], mpd_uint_t src[], mpd_size_t rows, mpd_size_t cols)
58 for (r = 0; r < rows; r++) {
64 idest += rows;
70 * Swap half-rows of 2^n * (2*2^n) matrix.
75 swap_halfrows_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols, int dir)
88 assert(cols == mul_size_t(2, rows));
91 r = rows;
101 hmax = rows; /* cycles start at odd halfrows */
247 transpose_pow2(mpd_uint_t *matrix, mpd_size_t rows, mpd_size_t cols)
249 mpd_size_t size = mul_size_t(rows, cols);
251 assert(ispower2(rows));
254 if (cols == rows) {
255 squaretrans_pow2(matrix, rows);
257 else if (cols == mul_size_t(2, rows)) {
258 if (!swap_halfrows_pow2(matrix, rows, cols, FORWARD_CYCLE)) {
261 squaretrans_pow2(matrix, rows);
262 squaretrans_pow2(matrix+(size/2), rows);
264 else if (rows == mul_size_t(2, cols)) {
267 if (!swap_halfrows_pow2(matrix, cols, rows, BACKWARD_CYCLE)) {