ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
base_device::memory::resize_memory_op< FPTYPE, Device > Struct Template Reference

#include <memory_op.h>

Collaboration diagram for base_device::memory::resize_memory_op< FPTYPE, Device >:

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.

Member Function Documentation

◆ operator()()

template<typename FPTYPE, typename Device>
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

Parameters
size: array size
record_string: label for memory record

Output Parameters

Parameters
arr: allocated array

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