Skip to main content

neural_potential_energy

Function neural_potential_energy 

Source
pub fn neural_potential_energy(
    network: &NeuralNetwork,
    positions: &[[f64; 3]],
) -> f64
Expand description

Compute a scalar potential energy by summing the first network output over all atoms.

Suitable for networks that map a position to a scalar energy contribution.