12 #ifndef NNLIB_ALLOCATION_H
13 #define NNLIB_ALLOCATION_H
75 void copy1DArray(
size_t n,
float* original,
float* copy);
85 float**
copy2DArray(
size_t n,
size_t m,
float** original);
float * allocate1DArray(size_t n)
Allocate 1D array.
Definition: allocation.cpp:34
float ** allocate2DArray(size_t n, size_t m)
Allocate 2D array.
Definition: allocation.cpp:12
void copy1DFromHostToHost(float *oldLoc, float *newLoc, size_t n)
Copy a 1D array between two locations on host.
Definition: allocation.cpp:70
float * copy1DArray(size_t n, float *original)
Copy 1D array to a new location.
Definition: allocation.cpp:48
float ** copy2DArray(size_t n, size_t m, float **original)
Copy 2D array to a new location.
Definition: allocation.cpp:60