arraylias.Alias.register_type#
- Alias.register_type(array_type: type, lib: str | None = None, prefer: bool = False)[source]#
Register an array type for dispatching array functions.
- Parameters:
array_type – An array type to register for the array library.
lib – Optional, a name string to identify the array library. If None this will be set as the base module name of the arrays module.
prefer – prioritize this lib when dispatching on this type if the type is registered to multiple libraries (Default: False).