25 namespace lsst {
namespace geom {
namespace polynomials {
28 _matrix.col(0).setConstant(1);
29 _matrix.diagonal().setConstant(1);
30 for (
int i = 2; i <= nMax; ++i) {
33 for (
int j = 1; j < i; ++j) {
34 _matrix(i, j) = _matrix(i - 1, j - 1) *
35 (
static_cast<double>(i) / static_cast<double>(j));
BinomialMatrix(int nMax)
Construct an object that can compute binomial coefficients with up to and including the given value...
A base class for image defects.