ArrayUtils-Impl.h File Reference
#include <Core/Array/Array2.h>
#include <Core/Array/Array3.h>
#include <Core/Utils/Parallel.h>
#include <Core/Utils/TypeHelpers.h>
#include <iostream>

Go to the source code of this file.

Namespaces

 CubbyFlow
 

Functions

template<typename ArrayType , typename T >
void CubbyFlow::SetRange1 (size_t size, const T &value, ArrayType *output)
 Assigns value to 1-D array output with size. More...
 
template<typename ArrayType , typename T >
void CubbyFlow::SetRange1 (size_t begin, size_t end, const T &value, ArrayType *output)
 Assigns value to 1-D array output from begin to end. More...
 
template<typename ArrayType1 , typename ArrayType2 >
void CubbyFlow::CopyRange1 (const ArrayType1 &input, size_t size, ArrayType2 *output)
 Copies input array to output array with size. More...
 
template<typename ArrayType1 , typename ArrayType2 >
void CubbyFlow::CopyRange1 (const ArrayType1 &input, size_t begin, size_t end, ArrayType2 *output)
 Copies input array to output array from begin to end. More...
 
template<typename ArrayType1 , typename ArrayType2 >
void CubbyFlow::CopyRange2 (const ArrayType1 &input, size_t sizeX, size_t sizeY, ArrayType2 *output)
 Copies 2-D input array to output array with sizeX and sizeY. More...
 
template<typename ArrayType1 , typename ArrayType2 >
void CubbyFlow::CopyRange2 (const ArrayType1 &input, size_t beginX, size_t endX, size_t beginY, size_t endY, ArrayType2 *output)
 Copies 2-D input array to output array from (beginX, beginY) to (endX, endY). More...
 
template<typename ArrayType1 , typename ArrayType2 >
void CubbyFlow::CopyRange3 (const ArrayType1 &input, size_t sizeX, size_t sizeY, size_t sizeZ, ArrayType2 *output)
 Copies 3-D input array to output array with sizeX and sizeY. More...
 
template<typename ArrayType1 , typename ArrayType2 >
void CubbyFlow::CopyRange3 (const ArrayType1 &input, size_t beginX, size_t endX, size_t beginY, size_t endY, size_t beginZ, size_t endZ, ArrayType2 *output)
 Copies 3-D input array to output array from (beginX, beginY, beginZ) to (endX, endY, endZ). More...
 
template<typename T >
void CubbyFlow::ExtrapolateToRegion (const ConstArrayAccessor2< T > &input, const ConstArrayAccessor2< char > &valid, unsigned int numberOfIterations, ArrayAccessor2< T > output)
 Extrapolates 2-D input data from 'valid' (1) to 'invalid' (0) region. More...
 
template<typename T >
void CubbyFlow::ExtrapolateToRegion (const ConstArrayAccessor3< T > &input, const ConstArrayAccessor3< char > &valid, unsigned int numberOfIterations, ArrayAccessor3< T > output)
 Extrapolates 3-D input data from 'valid' (1) to 'invalid' (0) region. More...
 
template<typename ArrayType >
void CubbyFlow::ConvertToCSV (const ArrayType &data, std::ostream *stream)
 Converts 2-D array to Comma Separated Value (CSV) stream. More...