Brick Library 0.1
Performance-portable stencil datalayout & codegen
Functions
multiarray.h File Reference

Multidimensional array shortcuts. More...

#include <vector>
#include <brick.h>
Include dependency graph for multiarray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bElemuninitArray (const std::vector< long > &list, long &size)
 Create an uninitialized multidimensional array. More...
 
bElemrandomArray (const std::vector< long > &list)
 Create an multidimensional array initialized with random values. More...
 
bElemzeroArray (const std::vector< long > &list)
 Create an multidimensional array initialized with zeros. More...
 
bool compareArray (const std::vector< long > &list, bElem *arrA, bElem *arrB)
 Compare the value in two multidimensional arrays (within tolerance) More...
 

Detailed Description

Multidimensional array shortcuts.

Function Documentation

◆ compareArray()

bool compareArray ( const std::vector< long > &  list,
bElem arrA,
bElem arrB 
)

Compare the value in two multidimensional arrays (within tolerance)

Parameters
[in]listdimensions
arrA
arrB
Returns
False when not equal

◆ randomArray()

bElem * randomArray ( const std::vector< long > &  list)

Create an multidimensional array initialized with random values.

Parameters
[in]listdimensions
Returns
pointer to the newly created array
Here is the call graph for this function:

◆ uninitArray()

bElem * uninitArray ( const std::vector< long > &  list,
long &  size 
)

Create an uninitialized multidimensional array.

Parameters
[in]listdimensions
[out]sizethe total size of the array in number of bElem
Returns
pointer to the newly created array

◆ zeroArray()

bElem * zeroArray ( const std::vector< long > &  list)

Create an multidimensional array initialized with zeros.

Parameters
[in]listdimensions
Returns
pointer to the newly created array
Here is the call graph for this function: