blosc2.uninit#

blosc2.uninit(shape: int | tuple | list, dtype: ~numpy.dtype = <class 'numpy.uint8'>, **kwargs: dict) NDArray#

Create an array with uninitialized values.

The parameters and keyword arguments are the same as for the empty() constructor.

Returns:

out – A NDArray is returned.

Return type:

NDArray

Examples

>>> import blosc2
>>> shape = [8, 8]
>>> chunks = [6, 5]
>>> # Create uninitialized array
>>> array = blosc2.uninit(shape, dtype='f8', chunks=chunks)
>>> array.shape
(8, 8)
>>> array.chunks
(6, 5)
>>> array.dtype
dtype('float64')