Loadable Function: ocl_ones (n)
Loadable Function: ocl_ones (m, n)
Loadable Function: ocl_ones (m, n, k, …)
Loadable Function: ocl_ones ([m n …])
Loadable Function: ocl_ones (…, class)

Return an OCL matrix or N-dimensional OCL array whose elements are all 1.

For details, see help for ones.

The OCL matrix is assembled on the OpenCL device.

See also: ones, ocl_zeros, oclArray.

Package: ocl