Brick Library 0.1
Performance-portable stencil datalayout & codegen
multiarray.h
Go to the documentation of this file.
1
6#ifndef MULTIARRAY_H
7#define MULTIARRAY_H
8
9#include <vector>
10#include <brick.h>
11
18bElem *uninitArray(const std::vector<long> &list, long &size);
19
25bElem *randomArray(const std::vector<long> &list);
26
32bElem *zeroArray(const std::vector<long> &list);
33
41bool compareArray(const std::vector<long> &list, bElem *arrA, bElem *arrB);
42
43#endif
Main header for bricks.
bElem * uninitArray(const std::vector< long > &list, long &size)
Create an uninitialized multidimensional array.
Definition: multiarray.cpp:26
bElem * randomArray(const std::vector< long > &list)
Create an multidimensional array initialized with random values.
Definition: multiarray.cpp:33
bool compareArray(const std::vector< long > &list, bElem *arrA, bElem *arrB)
Compare the value in two multidimensional arrays (within tolerance)
Definition: multiarray.cpp:51
bElem * zeroArray(const std::vector< long > &list)
Create an multidimensional array initialized with zeros.
Definition: multiarray.cpp:42
#define bElem
Basic datatype for all brick elements.
Definition: vecscatter.h:13