Stan Math Library
5.0.0
Automatic Differentiation
|
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core/var.hpp>
#include <stan/math/rev/core/arena_matrix.hpp>
#include <stan/math/rev/core/callback_vari.hpp>
#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>
#include <stan/math/prim/fun/as_array_or_scalar.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/is_any_nan.hpp>
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) |
Subtraction operator for variables. | |
template<typename Arith , require_arithmetic_t< Arith > * = nullptr> | |
var | stan::math::operator- (const var &a, Arith b) |
Subtraction operator for variable and scalar. | |
template<typename Arith , require_arithmetic_t< Arith > * = nullptr> | |
var | stan::math::operator- (Arith a, const var &b) |
Subtraction operator for scalar and variable. | |
template<typename VarMat1 , typename VarMat2 , require_all_rev_matrix_t< VarMat1, VarMat2 > * = nullptr> | |
auto | stan::math::subtract (const VarMat1 &a, const VarMat2 &b) |
Subtraction operator for matrix variables. | |
template<typename Arith , typename VarMat , require_st_arithmetic< Arith > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr> | |
auto | stan::math::subtract (const VarMat &a, const Arith &b) |
Subtraction operator for a matrix variable and arithmetic. | |
template<typename Arith , typename VarMat , require_st_arithmetic< Arith > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr> | |
auto | stan::math::subtract (const Arith &a, const VarMat &b) |
Subtraction operator for an arithmetic type and matrix variable. | |
template<typename Var , typename EigMat , require_var_vt< std::is_arithmetic, Var > * = nullptr, require_eigen_vt< std::is_arithmetic, EigMat > * = nullptr> | |
auto | stan::math::subtract (const Var &a, const EigMat &b) |
Subtraction operator for an arithmetic matrix and variable. | |
template<typename EigMat , typename Var , require_eigen_vt< std::is_arithmetic, EigMat > * = nullptr, require_var_vt< std::is_arithmetic, Var > * = nullptr> | |
auto | stan::math::subtract (const EigMat &a, const Var &b) |
Subtraction operator for a variable and arithmetic matrix. | |
template<typename Var , typename VarMat , require_var_vt< std::is_arithmetic, Var > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr> | |
auto | stan::math::subtract (const Var &a, const VarMat &b) |
Subtraction operator for a variable and variable matrix. | |
template<typename Var , typename VarMat , require_rev_matrix_t< VarMat > * = nullptr, require_var_vt< std::is_arithmetic, Var > * = nullptr> | |
auto | stan::math::subtract (const VarMat &a, const Var &b) |
Subtraction operator for a variable matrix and variable. | |
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::subtract (const T1 &a, const T2 &b) |
template<typename T1 , typename T2 , require_all_var_vt< std::is_arithmetic, T1, T2 > * = nullptr> | |
auto | stan::math::subtract (const T1 &a, const T2 &b) |
template<typename VarMat1 , typename VarMat2 , require_any_var_matrix_t< VarMat1, VarMat2 > * = nullptr> | |
auto | stan::math::operator- (const VarMat1 &a, const VarMat2 &b) |
Addition operator for matrix variables. | |