11 static_cast<void>(conjugate);
16inline std::complex<T>
maybe_conj(
const std::complex<T>& value,
bool conjugate) {
17 return conjugate ? std::conj(value) : value;
29 const int source_row =
transpose ? col : row;
30 const int source_col =
transpose ? row : col;
31 return maybe_conj(ptr[batch_offset + source_col * ld + source_row], conjugate);
34template <
typename T, Transpose Op>
36 static T
load(
const T* ptr,
int ld,
int batch_offset,
int row,
int col) {
Transpose
The operator op() applied to an operand: op(A) = A, A^T or A^H.
@ ConjTrans
op(A) = A^H (the same as Trans for real scalars).
T maybe_conj(const T &value, bool conjugate)
T operand_value(const T *ptr, int ld, int batch_offset, int row, int col, Transpose trans)
static T load(const T *ptr, int ld, int batch_offset, int row, int col)