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:
@@ -310,8 +310,6 @@ impl SourcePINN {
|
||||
return f64::MAX;
|
||||
}
|
||||
|
||||
|
||||
|
||||
predicted
|
||||
.iter()
|
||||
.zip(measured.iter())
|
||||
@@ -525,11 +523,7 @@ pub fn quick_estimate(
|
||||
// Compute GOF
|
||||
let total_power: f64 = magnitudes.iter().map(|&m| m * m).sum();
|
||||
let gof = if total_power > 0.0 {
|
||||
magnitudes
|
||||
.iter()
|
||||
.copied()
|
||||
.fold(0.0f64, f64::max)
|
||||
.min(1.0)
|
||||
magnitudes.iter().copied().fold(0.0f64, f64::max).min(1.0)
|
||||
} else {
|
||||
0.0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user