Stan Math Library  2.20.0
reverse mode automatic differentiation
divide.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_DIVIDE_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_DIVIDE_HPP
3 
5 #include <type_traits>
6 
7 namespace stan {
8 namespace math {
9 
18 template <int R, int C, typename T>
19 inline typename std::enable_if<std::is_arithmetic<T>::value,
20  Eigen::Matrix<double, R, C> >::type
21 divide(const Eigen::Matrix<double, R, C>& m, T c) {
22  return m / c;
23 }
24 
25 } // namespace math
26 } // namespace stan
27 #endif
Eigen::Matrix< fvar< T >, R, C > divide(const Eigen::Matrix< fvar< T >, R, C > &v, const fvar< T > &c)
Definition: divide.hpp:11

     [ Stan Home Page ] © 2011–2018, Stan Development Team.