11#ifndef TLAPACK_BLAS_SYMM_HH
12#define TLAPACK_BLAS_SYMM_HH
75 const idx_t m = nrows(
B);
76 const idx_t n = ncols(
B);
90 for (idx_t j = 0; j < n; ++j) {
91 for (idx_t i = 0; i < m; ++i) {
96 for (idx_t
k = 0;
k < i; ++
k) {
107 for (idx_t j = 0; j < n; ++j) {
108 for (idx_t i = m - 1; i != idx_t(-1); --i) {
113 for (idx_t
k = i + 1;
k < m; ++
k) {
129 for (idx_t j = 0; j < n; ++j) {
132 for (idx_t i = 0; i < m; ++i)
136 for (idx_t
k = 0;
k < j; ++
k) {
138 for (idx_t i = 0; i < m; ++i)
142 for (idx_t
k = j + 1;
k < n; ++
k) {
144 for (idx_t i = 0; i < m; ++i)
151 for (idx_t j = 0; j < n; ++j) {
154 for (idx_t i = 0; i < m; ++i)
158 for (idx_t
k = 0;
k < j; ++
k) {
160 for (idx_t i = 0; i < m; ++i)
164 for (idx_t
k = j + 1;
k < n; ++
k) {
166 for (idx_t i = 0; i < m; ++i)
174#ifdef TLAPACK_USE_LAPACKPP
209 auto A_ = legacy_matrix(
A);
210 auto B_ = legacy_matrix(
B);
211 auto C_ = legacy_matrix(
C);
215 const auto& m =
C_.m;
216 const auto& n =
C_.n;
221 -3,
"Infs and NaNs in A or B will not propagate to C on output");
225 "Infs and NaNs in C on input will not propagate to C on output");
227 return ::blas::symm((::blas::Layout)L, (::blas::Side)
side,
#define TLAPACK_SCALAR
Macro for tlapack::concepts::Scalar compatible with C++17.
Definition concepts.hpp:915
#define TLAPACK_LEGACY_MATRIX
Macro for tlapack::concepts::LegacyMatrix compatible with C++17.
Definition concepts.hpp:951
#define TLAPACK_MATRIX
Macro for tlapack::concepts::Matrix compatible with C++17.
Definition concepts.hpp:896
void symm(Side side, Uplo uplo, const alpha_t &alpha, const matrixA_t &A, const matrixB_t &B, const beta_t &beta, matrixC_t &C)
Symmetric matrix-matrix multiply:
Definition symm.hpp:61
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
#define tlapack_warning(info, detailedInfo)
Warning handler.
Definition exceptionHandling.hpp:156
Concept for types that represent tlapack::Side.
Concept for types that represent tlapack::Uplo.
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
Side
Definition types.hpp:271
Uplo
Definition types.hpp:50
@ General
0 <= i <= m, 0 <= j <= n.
@ Upper
0 <= i <= j, 0 <= j <= n.
@ Lower
0 <= i <= m, 0 <= j <= i.
Layout
Definition types.hpp:29
Strong zero type.
Definition StrongZero.hpp:43