Add Fill method to ArrayHandle and BitField
ArrayHandle
has a new method named Fill
. As the name would suggest, the
Fill
method initializes all elements in the array to a specified value.
In addition to being more convenient than calling Algorithm::Fill
or
ArrayCopy
with a constant array, the ArrayHandle::Fill
can be used
without using a device adapter.
Also added a similar Fill
and AllocateAndFill
methods to BitField
for
similar reasons.
Fixes #642 (closed)