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_function(), ...
This commit is contained in:
@@ -7,12 +7,10 @@ int main()
|
||||
MatrixXf A = MatrixXf::Random(3,3);
|
||||
std::cout << "A = \n" << A << "\n\n";
|
||||
|
||||
MatrixXf sinhA;
|
||||
ei_matrix_sinh(A, &sinhA);
|
||||
MatrixXf sinhA = ei_matrix_sinh(A);
|
||||
std::cout << "sinh(A) = \n" << sinhA << "\n\n";
|
||||
|
||||
MatrixXf coshA;
|
||||
ei_matrix_cosh(A, &coshA);
|
||||
MatrixXf coshA = ei_matrix_cosh(A);
|
||||
std::cout << "cosh(A) = \n" << coshA << "\n\n";
|
||||
|
||||
// The matrix functions satisfy cosh^2(A) - sinh^2(A) = I,
|
||||
|
||||
Reference in New Issue
Block a user