style patterns

This commit is contained in:
Miha Kralj
2026-01-25 16:01:45 -08:00
parent 2836f253c4
commit e59665c8f0
399 changed files with 6892 additions and 1323 deletions
+1 -1
View File
@@ -308,4 +308,4 @@ public class MseTests
Assert.True(double.IsFinite(val), $"Expected finite value but got {val}");
}
}
}
}
+4 -1
View File
@@ -61,7 +61,10 @@ public sealed class Mse : BiInputIndicatorBase
public static void Batch(ReadOnlySpan<double> actual, ReadOnlySpan<double> predicted, Span<double> output, int period)
{
ValidateBatchInputs(actual, predicted, output, period);
if (actual.Length == 0) return;
if (actual.Length == 0)
{
return;
}
// Allocate temporary buffer for squared errors
const int StackAllocThreshold = 256;