Function lsst::meas::astrom::detail::computePowers(double, int)

Function Documentation

Eigen::VectorXd lsst::meas::astrom::detail::computePowers(double x, int n)

Return an array with integer powers of x, so \($r[n] == r^n\).

When multiple powers are needed, this should be signficantly faster than repeated calls to std::pow().