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
@@ -247,4 +247,4 @@ public class RmseTests
// All errors are 5, MSE = 25, RMSE = 5
Assert.Equal(5.0, results.Last.Value, 10);
}
}
}
+4 -1
View File
@@ -57,7 +57,10 @@ public sealed class Rmse : BiInputIndicatorBase
ValidateBatchInputs(actual, predicted, output, period);
int len = actual.Length;
if (len == 0) return;
if (len == 0)
{
return;
}
const int StackAllocThreshold = 256;
Span<double> sqErrors = len <= StackAllocThreshold