reactphysics3d/testbed/nanogui/ext/eigen/doc/snippets/Cwise_cosh.cpp

3 lines
64 B
C++

ArrayXd v = ArrayXd::LinSpaced(5,0,1);
cout << cosh(v) << endl;