(self, value, stream=None)
return self
fills the array with the specified value
fills the array with the specified value
fills the array with the specified value
def fill(self, value, stream=None):
        """fills the array with the specified value"""
        if not self.flags.forc:
            raise RuntimeError(
                "only contiguous arrays may be used as arguments to this operation")

        func = elementwise.get_fill_kernel(self.dtype)
        func.prepared_async_call(
            self._grid, self._block, stream, value, self.gpudata, self.mem_size
        )

        return self
def fill ( self , value , stream = None ) : if not self . flags . forc : raise RuntimeError ( "only contiguous arrays may be used as arguments to this operation" ) func = elementwise . get_fill_kernel ( self . dtype ) func . prepared_async_call ( self . _grid , self . _block , stream , value , self . gpudata , self . mem_size ) return self