style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -197,7 +197,7 @@ impl QuasiStaticMaxwell {
|
||||
/// Compute physics loss from residuals
|
||||
pub fn physics_loss(&self, residual: &Array1<f64>) -> f64 {
|
||||
// Mean squared residual
|
||||
|
||||
|
||||
residual.iter().map(|&r| r * r).sum::<f64>() / residual.len() as f64
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user