Unverified Commit 69686e15 authored by Charles Margossian's avatar Charles Margossian Committed by GitHub
Browse files

Merge pull request #770 from stan-dev/bugfix/issue-769-MatrixExpReference

Add passing by reference for matrix_exp function.
parents d9494eec 2ab1370c
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -18,7 +18,7 @@ namespace math {
*/
template <typename T>
inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> matrix_exp(
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> A) {
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& A) {
check_nonzero_size("matrix_exp", "input matrix", A);
check_square("matrix_exp", "input matrix", A);
......
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