scikits.cuda.misc.inf

scikits.cuda.misc.inf(shape, dtype, allocator=<Mock object at 0x2aade3828f10>)[source]

Return an array of the given shape and dtype filled with infs.

Parameters:

shape : tuple

Array shape.

dtype : data-type

Data type for the array.

allocator : callable

Returns an object that represents the memory allocated for the requested array.

Returns:

out : pycuda.gpuarray.GPUArray

Array of infs with the given shape and dtype.