Einsums Internal Errors#

This page gives the internal errors used by Einsums that are available to Python.

exception einsums.core.rank_error#

This is thrown when a tensor is passed to an operation, but the operation can not operate on tensors of its rank. For instance, einsums.core.gemm can only operate on rank-2 tensors. If a rank-1 tensor were to be passed in, then this error will be thrown.

exception einsums.core.dimension_error#

This is thrown when tensors have incompatible dimensions. For instance, einsums.core.geev can only operate on square matrices. If a non-square matrix were to be passed, this error will be thrown.

exception einsums.core.tensor_compat_error#

This is thrown when tensor arguments have incompatible dimensions with each other. For instance, passing two m by n tensors with no transpositions to einsums.core.gemm will throw this error.

exception einsums.core.num_argument_error#

This is thrown when the wrong number of arguments are passed to a function that can take several arguments. It has specializations too_many_args and not_enough_args.

exception einsums.core.not_enough_args#

This is thrown when a function that can take a variable number of arguments doesn’t receive enough arguments.

exception einsums.core.too_many_args#

This is thrown when a function that can take a variable number of arguments receives more than expected.

exception einsums.core.access_denied#

Indicates that an operation was halted due to access restrictions, such as trying to write to read-only data.

exception einsums.core.todo_error#

This indicates that a piece of code has not been implemented but will be in the future.

exception einsums.core.not_implemented#

This indicates that a code path has not been implemented and will likely not be implemented in the future.

exception einsums.core.bad_logic#

General runtime error indicating that some program logic failed.

exception einsums.core.uninitialized_error#

Indicates that the code was trying to use uninitialized data.

exception einsums.core.system_error#

Indicates that an error happened when making a system call.

exception einsums.core.enum_error#

Indicates that an invalid enumeration value was used.