File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,16 +73,16 @@ struct inv_logit_fun {
7373 }
7474};
7575
76-
7776/* *
7877 * Vectorized version of inv_logit() for Eigen types.
7978 *
80- * @tparam T A type inheriting from `Eigen::DenseBase` that does not have a `var` scalar type.
79+ * @tparam T A type inheriting from `Eigen::DenseBase` that does not have a
80+ * `var` scalar type.
8181 * @param x Eigen expression
8282 * @return Inverse logit applied to each value in x.
8383 */
8484template <typename T, require_eigen_t <T>* = nullptr ,
85- require_not_vt_var<T>* = nullptr >
85+ require_not_vt_var<T>* = nullptr >
8686inline auto inv_logit (T&& x) {
8787 return std::forward<T>(x).array ().logistic ().matrix ();
8888}
@@ -96,7 +96,8 @@ inline auto inv_logit(T&& x) {
9696 */
9797template <typename T, require_std_vector_t <T>* = nullptr >
9898inline auto inv_logit (T&& x) {
99- return apply_scalar_unary<inv_logit_fun, std::decay_t <T>>::apply (std::forward<T>(x));
99+ return apply_scalar_unary<inv_logit_fun, std::decay_t <T>>::apply (
100+ std::forward<T>(x));
100101}
101102
102103} // namespace math
You can’t perform that action at this time.
0 commit comments