All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
divide.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_DIVIDE_HPP
#define STAN_MATH_PRIM_MAT_FUN_DIVIDE_HPP
#include <boost/type_traits/is_arithmetic.hpp>
#include <boost/utility/enable_if.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
namespace math {
template <int R, int C, typename T>
inline
typename boost::enable_if_c<boost::is_arithmetic<T>::value,
Eigen::Matrix<double, R, C> >::type
divide(const Eigen::Matrix<double, R, C>& m,
T c) {
return m / c;
}
}
}
#endif
stan::math::divide
stan::return_type< T1, T2 >::type divide(const T1 &v, const T2 &c)
Definition: divide.hpp:17
Eigen.hpp

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