Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-link reverse functions to not miss other supported types #802

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/functions-reference/array_operations.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ Number of components of v less than v[s]
Number of components of v less than v[s]
{{< since 2.0 >}}

## Reversing functions {#reversing-functions}
## Reverse functions {#reverse-functions}

Stan provides functions to create a new array by reversing the order of
elements in an existing array. For example, if `v` is declared as a real
Expand All @@ -564,3 +564,5 @@ then
`array[] T` **`reverse`**`(array[] T v)`<br>\newline
Return a new array containing the elements of the argument in reverse order.
{{< since 2.23 >}}

See also `reverse` functions for [vectors](matrix_operations.qmd#reverse-functions) and [complex vectors](complex_matrix_operations.qmd#reverse-functions).
4 changes: 3 additions & 1 deletion src/functions-reference/complex_matrix_operations.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ computational cost due to the shared work between the two results.



## Reverse functions for complex matrices
## Reverse functions {#reverse-functions}

<!-- complex_vector; reverse; (complex_vector v); -->
\index{{\tt \bfseries reverse }!{\tt (complex\_vector v): complex\_vector}|hyperpage}
Expand All @@ -1497,3 +1497,5 @@ computational cost due to the shared work between the two results.
Return a new row vector containing the elements of the argument in reverse
order.
{{< since 2.30 >}}

See also `reverse` functions for [arrays](array_operations.qmd#reverse-functions) and [vectors](matrix_operations.qmd#reverse-functions).
2 changes: 2 additions & 0 deletions src/functions-reference/matrix_operations.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2486,3 +2486,5 @@ Return a new vector containing the elements of the argument in reverse order.
`row_vector` **`reverse`**`(row_vector v)`<br>\newline
Return a new row vector containing the elements of the argument in reverse order.
{{< since 2.23 >}}

See also `reverse` functions for [arrays](array_operations.qmd#reverse-functions) and [complex vectors](complex_matrix_operations.qmd#reverse-functions).