Einsums Core Module#

This module contains many functions and classes implemented in C++.

einsums.core.gpu_enabled() bool#

Check whether einsums was built with GPU acceleration enabled.

Returns:

True if GPU capabilities are enabled.

einsums.core.__initialize()#

Initializes the Einsums library. This is an internal function that is called automatically. It does not need to be called directly, and instead it is called when you import einsums.

einsums.core.finalize(arg: bool | str)#

Finalize the Einsums library, optionally printing timing info. See einsums.set_finalize_arg to change how the module calls this function. This does not need to be called directly, as it is registered with the atexit module.

einsums.core.get_buffer_format(buffer) str#

Get the format string for a buffer as seen from C++.

Parameters:

buffer – The buffer object to query.