MADNESS 0.10.1
Public Member Functions | Private Attributes | Friends | List of all members
madness::KernelRange::Restrictor Struct Reference

restrictor function More...

#include <kernelrange.h>

Public Member Functions

 Restrictor ()=default
 
 Restrictor (Type type)
 
 Restrictor (Type type, double sigma)
 
hashT hash () const
 
double sigma () const
 
double sigma_inverse () const
 
Type type () const
 
double value (double x) const
 

Private Attributes

std::optional< std::pair< double, double > > sigma_w_inverse_
 
Type type_ = Hard
 

Friends

bool operator== (const Restrictor &r1, const Restrictor &r2)
 

Detailed Description

restrictor function

Constructor & Destructor Documentation

◆ Restrictor() [1/3]

madness::KernelRange::Restrictor::Restrictor ( )
default

◆ Restrictor() [2/3]

madness::KernelRange::Restrictor::Restrictor ( Type  type)
inline

◆ Restrictor() [3/3]

madness::KernelRange::Restrictor::Restrictor ( Type  type,
double  sigma 
)
inline

Member Function Documentation

◆ hash()

hashT madness::KernelRange::Restrictor::hash ( ) const
inline

◆ sigma()

double madness::KernelRange::Restrictor::sigma ( ) const
inline

◆ sigma_inverse()

double madness::KernelRange::Restrictor::sigma_inverse ( ) const
inline

References MADNESS_ASSERT, and sigma_w_inverse_.

Referenced by value().

◆ type()

Type madness::KernelRange::Restrictor::type ( ) const
inline

◆ value()

double madness::KernelRange::Restrictor::value ( double  x) const
inline

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const Restrictor r1,
const Restrictor r2 
)
friend
Returns
true if r1 and r2 are equal

Member Data Documentation

◆ sigma_w_inverse_

std::optional<std::pair<double,double> > madness::KernelRange::Restrictor::sigma_w_inverse_
private

Referenced by Restrictor(), sigma(), and sigma_inverse().

◆ type_

Type madness::KernelRange::Restrictor::type_ = Hard
private

Referenced by hash(), type(), and value().


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