Skip to content

Commit f9c8866

Browse files
committed
update docs
1 parent f3f2cd6 commit f9c8866

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/mir/ndslice/algorithm.d

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ bool[2] minmaxPosImpl(alias fun, SliceKind kind, size_t[] packs, Iterator)(ref s
452452
Finds a positions (ndslices) such that
453453
`position[0].first` is minimal and `position[1].first` is maximal elements in the slice.
454454
455-
Each position is sub-ndslice of the same dimension in the right-(down-(etc)) corner.
455+
Position is sub-ndslice of the same dimension in the right-(down-(etc)) corner.
456456
457457
Params:
458458
pred = A predicate.
@@ -471,8 +471,7 @@ template minmaxPos(alias pred = "a < b")
471471
Params:
472472
slice = ndslice.
473473
Returns:
474-
Multidimensional backward index such that element is minimal(maximal).
475-
Backward index equals zeros, if slice is empty.
474+
2 subslices with minimal and maximal `first` elements.
476475
+/
477476
@fastmath Slice!(kind == Contiguous && packs[0] > 1 ? Canonical : kind, packs, Iterator)[2]
478477
minmaxPos(SliceKind kind, size_t[] packs, Iterator)(Slice!(kind, packs, Iterator) slice)
@@ -562,8 +561,7 @@ template minmaxIndex(alias pred = "a < b")
562561
Params:
563562
slice = ndslice.
564563
Returns:
565-
Multidimensional backward indexes such that elements are minimal and maximal.
566-
Backward index equals zeros, if slice is empty.
564+
Subslice with minimal (maximal) `first` element.
567565
+/
568566
@fastmath size_t[packs[0]][2] minmaxIndex(SliceKind kind, size_t[] packs, Iterator)(Slice!(kind, packs, Iterator) slice)
569567
{

0 commit comments

Comments
 (0)