Cwise_array_atan2_array.cpp
Go to the documentation of this file.
1 Array<double,1,3> x(8,-25,3),
2  y(1./3.,0.5,-2.);
3 cout << "atan2([" << x << "], [" << y << "]) = " << x.atan2(y) << endl; // using ArrayBase::pow
4 cout << "atan2([" << x << "], [" << y << "] = " << atan2(x,y) << endl; // using Eigen::pow
Array< double, 1, 3 > x(8,-25, 3)
Array< double, 1, 3 > y(1./3., 0.5,-2.)
const std::enable_if_t< std::is_same< typename LhsDerived::Scalar, typename RhsDerived::Scalar >::value, Eigen::CwiseBinaryOp< Eigen::internal::scalar_atan2_op< typename LhsDerived::Scalar, typename RhsDerived::Scalar >, const LhsDerived, const RhsDerived > > atan2(const Eigen::ArrayBase< LhsDerived > &x, const Eigen::ArrayBase< RhsDerived > &exponents)