25 #ifndef LSST_MEAS_ASTROM_DETAIL_polynomialUtils_h_INCLUDED 26 #define LSST_MEAS_ASTROM_DETAIL_polynomialUtils_h_INCLUDED 30 namespace lsst {
namespace meas {
namespace astrom {
namespace detail {
43 return (order*(order + 1))/2;
105 return getMatrix()(n, k);
110 static void extend(
int const n);
112 static Eigen::MatrixXd & getMatrix();
119 #endif // !LSST_MEAS_ASTROM_DETAIL_polynomialUtils_h_INCLUDED BinomialMatrix(int const nMax)
Construct an object that can compute binomial coefficients with up to and including the given value...
A class that computes binomial coefficients up to a certain power.
int computePackedSize(int order)
Compute this size of a packed 2-d polynomial coefficient array.
int computePackedOffset(int order)
Compute the index of the first coefficient with the given order in a packed 2-d polynomial coefficien...
double operator()(int n, int k) const
Return the binomial coefficient.
void computePowers(Eigen::VectorXd &r, double x)
Fill an array with integer powers of x, so .