fix(network): fixed missing negative in jacobian energy accounting

This commit is contained in:
2025-03-21 14:46:22 -04:00
parent 328b2cfe8d
commit 552a360064

View File

@@ -325,7 +325,7 @@ namespace nnApprox8{
for (int i=0; i<Net::niso; i++) { for (int i=0; i<Net::niso; i++) {
J(Net::iener,j) += J(i,j)*Net::mion[i]; J(Net::iener,j) += J(i,j)*Net::mion[i];
} }
J(Net::iener,j) *= avo*clight*clight; J(Net::iener,j) *= -avo*clight*clight;
} }
} }