1 #ifndef __STAN__MATH__MATRIX__MDIVIDE_LEFT_TRI_HPP__
2 #define __STAN__MATH__MATRIX__MDIVIDE_LEFT_TRI_HPP__
4 #include <boost/math/tools/promotion.hpp>
22 template <
int TriView,
typename T1,
typename T2,
23 int R1,
int C1,
int R2,
int C2>
25 Eigen::Matrix<typename boost::math::tools::promote_args<T1,T2>::type,
28 const Eigen::Matrix<T2,R2,C2> &b) {
31 return promote_common<Eigen::Matrix<T1,R1,C1>,Eigen::Matrix<T2,R1,C1> >(A)
32 .
template triangularView<TriView>()
34 Eigen::Matrix<T2,R2,C2> >(b) );
44 template<
int TriView,
typename T,
int R1,
int C1>
46 Eigen::Matrix<T,R1,C1>
50 Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> b;
52 A.template triangularView<TriView>().solveInPlace(b);