1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-05-08 22:09:06 +08:00
eigen/doc/snippets/Cwise_tanh.cpp

3 lines
66 B
C++

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