mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Add documentation and very simple test for array atan(), part 2
(files I forget in the previous commit).
This commit is contained in:
parent
55453c51e8
commit
de150b1e14
2
doc/snippets/Cwise_atan.cpp
Normal file
2
doc/snippets/Cwise_atan.cpp
Normal file
@ -0,0 +1,2 @@
|
||||
ArrayXd v = ArrayXd::LinSpaced(5,0,1);
|
||||
cout << v.atan() << endl;
|
@ -178,6 +178,7 @@ template<typename ArrayType> void array_real(const ArrayType& m)
|
||||
VERIFY_IS_APPROX(m1.asin(), asin(m1));
|
||||
VERIFY_IS_APPROX(m1.acos(), acos(m1));
|
||||
VERIFY_IS_APPROX(m1.tan(), tan(m1));
|
||||
VERIFY_IS_APPROX(m1.atan(), atan(m1));
|
||||
|
||||
VERIFY_IS_APPROX(cos(m1+RealScalar(3)*m2), cos((m1+RealScalar(3)*m2).eval()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user