Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 26, 2020
1 parent 2a1df61 commit ce17951
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion source/mir/math/stat.d
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Computes the average of `r`, which must be a finite iterable.
Returns:
The average of all the elements in the range r.
See_also: $(SUBREF sum, Summation)
+/
template mean(F, Summation summation = Summation.appropriate)
{
Expand Down Expand Up @@ -301,7 +303,7 @@ version(mir_test)
/++
Computes the harmonic mean of a range.
See_also: $(SUBREF sum, sum)
See_also: $(SUBREF sum, Summation)
+/
template hmean(F, Summation summation = Summation.appropriate)
{
Expand Down
2 changes: 1 addition & 1 deletion source/mir/math/sum.d
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ value, but its type will be used if it is not specified.
Note that these specialized summing algorithms execute more primitive operations
than vanilla summation. Therefore, if in certain cases maximum speed is required
at expense of precision, one can use $(LREF, Summation.fast).
at expense of precision, one can use $(LREF Summation.fast).
Returns:
The sum of all the elements in the range r.
Expand Down
2 changes: 1 addition & 1 deletion source/mir/ndslice/concatenation.d
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private template _Expose(size_t maxN, size_t dim)
/++
Creates a $(LREF Concatenation) view of multiple slices.
Can be used in combination with itself, $(LREF until), $(SUBREF, allocation, slice),
Can be used in combination with itself, $(LREF until), $(SUBREF allocation, slice),
and $(SUBREF slice, Slice) assignment.
Params:
Expand Down
2 changes: 1 addition & 1 deletion source/mir/ndslice/topology.d
Original file line number Diff line number Diff line change
Expand Up @@ -3125,7 +3125,7 @@ Params:
Returns:
n-dimensional slice with the same kind, shape and strides.
See_also: `indexed` is similar to $(LREF, vmap), but a field (`[]`) is used instead of a function (`()`), and order of arguments is reversed.
See_also: `indexed` is similar to $(LREF vmap), but a field (`[]`) is used instead of a function (`()`), and order of arguments is reversed.
+/
Slice!(IndexIterator!(Iterator, Field), N, kind)
indexed(Field, Iterator, size_t N, SliceKind kind)
Expand Down

0 comments on commit ce17951

Please sign in to comment.