31 CE_VectorT(
exint len,
bool use_pool=
false,
bool read=
true,
bool write=
true);
46 void init(
exint len,
bool doalloc=
true);
96 fpreal64 rms(
int comp = 0)
const {
return SYSsqrt(sumSqr(comp) / tupleCount()); }
107 void releaseBuffer();
109 cl::Kernel loadKernel(
const char *kernel_name,
const char *opt = NULL)
const;
116 size_t &accumsize)
const;
118 size_t accumsize,
const char *reduce_flags)
const;
122 const char *reduce_flags,
135 template <
typename T>
fpreal64 rms(int comp=0) const
exint length() const
Returns the vector length.
GLboolean GLboolean GLboolean GLboolean a
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
__hostdev__ void setValue(uint32_t offset, bool v)
CE_VectorT< fpreal32 > CE_VectorF
GLint GLint GLsizei GLint GLenum GLenum type
const cl::Buffer & buffer() const
Returns the underlying OpenCL buffer.
fpreal64 dot(const CE_VectorT< T > &a, const CE_VectorT< T > &b)
GLboolean GLboolean GLboolean b
fpreal64 dot(const CE_VectorT< T > &a) const
Returns the dot product with provided vector.
LeafData & operator=(const LeafData &)=delete
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
Kernel functor interface.
Kernel interface that implements cl_kernel.
exint tupleCount() const
Returns the number of tuples contained in the vector.
fpreal64 average(int comp=0) const
CE_VectorT< fpreal64 > CE_VectorD
int tupleSize() const
Returns the size of the tuple contained in the vector.