| 216 | } |
| 217 | |
| 218 | void BSpline::checkControlPoints() const |
| 219 | { |
| 220 | if (coefficients.rows() != knotaverages.rows()) |
| 221 | throw Exception("BSpline::checkControlPoints: Inconsistent size of coefficients and knot averages matrices."); |
| 222 | if (knotaverages.cols() != numVariables) |
| 223 | throw Exception("BSpline::checkControlPoints: Inconsistent size of knot averages matrix."); |
| 224 | } |
| 225 | |
| 226 | bool BSpline::pointInDomain(DenseVector x) const |
| 227 | { |