Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_addition.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

var stan::math::operator+ (const var &a, const var &b)
 Addition operator for variables (C++).
 
template<typename Arith , require_arithmetic_t< Arith > * = nullptr>
var stan::math::operator+ (const var &a, Arith b)
 Addition operator for variable and scalar (C++).
 
template<typename Arith , require_arithmetic_t< Arith > * = nullptr>
var stan::math::operator+ (Arith a, const var &b)
 Addition operator for scalar and variable (C++).
 
template<typename VarMat1 , typename VarMat2 , require_all_rev_matrix_t< VarMat1, VarMat2 > * = nullptr>
auto stan::math::add (VarMat1 &&a, VarMat2 &&b)
 Addition operator for matrix variables (C++).
 
template<typename Arith , typename VarMat , require_st_arithmetic< Arith > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::add (VarMat &&a, const Arith &b)
 Addition operator for a matrix variable and arithmetic (C++).
 
template<typename Arith , typename VarMat , require_st_arithmetic< Arith > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::add (const Arith &a, VarMat &&b)
 Addition operator for an arithmetic type and matrix variable (C++).
 
template<typename Var , typename EigMat , require_var_vt< std::is_arithmetic, Var > * = nullptr, require_eigen_vt< std::is_arithmetic, EigMat > * = nullptr>
auto stan::math::add (const Var &a, const EigMat &b)
 Addition operator for an arithmetic matrix and variable (C++).
 
template<typename EigMat , typename Var , require_eigen_vt< std::is_arithmetic, EigMat > * = nullptr, require_var_vt< std::is_arithmetic, Var > * = nullptr>
auto stan::math::add (const EigMat &a, const Var &b)
 Addition operator for a variable and arithmetic matrix (C++).
 
template<typename Var , typename VarMat , require_var_vt< std::is_arithmetic, Var > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::add (const Var &a, VarMat &&b)
 Addition operator for a variable and variable matrix (C++).
 
template<typename Var , typename VarMat , require_var_vt< std::is_arithmetic, Var > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::add (VarMat &&a, const Var &b)
 Addition operator for a variable matrix and variable (C++).
 
template<typename T1 , typename T2 , require_any_var_vt< std::is_arithmetic, T1, T2 > * = nullptr, require_any_arithmetic_t< T1, T2 > * = nullptr>
auto stan::math::add (const T1 &a, const T2 &b)
 
template<typename T1 , typename T2 , require_all_var_vt< std::is_arithmetic, T1, T2 > * = nullptr>
auto stan::math::add (const T1 &a, const T2 &b)
 
template<typename VarMat1 , typename VarMat2 , require_any_var_matrix_t< VarMat1, VarMat2 > * = nullptr>
auto stan::math::operator+ (VarMat1 &&a, VarMat2 &&b)
 Addition operator for matrix variables.