10#ifndef TLAPACK_INFNORM_COLMAJOR_HH
11#define TLAPACK_INFNORM_COLMAJOR_HH
25template <
class T, TLAPACK_MATRIX matrix_t>
39template <TLAPACK_MATRIX matrix_t, TLAPACK_WORKSPACE work_t>
48 const idx_t m = nrows(
A);
49 const idx_t n = ncols(
A);
52 if (m == 0 || n == 0)
return real_t(0);
60 for (idx_t i = 0; i < m; ++i)
63 for (idx_t j = 1; j < n; ++j)
64 for (idx_t i = 0; i < m; ++i)
67 for (idx_t i = 0; i < m; ++i) {
91template <TLAPACK_MATRIX matrix_t>
99 const idx_t m = nrows(
A);
100 const idx_t n = ncols(
A);
103 if (m == 0 || n == 0)
return real_t(0);
107 std::vector<T>
work_;
constexpr bool isnan(const T &x) noexcept
Extends std::isnan() to complex numbers.
Definition utils.hpp:125
auto infnorm_colmajor(const matrix_t &A)
Calculates the infinity norm of a column-major matrix.
Definition infnorm_colmajor.hpp:92
auto infnorm_colmajor_work(const matrix_t &A, work_t &work)
Calculates the infinity norm of a column-major matrix. Workspace is provided as an argument.
Definition infnorm_colmajor.hpp:40
constexpr WorkInfo infnorm_colmajor_worksize(const matrix_t &A)
Worspace query of infnorm_colmajor()
Definition infnorm_colmajor.hpp:26
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
Output information in the workspace query.
Definition workspace.hpp:16