triqs_dft_tools.converters.plovasp.lintetra.dos_tetra_weights_3d

triqs_dft_tools.converters.plovasp.lintetra.dos_tetra_weights_3d(eigenvalues, energy, k_points)[source]

Compute tetrahedron corner weights for 3D DOS integration.

This version is fully vectorized in NumPy, operating on all tetrahedra simultaneously without MPI or Python loops.

Parameters:
eigenvalues(n_kpoints,) array_like of float

Energies at k-points.

energyfloat

Target energy for DOS evaluation.

k_points(5, n_tetra) array_like of int

Tetrahedron connectivity. Only rows [1:5] are used for corner indices.

Returns:
corner_weights(4, n_tetra) ndarray of float

Corner weights for each tetrahedron at the specified energy.