IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2008, 9:24:11 AM (18 years ago)
Author:
Paul Price
Message:

Allow polynomials to have dimension of zero --- just fit a constant.
Sure, there are more efficient ways of fitting a constant, but this
allows flexibility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomialMD.h

    r16793 r16944  
    1515/// Assertion for valid polynomial
    1616#define PS_ASSERT_POLYNOMIALMD_NON_NULL(POLY, RETURN) \
    17     if (!(POLY) || (POLY)->dim <= 0 || !(POLY)->orders || (POLY)->orders->n != (POLY)->dim || \
     17    if (!(POLY) || (POLY)->dim < 0 || !(POLY)->orders || (POLY)->orders->n != (POLY)->dim || \
    1818        !(POLY)->coeff) { \
    1919        psError(PS_ERR_UNEXPECTED_NULL, true, "Invalid polynomial."); \
Note: See TracChangeset for help on using the changeset viewer.