Skip to content

Commit

Permalink
Merge pull request #4149 from 9il/docs2
Browse files Browse the repository at this point in the history
Fix docs in ndslice.iteration
  • Loading branch information
Hackerpilot committed Apr 5, 2016
2 parents 5bdc3b3 + 7c03e33 commit adc44c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions std/experimental/ndslice/iteration.d
Expand Up @@ -10,23 +10,23 @@ All operators return slice of the same type as the type of the argument.
$(BOOKTABLE $(H2 Transpose operators),
$(TR $(TH Function Name) $(TH Descriprottion))
$(T2 transposed, `100000.iota.sliced(3, 4, 5, 6, 7).transposed!(4, 0, 1).shape` returns `[7, 3, 4, 5, 6]`.)
$(T2 swapped, `1000.iota.sliced(3, 4, 5).swapped!(1, 2).shape` returns `[3, 5, 4]`.)
$(T2 everted, `1000.iota.sliced(3, 4, 5).everted.shape` returns `[5, 4, 3]`.)
$(T2 transposed, `(3*4*5*6*7).iota.sliced(3, 4, 5, 6, 7).transposed!(4, 0, 1).shape` returns `[7, 3, 4, 5, 6]`.)
$(T2 swapped, `60.iota.sliced(3, 4, 5).swapped!(1, 2).shape` returns `[3, 5, 4]`.)
$(T2 everted, `60.iota.sliced(3, 4, 5).everted.shape` returns `[5, 4, 3]`.)
)
See also $(SUBREF selection, evertPack).
$(BOOKTABLE $(H2 Iteration operators),
$(TR $(TH Function Name) $(TH Description))
$(T2 strided, `1000.iota.sliced(13, 40).strided!(0, 1)(2, 5).shape` equals to `[7, 8]`.)
$(T2 strided, `520.iota.sliced(13, 40).strided!(0, 1)(2, 5).shape` equals to `[7, 8]`.)
$(T2 reversed, `slice.reversed!0` returns the slice with reversed direction of iteration for top level dimension.)
$(T2 allReversed, `20.iota.sliced(4, 5).allReversed` equals to `20.iota.retro.sliced(4, 5)`.)
)
$(BOOKTABLE $(H2 Other operators),
$(TR $(TH Function Name) $(TH Description))
$(T2 rotated, `10.iota.sliced(2, 3).rotated` equals to `[[2, 5], [1, 4], [0, 3]]`.)
$(T2 rotated, `6.iota.sliced(2, 3).rotated` equals to `[[2, 5], [1, 4], [0, 3]]`.)
)
$(H4 Drop operators)
Expand Down

0 comments on commit adc44c4

Please sign in to comment.