Miscellaneous

This page documents the miscellaneous members of the blosc2 module that do not fit into other categories.

blosc2.cpu_info = {'count': 4, 'l1_data_cache_size': 49152, 'l2_cache_size': 2097152, 'l3_cache_size': 503316480}
class blosc2.finfo(dtype)

Return floating-point limits for dtype. This is an alias for numpy.finfo; see NumPy’s reference for its attributes and examples.

class blosc2.iinfo(type)

Machine limits for integer types.

bits

The number of bits occupied by the type.

Type:

int

dtype

Returns the dtype for which iinfo returns information.

Type:

dtype

min

The smallest integer expressible by the type.

Type:

int

max

The largest integer expressible by the type.

Type:

int

Parameters:

int_type (integer type, dtype, or instance) – The kind of integer data type to get information about.

See also

finfo

The equivalent for floating point data types.

Examples

With types:

>>> import numpy as np
>>> ii16 = np.iinfo(np.int16)
>>> ii16.min
-32768
>>> ii16.max
32767
>>> ii32 = np.iinfo(np.int32)
>>> ii32.min
-2147483648
>>> ii32.max
2147483647

With instances:

>>> ii32 = np.iinfo(np.int32(10))
>>> ii32.min
-2147483648
>>> ii32.max
2147483647
Attributes:
max

Maximum value of given dtype.

min

Minimum value of given dtype.

blosc2.get_matmul_library() → str | None[source]

Return the library used by the active matmul fast backend, if any.

Returns:

"Accelerate.framework" when the selected backend is Accelerate, the loaded CBLAS library path for runtime-discovered CBLAS backends, or None when the selected backend is naive.

Return type:

str | None