ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A functor to set memory to a constant value. More...
#include <memory.h>
Public Member Functions | |
void | operator() (T *arr, const T &var, const size_t &size) |
Set memory to a constant value. | |
A functor to set memory to a constant value.
T | Floating-point type of the memory. |
Device | Device type where the memory is allocated. |
void container::kernels::set_memory< T, Device >::operator() | ( | T * | arr, |
const T & | var, | ||
const size_t & | size | ||
) |
Set memory to a constant value.
arr | Pointer to the memory. |
var | Constant value to set. |
size | Size of the memory to set. |