10#ifndef TLAPACK_TRANSPOSE_HH
11#define TLAPACK_TRANSPOSE_HH
36template <TLAPACK_SMATRIX matrixA_t, TLAPACK_SMATRIX matrixB_t>
42 const idx_t m = nrows(
A);
43 const idx_t n = ncols(
A);
49 if (min(m, n) <= (idx_t)
opts.nx) {
51 for (idx_t i = 0; i < m; ++i)
52 for (idx_t j = 0; j < n; ++j)
57 const idx_t
m1 = m / 2;
58 const idx_t
n1 = n / 2;
91template <TLAPACK_SMATRIX matrixA_t, TLAPACK_SMATRIX matrixB_t>
97 const idx_t m = nrows(
A);
98 const idx_t n = ncols(
A);
104 if (min(m, n) <= (idx_t)
opts.nx) {
106 for (idx_t i = 0; i < m; ++i)
107 for (idx_t j = 0; j < n; ++j)
112 const idx_t
m1 = m / 2;
113 const idx_t
n1 = n / 2;
void transpose(matrixA_t &A, matrixB_t &B, const TransposeOpts &opts={})
transpose a matrix A into a matrix B.
Definition transpose.hpp:92
void conjtranspose(matrixA_t &A, matrixB_t &B, const TransposeOpts &opts={})
conjugate transpose a matrix A into a matrix B.
Definition transpose.hpp:37
#define tlapack_check(cond)
Throw an error if cond is false.
Definition exceptionHandling.hpp:98
Sort the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).
Definition arrayTraits.hpp:15
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113
constexpr T conj(const T &x) noexcept
Extends std::conj() to real datatypes.
Definition utils.hpp:100
Definition transpose.hpp:16