aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/doc/examples/MatrixSinh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported/doc/examples/MatrixSinh.cpp')
-rw-r--r--unsupported/doc/examples/MatrixSinh.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/unsupported/doc/examples/MatrixSinh.cpp b/unsupported/doc/examples/MatrixSinh.cpp
index 488d95652..036534dea 100644
--- a/unsupported/doc/examples/MatrixSinh.cpp
+++ b/unsupported/doc/examples/MatrixSinh.cpp
@@ -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,