mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Use ReturnByValue to return result of ei_matrix_exponential() .
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user