49 void init(
exint len,
bool doalloc=
true);
78 void zero() { setValue(0); }
100 void setValue(
T cval);
105 void releaseBuffer();
107 cl::Kernel loadKernel(
const char *kernelName,
const char *opt = NULL)
const;
114 size_t &accumsize)
const;
116 size_t accumsize,
const char *reduceFlags)
const;
128 template <
typename T>
140 template <
typename T>
GLboolean GLboolean GLboolean b
exint length() const
Returns the vector length.
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
CE_VectorT< fpreal32 > CE_VectorF
void read(T &in, bool &v)
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 GLboolean a
fpreal64 dot(const CE_VectorT< T > &a) const
Returns the dot product with provided vector.
GLuint GLsizei GLsizei * length
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.
CE_VectorT< fpreal64 > CE_VectorD
void write(T &out, bool v)