Skip to content

Commit 64728a0

Browse files
committed
Doc updates
1 parent 6ac1db4 commit 64728a0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

stan/math/prim/fun/all.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace math {
1313
*
1414
* Overload for a single integral input
1515
*
16-
* @tparam T The type of integral input.
17-
* @param x boolean input
16+
* @tparam T Any type convertible to `bool`
17+
* @param x integral input
1818
* @return The input unchanged
1919
*/
2020
template <typename T, require_t<std::is_convertible<T, bool>>* = nullptr>
@@ -63,8 +63,8 @@ inline bool all(const std::vector<InnerT>& x) {
6363
*
6464
* Overload for a tuple input.
6565
*
66-
* @tparam Type of container
67-
* @param x Nested container of boolean inputs
66+
* @tparam Types of items within tuple
67+
* @param x Tuple of boolean scalar-type elements
6868
* @return Boolean indicating whether all elements are true
6969
*/
7070
template <typename... Types>

stan/math/prim/fun/any.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace math {
1313
*
1414
* Overload for a single boolean input
1515
*
16-
* @tparam T The type of integral input.
16+
* @tparam T Any type convertible to `bool`
1717
* @param x boolean input
1818
* @return The input unchanged
1919
*/
@@ -63,9 +63,9 @@ inline bool any(const std::vector<InnerT>& x) {
6363
*
6464
* Overload for a tuple input.
6565
*
66-
* @tparam Type of container
67-
* @param x Nested container of boolean inputs
68-
* @return Boolean indicating whether all elements are true
66+
* @tparam Types of items within tuple
67+
* @param x Tuple of boolean scalar-type elements
68+
* @return Boolean indicating whether any elements are true
6969
*/
7070
template <typename... Types>
7171
inline bool any(const std::tuple<Types...>& x) {

0 commit comments

Comments
 (0)