You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/mir/algorithm/iteration.d
+13-2
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ $(T2 cmp, Compares two slices.)
12
12
$(T2 count, Counts elements in a slices according to a predicate.)
13
13
$(T2 each, Iterates all elements.)
14
14
$(T2 eachLower, Iterates lower triangle of matrix.)
15
-
$(T2 eachUpper, Iterates upper triangle of matrix.)
16
15
$(T2 eachUploPair, Iterates upper and lower pairs of elements in square matrix.)
16
+
$(T2 eachUpper, Iterates upper triangle of matrix.)
17
17
$(T2 equal, Compares two slices for equality.)
18
18
$(T2 find, Finds backward index.)
19
19
$(T2 findIndex, Finds index.)
@@ -24,6 +24,7 @@ $(T2 minIndex, Finds index of the minimum.)
24
24
$(T2 minmaxIndex, Finds indexes of the minimum and the maximum.)
25
25
$(T2 minmaxPos, Finds backward indexes of the minimum and the maximum.)
26
26
$(T2 minPos, Finds backward index of the minimum.)
27
+
$(T2 nBitsToCount, Сount bits until set bit count is reached.)
27
28
$(T2 reduce, Accumulates all elements.)
28
29
$(T2 uniq, Iterates over the unique elements in a range, which is assumed sorted.)
29
30
)
@@ -498,6 +499,8 @@ const:
498
499
}
499
500
500
501
/++
502
+
Сount bits until set bit count is reached. Works with ndslices created with $(REF bitwise, mir,ndslice,topology), $(REF bitSlice, mir,ndslice,allocation).
503
+
Returns: bit count if set bit count is reached or `-1` otherwise.
0 commit comments