Skip to content

Commit 5d9cacd

Browse files
committed
Missed require on ordered_constrain
1 parent b7ef5fa commit 5d9cacd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

stan/math/prim/constraint/ordered_constrain.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,14 @@ inline auto ordered_constrain(const T& x, Lp&... lp) {
100100
* absolute Jacobian determinant of constraining transform
101101
* @tparam T A type inheriting from `Eigen::DenseBase` or a `var_value` with
102102
* inner type inheriting from `Eigen::DenseBase` with compile time dynamic rows
103-
* and 1 column
103+
* and 1 column, or a standard vector thereof
104104
* @tparam Lp A scalar type for the lp argument. The scalar type of T should be
105105
* convertable to this.
106106
* @param x Free vector of scalars
107107
* @param[in, out] lp log density accumulator
108108
* @return Positive, increasing ordered vector.
109109
*/
110110
template <bool Jacobian, typename T, typename Lp,
111-
require_not_std_vector_t<T>* = nullptr,
112111
require_convertible_t<return_type_t<T>, Lp>* = nullptr>
113112
inline auto ordered_constrain(const T& x, Lp& lp) {
114113
if (Jacobian) {

0 commit comments

Comments
 (0)