tensor_average

atomate2.amset.run.tensor_average(tensor)[source]

Calculate the average of the tensor eigenvalues.

Parameters:

tensor (list or numpy array) – A tensor

Returns:

The average of the eigenvalues.

Return type:

float or numpy array