Function lsst::meas::astrom::detail::computePowers(Eigen::VectorXd&, double)

Function Documentation

void lsst::meas::astrom::detail::computePowers(Eigen::VectorXd &r, double x)

Fill 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().