<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
tlapack::IamaxOpts< abs_f > Struct Template Reference

Options for iamax. More...

#include <iamax.hpp>

Inheritance diagram for tlapack::IamaxOpts< abs_f >:
Collaboration diagram for tlapack::IamaxOpts< abs_f >:

Public Member Functions

constexpr IamaxOpts (abs_f absf, const EcOpts &opts={})
 
- Public Member Functions inherited from tlapack::EcOpts
constexpr EcOpts (const ErrorCheck &ec_={})
 

Public Attributes

abs_f absf
 Absolute value function In reference BLAS, absf(a) := |Re(a)| + |Im(a)|.
 
- Public Attributes inherited from tlapack::EcOpts
ErrorCheck ec = {}
 

Detailed Description

template<class abs_f>
struct tlapack::IamaxOpts< abs_f >

Options for iamax.

Initialize using a lambda function (C++17 or higher):

IamaxOpts opts( [](const T& x) { return my_abs(x); } );
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
Options for iamax.
Definition iamax.hpp:37

or using a functor:

struct abs_f {
constexpr real_type<T> operator()(const T& x) const {
return my_abs(x);
}
};
abs_f absf;
IamaxOpts<abs_f> opts( absf );
abs_f absf
Absolute value function In reference BLAS, absf(a) := |Re(a)| + |Im(a)|.
Definition iamax.hpp:41

The documentation for this struct was generated from the following file: