tensor_average#

atomate2.amset.run.tensor_average(tensor: list | numpy.ndarray) float | numpy.ndarray[source]#

Calculate the average of the tensor eigenvalues.

Parameters
tensorlist or numpy array

A tensor

Returns
float or numpy array

The average of the eigenvalues.