ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <memory_op.h>
Public Member Functions | |
void | operator() (FPTYPE *&arr, const size_t size, const char *record_in=nullptr) |
Allocate memory for a given pointer. Note this op will free the pointer first. | |
void base_device::memory::resize_memory_op< FPTYPE, Device >::operator() | ( | FPTYPE *& | arr, |
const size_t | size, | ||
const char * | record_in = nullptr |
||
) |
Allocate memory for a given pointer. Note this op will free the pointer first.
Input Parameters
size | : array size |
record_string | : label for memory record |
Output Parameters
arr | : allocated array |