34 CE_VectorT(
exint len,
bool use_pool=
false,
bool read=
true,
bool write=
true);
49 void init(
exint len,
bool doalloc=
true);
99 fpreal64 rms(
int comp = 0)
const {
return SYSsqrt(sumSqr(comp) / tupleCount()); }
110 void releaseBuffer();
112 cl::Kernel loadKernel(
const char *kernelName,
const char *opt = NULL)
const;
119 size_t &accumsize)
const;
121 size_t accumsize,
const char *reduceFlags)
const;
125 const char *reduceFlags,
138 template <
typename T>
150 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
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.