Commit f45fe3c6 authored by Yi Zhang's avatar Yi Zhang
Browse files

per review: remove enable_if clause; cleanup doc

parent 3eb8b40f
No related merge requests found
Showing with 2 additions and 10 deletions
+2 -10
......@@ -9,7 +9,6 @@ namespace math {
/**
* Return product of exp(A) and B, where A is a NxN double matrix,
* B is a NxCb double matrix, and t is a double
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
* @param[in] B Matrix
......
......@@ -9,7 +9,6 @@ namespace math {
/**
* Return product of exp(At) and B, where A is a NxN double matrix,
* B is a NxCb double matrix, and t is a double
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
* @param[in] B Matrix
......
......@@ -393,7 +393,6 @@ matrix_exp_action(const Eigen::Matrix<Ta, N, N>& A,
/**
* Wrapper of matrix_exp_action function for a more literal name
* @tparam Ta scalar type matrix A
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Tb scalar type matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
......@@ -401,9 +400,7 @@ matrix_exp_action(const Eigen::Matrix<Ta, N, N>& A,
* @return exponential of A multiplies B
*/
template <typename Ta, typename Tb, int Cb>
inline typename boost::enable_if_c<boost::is_same<Ta, var>::value
|| boost::is_same<Tb, var>::value,
Eigen::Matrix<var, -1, Cb> >::type
inline Eigen::Matrix<typename stan::return_type<Ta, Tb>::type, -1, Cb>
matrix_exp_multiply(const Eigen::Matrix<Ta, -1, -1>& A,
const Eigen::Matrix<Tb, -1, Cb>& B) {
return matrix_exp_action(A, B);
......
......@@ -14,7 +14,6 @@ namespace math {
/**
* Wrapper of matrix_exp_action function for a more literal name.
* @tparam Ta scalar type matrix A
* @tparam N Rows and cols matrix A, also rows of matrix B
* @tparam Tb scalar type matrix B
* @tparam Cb Columns matrix B
* @param[in] A Matrix
......@@ -23,9 +22,7 @@ namespace math {
* @return exponential of At multiplies B
*/
template <typename Ta, typename Tb, int Cb>
inline typename boost::enable_if_c<boost::is_same<Ta, var>::value
|| boost::is_same<Tb, var>::value,
Eigen::Matrix<var, -1, Cb> >::type
inline Eigen::Matrix<typename stan::return_type<Ta, Tb>::type, -1, Cb>
scale_matrix_exp_multiply(const double& t,
const Eigen::Matrix<Ta, -1, -1>& A,
const Eigen::Matrix<Tb, -1, Cb>& B) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment