VAPOR3 3.9.4
Classes | Namespaces | Functions
utils.h File Reference
#include <cstring>
#include <vector>
#include <limits>
#include <vapor/common.h>

Go to the source code of this file.

Classes

class  Wasp::SmartBuf
 

Namespaces

namespace  Wasp
 

Functions

COMMON_API size_t Wasp::LinearizeCoords (const size_t *coords, const size_t *dims, size_t n)
 
COMMON_API size_t Wasp::LinearizeCoords (const std::vector< size_t > &coords, const std::vector< size_t > &dims)
 
COMMON_API size_t Wasp::LinearizeCoords (const size_t *coords, const size_t *min, const size_t *max, size_t n)
 
COMMON_API size_t Wasp::LinearizeCoords (const std::vector< size_t > &coords, const std::vector< size_t > &min, const std::vector< size_t > &max)
 
COMMON_API void Wasp::IncrementCoords (const size_t *min, const size_t *max, size_t *counter, size_t n, int dim)
 
COMMON_API std::vector< size_t > Wasp::IncrementCoords (const std::vector< size_t > &min, const std::vector< size_t > &max, std::vector< size_t > counter, int dim=0)
 
COMMON_API std::vector< size_t > Wasp::Dims (const std::vector< size_t > &min, const std::vector< size_t > &max)
 
COMMON_API size_t Wasp::VProduct (const size_t *a, size_t n)
 
COMMON_API size_t Wasp::VProduct (const std::vector< size_t > &a)
 
COMMON_API void Wasp::VectorizeCoords (size_t offset, const size_t *min, const size_t *max, size_t *coords, size_t n)
 
COMMON_API std::vector< size_t > Wasp::VectorizeCoords (size_t offset, const std::vector< size_t > &min, const std::vector< size_t > &max)
 
COMMON_API void Wasp::VectorizeCoords (size_t offset, const size_t *dims, size_t *coords, size_t n)
 
COMMON_API std::vector< size_t > Wasp::VectorizeCoords (size_t offset, const std::vector< size_t > &dims)
 
COMMON_API void Wasp::Transpose (const float *a, float *b, size_t p1, size_t m1, size_t s1, size_t p2, size_t m2, size_t s2)
 
COMMON_API void Wasp::Transpose (const float *a, float *b, size_t s1, size_t s2)
 
COMMON_API bool Wasp::BinarySearchRange (const std::vector< double > &sorted, double x, size_t &i)
 
COMMON_API bool Wasp::NearlyEqual (float a, float b, float epsilon=std::numeric_limits< float >::epsilon(), float abs_th=std::numeric_limits< float >::epsilon())