@@ -26,7 +26,9 @@ import mir.primitives;
26
26
import std.traits : isArray, isMutable, isIterable, isIntegral, CommonType;
27
27
import mir.internal.utility: isFloatingPoint;
28
28
29
- package template statType(T, bool checkComplex = true )
29
+ // /
30
+ package (mir)
31
+ template statType (T, bool checkComplex = true )
30
32
{
31
33
import mir.internal.utility: isFloatingPoint, isComplex;
32
34
@@ -131,7 +133,9 @@ unittest
131
133
static assert (is (statType! Foo == double )); // note: this is not ints
132
134
}
133
135
134
- package template meanType(T)
136
+ // /
137
+ package (mir)
138
+ template meanType (T)
135
139
{
136
140
import mir.math.sum: sumType;
137
141
import mir.internal.utility: isFloatingPoint, isComplex;
@@ -552,7 +556,9 @@ unittest
552
556
assert (x.sliced.mean! float == 29.25 / 12 );
553
557
}
554
558
555
- package template hmeanType(T)
559
+ // /
560
+ package (mir)
561
+ template hmeanType (T)
556
562
{
557
563
import mir.math.sum: sumType;
558
564
@@ -944,7 +950,9 @@ unittest
944
950
assert (x.gmean.approxEqual(2.60517108 ));
945
951
}
946
952
947
- package template gmeanType(T)
953
+ // /
954
+ package (mir)
955
+ template gmeanType (T)
948
956
{
949
957
import mir.math.numeric: prodType;
950
958
@@ -1839,7 +1847,7 @@ enum VarianceAlgo
1839
1847
assumeZeroMean
1840
1848
}
1841
1849
1842
- private
1850
+ package (mir)
1843
1851
mixin template moment_ops(T,
1844
1852
Summation summation)
1845
1853
{
@@ -1859,7 +1867,7 @@ mixin template moment_ops(T,
1859
1867
}
1860
1868
}
1861
1869
1862
- private
1870
+ package (mir)
1863
1871
mixin template outputRange_ops(T)
1864
1872
{
1865
1873
// /
@@ -2794,7 +2802,9 @@ unittest
2794
2802
assert (x.sliced.variance! float .approxEqual(54.76562 / 11 ));
2795
2803
}
2796
2804
2797
- package template stdevType(T)
2805
+ // /
2806
+ package (mir)
2807
+ template stdevType (T)
2798
2808
{
2799
2809
import mir.internal.utility: isFloatingPoint;
2800
2810
0 commit comments