XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
UniformRange Struct Reference

#include <uniform_range.hpp>

Public Member Functions

 UniformRange ()
 
 UniformRange (int n, double val_min, double val_max)
 
KOKKOS_INLINE_FUNCTION double get_val (int i) const
 
KOKKOS_INLINE_FUNCTION bool is_in_bounds (double val) const
 
KOKKOS_INLINE_FUNCTION int get_index (double val) const
 
template<class Device >
View< double *, CLayout, Device > generate_view (const std::string &name) const
 

Public Attributes

int n
 
double val_min
 
double val_max
 
double dval
 

Constructor & Destructor Documentation

UniformRange::UniformRange ( )
inline
UniformRange::UniformRange ( int  n,
double  val_min,
double  val_max 
)
inline

Member Function Documentation

template<class Device >
View<double*,CLayout,Device> UniformRange::generate_view ( const std::string &  name) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION int UniformRange::get_index ( double  val) const
inline

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION double UniformRange::get_val ( int  i) const
inline

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION bool UniformRange::is_in_bounds ( double  val) const
inline

Here is the caller graph for this function:

Member Data Documentation

double UniformRange::dval
int UniformRange::n
double UniformRange::val_max
double UniformRange::val_min

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