Brick Library 0.1
Performance-portable stencil datalayout & codegen
|
Functions | |
bElem * | uninitArray (const std::vector< long > &list, long &size) |
Create an uninitialized multidimensional array. | |
bElem * | randomArray (const std::vector< long > &list) |
Create an multidimensional array initialized with random values. | |
bElem * | zeroArray (const std::vector< long > &list) |
Create an multidimensional array initialized with zeros. | |
bool | compareArray (const std::vector< long > &list, bElem *arrA, bElem *arrB) |
Compare the value in two multidimensional arrays (within tolerance) | |
Compare the value in two multidimensional arrays (within tolerance)
[in] | list | dimensions |
arrA | ||
arrB |
bElem * randomArray | ( | const std::vector< long > & | list | ) |
Create an multidimensional array initialized with random values.
[in] | list | dimensions |
bElem * uninitArray | ( | const std::vector< long > & | list, |
long & | size | ||
) |
Create an uninitialized multidimensional array.
[in] | list | dimensions |
[out] | size | the total size of the array in number of bElem |
bElem * zeroArray | ( | const std::vector< long > & | list | ) |
Create an multidimensional array initialized with zeros.
[in] | list | dimensions |