calculate_nd_scalar_derivatives#

static ElectronicBandStructure.calculate_nd_scalar_derivatives(scalar_array, reciprocal_lattice)[source]#
Transforms the derivatives to cartesian coordinates

(n,j,k,…)->(n,j,k,…,3)

Parameters:
  • derivatives (np.ndarray) – The derivatives to transform

  • reciprocal_lattice (np.ndarray) – The reciprocal lattice

Returns:

np.ndarray – The transformed derivatives