Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
sum_to_zero_constrain.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename Vec , require_eigen_col_vector_t< Vec > * = nullptr, require_not_st_var< Vec > * = nullptr>
plain_type_t< Vec > stan::math::sum_to_zero_constrain (const Vec &y)
 Return a vector with sum zero corresponding to the specified free vector.
 
template<typename Mat , require_eigen_matrix_dynamic_t< Mat > * = nullptr, require_not_st_var< Mat > * = nullptr>
plain_type_t< Mat > stan::math::sum_to_zero_constrain (const Mat &x)
 Return a matrix that sums to zero over both the rows and columns corresponding to the free matrix x.
 
template<typename T , typename Lp , require_not_st_var< T > * = nullptr>
plain_type_t< T > stan::math::sum_to_zero_constrain (const T &y, Lp &lp)
 Return a vector or matrix with sum zero corresponding to the specified free input.
 
template<typename T , require_std_vector_t< T > * = nullptr>
auto stan::math::sum_to_zero_constrain (const T &y)
 Return a vector or matrix with sum zero corresponding to the specified free input.
 
template<typename T , typename Lp , require_std_vector_t< T > * = nullptr, require_convertible_t< return_type_t< T >, Lp > * = nullptr>
auto stan::math::sum_to_zero_constrain (const T &y, Lp &lp)
 Return a vector with sum zero corresponding to the specified free vector.