ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
algo_rescale Struct Reference

Rescale values in a device vector by some constant. More...

Public Member Functions

 algo_rescale (double scale_factor)
 
__host__ __device__ constexpr double operator() (double const &x) const
 
 algo_rescale (float scale_factor)
 
__host__ __device__ constexpr float operator() (float const &x) const
 

Public Attributes

double m_scale_factor
 
float m_scale_factor
 

Detailed Description

Rescale values in a device vector by some constant.

Definition at line 89 of file FieldAccessorsDoublePrecisionCUDA.cu.

Constructor & Destructor Documentation

◆ algo_rescale() [1/2]

algo_rescale::algo_rescale ( double  scale_factor)
inline

Definition at line 91 of file FieldAccessorsDoublePrecisionCUDA.cu.

◆ algo_rescale() [2/2]

algo_rescale::algo_rescale ( float  scale_factor)
inline

Definition at line 91 of file FieldAccessorsSinglePrecisionCUDA.cu.

Member Function Documentation

◆ operator()() [1/2]

__host__ __device__ constexpr double algo_rescale::operator() ( double const x) const
inlineconstexpr

Definition at line 93 of file FieldAccessorsDoublePrecisionCUDA.cu.

References m_scale_factor.

◆ operator()() [2/2]

__host__ __device__ constexpr float algo_rescale::operator() ( float const x) const
inlineconstexpr

Definition at line 93 of file FieldAccessorsSinglePrecisionCUDA.cu.

References m_scale_factor.

Member Data Documentation

◆ m_scale_factor [1/2]

double algo_rescale::m_scale_factor

Definition at line 90 of file FieldAccessorsDoublePrecisionCUDA.cu.

Referenced by operator()(), and operator()().

◆ m_scale_factor [2/2]

float algo_rescale::m_scale_factor

Definition at line 90 of file FieldAccessorsSinglePrecisionCUDA.cu.


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