Skip to content
Snippets Groups Projects
Commit a35c93c5 authored by Ian Bell's avatar Ian Bell
Browse files

Fix ADL for pow(double, int)?

parent 77a765c5
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,10 @@ namespace teqp {
return std::pow(x, e);
}
inline auto pow(const double& x, const int& e) {
return powi(x, e);
}
template<typename T>
auto pow(const std::complex<T>& x, const Eigen::ArrayXd& e) {
Eigen::Array<std::complex<T>, Eigen::Dynamic, 1> o(e.size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment