NanoMagMC  v0.2
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials
Functions
array_alloc.hpp File Reference

Go to the source code of this file.

Functions

template<class T >
T * alloc_1darr (int size_m)
 
template<class T >
T ** alloc_2darr (int size_m, int size_n, bool contig=true)
 
template<class T >
T *** alloc_3darr (int size_m, int size_n, int size_p, bool contig=true)
 
template<class T >
void dealloc_1darr (T *arr)
 
template<class T >
void dealloc_2darr (int size_m, T **arr, bool contig=true)
 
template<class T >
void dealloc_3darr (int size_m, int size_n, T ***arr, bool contig=true)
 
template<class T >
T * deep_copy_1darr (int size_m, T *arr)
 
template<class T >
T ** deep_copy_2darr (int size_m, int size_n, T **arr, bool contig=true)
 
template<class T >
T *** deep_copy_3darr (int size_m, int size_n, int size_p, T ***arr, bool contig=true)
 

Function Documentation

template<class T >
T* alloc_1darr ( int  size_m)
template<class T >
T** alloc_2darr ( int  size_m,
int  size_n,
bool  contig = true 
)
template<class T >
T*** alloc_3darr ( int  size_m,
int  size_n,
int  size_p,
bool  contig = true 
)
template<class T >
void dealloc_1darr ( T *  arr)
template<class T >
void dealloc_2darr ( int  size_m,
T **  arr,
bool  contig = true 
)
template<class T >
void dealloc_3darr ( int  size_m,
int  size_n,
T ***  arr,
bool  contig = true 
)
template<class T >
T* deep_copy_1darr ( int  size_m,
T *  arr 
)
template<class T >
T** deep_copy_2darr ( int  size_m,
int  size_n,
T **  arr,
bool  contig = true 
)
template<class T >
T*** deep_copy_3darr ( int  size_m,
int  size_n,
int  size_p,
T ***  arr,
bool  contig = true 
)