12#ifndef TLAPACK_LANGE_HH
13#define TLAPACK_LANGE_HH
37template <TLAPACK_NORM norm_t, TLAPACK_SMATRIX matrix_t>
45 const idx_t m = nrows(
A);
46 const idx_t n = ncols(
A);
53 if (m == 0 || n == 0)
return real_t(0);
59 for (idx_t j = 0; j < n; ++j) {
60 for (idx_t i = 0; i < m; ++i) {
72 for (idx_t i = 0; i < m; ++i) {
74 for (idx_t j = 0; j < n; ++j)
85 for (idx_t j = 0; j < n; ++j) {
87 for (idx_t i = 0; i < m; ++i)
99 for (idx_t j = 0; j < n; ++j)
constexpr bool isnan(const T &x) noexcept
Extends std::isnan() to complex numbers.
Definition utils.hpp:125
auto lange(norm_t normType, const matrix_t &A)
Calculates the norm of a matrix.
Definition lange.hpp:38
void lassq(const vector_t &x, real_type< type_t< vector_t > > &scale, real_type< type_t< vector_t > > &sumsq, abs_f absF)
Updates a sum of squares represented in scaled form.
Definition lassq.hpp:49
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
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