Automatic Differentiation
 
Loading...
Searching...
No Matches
subtract.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 ScalarA , typename ScalarB , require_all_stan_scalar_t< ScalarA, ScalarB > * = nullptr, require_all_not_var_t< ScalarA, ScalarB > * = nullptr>
return_type_t< ScalarA, ScalarB > stan::math::subtract (const ScalarA &a, const ScalarB &b)
 Return the result of subtracting the second scalar from the first scalar.
 
template<typename Mat1 , typename Mat2 , require_all_eigen_t< Mat1, Mat2 > * = nullptr, require_all_not_st_var< Mat1, Mat2 > * = nullptr>
auto stan::math::subtract (const Mat1 &m1, const Mat2 &m2)
 Return the result of subtracting the second specified matrix from the first specified matrix.
 
template<typename Scal , typename Mat , require_stan_scalar_t< Scal > * = nullptr, require_eigen_t< Mat > * = nullptr, require_all_not_st_var< Mat, Scal > * = nullptr>
auto stan::math::subtract (const Scal c, const Mat &m)
 Return the result of subtracting the specified matrix from the specified scalar.
 
template<typename Mat , typename Scal , require_eigen_t< Mat > * = nullptr, require_stan_scalar_t< Scal > * = nullptr, require_all_not_st_var< Scal, Mat > * = nullptr>
auto stan::math::subtract (const Mat &m, const Scal c)
 Return the result of subtracting the specified scalar from the specified matrix.