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()#

Initialize the Einsums library. 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.report([output_file: str])#

Print the timing report to standard output. If an output file is provided, print to that file instead.

Parameters:

output_file – The file to optionally print to.

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.