|
<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Concept for real scalar types. More...
#include <concepts.hpp>
Concept for real scalar types.
A real type is an ordered type that supports arithmetic operations. Moreover,
=.abs(), sqrt(), pow(int,), log2(), ceil(), and floor(). Those functions must be callable from the namespace tlapack.isinf() and isnan(), which must be callable from the namespace tlapack.min(T,T) and max(T,T) to decide the minimum and maximum in a pair of values.std::numeric_limits<>.| T | Type. |
min() and max() may not propagate NaNs. The implementation in the C++ standard library says nothing about NaN propagation in std::min() and std::max() and we follow the same rule. The C++ documentation shows possible implementations that do not propagate NaNs. See: https://en.cppreference.com/w/cpp/algorithm/max and https://en.cppreference.com/w/cpp/algorithm/min.