flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
flexiblesusy::Chop< RealScalar > Class Template Reference

function object, whose operator() returns zero if the value it is applied to is smaller than the given threshold More...

#include <functors.hpp>

Collaboration diagram for flexiblesusy::Chop< RealScalar >:
Collaboration graph

Public Member Functions

 Chop ()=default
 
 Chop (RealScalar threshold_)
 
const RealScalar operator() (const RealScalar &x) const noexcept
 

Public Attributes

RealScalar threshold {std::numeric_limits<RealScalar>::epsilon()}
 

Detailed Description

template<typename RealScalar>
class flexiblesusy::Chop< RealScalar >

function object, whose operator() returns zero if the value it is applied to is smaller than the given threshold

Template Parameters
realscalar type

Definition at line 34 of file functors.hpp.

Constructor & Destructor Documentation

◆ Chop() [1/2]

template<typename RealScalar >
flexiblesusy::Chop< RealScalar >::Chop ( )
default

◆ Chop() [2/2]

template<typename RealScalar >
flexiblesusy::Chop< RealScalar >::Chop ( RealScalar  threshold_)
inline

Definition at line 36 of file functors.hpp.

Member Function Documentation

◆ operator()()

template<typename RealScalar >
const RealScalar flexiblesusy::Chop< RealScalar >::operator() ( const RealScalar &  x) const
inlinenoexcept

Definition at line 37 of file functors.hpp.

References flexiblesusy::Chop< RealScalar >::threshold.

Member Data Documentation

◆ threshold

template<typename RealScalar >
RealScalar flexiblesusy::Chop< RealScalar >::threshold {std::numeric_limits<RealScalar>::epsilon()}

Definition at line 40 of file functors.hpp.

Referenced by flexiblesusy::Chop< RealScalar >::operator()().


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