Skip to content

Function matrix_transpose

function matrix_transpose(T *, const T *, shape<Dims>) base

template <typename T, index_t Dims>
void matrix_transpose(T* out, const T* in, shape<Dims> shape)

Transposes a matrix (supports scalar and compound types).

Works with both scalar types (e.g., float, int) and compound types (e.g., vec, complex). The input matrix must be packed in memory (no padding between rows or columns). In-place transpose (when in and out point to the same buffer) is supported.For more than two dimensions, all axes are reversed (equivalent to reversing the dimension order). A one-dimensional shape is a no-op (plain copy if buffers differ).

Template parameters
T Element type (scalar or compound).
Dims Number of dimensions (1 or greater).
Parameters
out Output buffer (transposed matrix).
in Input buffer (original matrix).
shape Shape of the input matrix.

Fully qualified name: kfr::matrix_transpose(T *, const T *, shape<Dims>)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.