12#ifndef TLAPACK_LEGACY_LANGE_HH
13#define TLAPACK_LEGACY_LANGE_HH
41 template <
class norm_t,
typename TA>
45 using internal::create_matrix;
52 if (m == 0 || n == 0)
return 0;
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
real_type< TA > lange(norm_t normType, idx_t m, idx_t n, const TA *A, idx_t lda)
Calculates the value of the one norm, Frobenius norm, infinity norm, or element of largest absolute v...
Definition lange.hpp:42
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
@ Inf
infinity norm of matrices
@ Fro
Frobenius norm of matrices.