Use ReturnByValue to return result of ei_matrix_exponential() .

This commit is contained in:
Jitse Niesen
2010-02-15 19:17:25 +00:00
parent a9096b626b
commit 25019f0836
4 changed files with 159 additions and 99 deletions

View File

@@ -12,7 +12,6 @@ int main()
0, 0, 0;
std::cout << "The matrix A is:\n" << A << "\n\n";
MatrixXd B;
ei_matrix_exponential(A, &B);
MatrixXd B = ei_matrix_exponential(A);
std::cout << "The matrix exponential of A is:\n" << B << "\n\n";
}