Units / nurbs
nlib.crv_fit_p2 green
- Layer
- 6
- Upstream lines
- 1,586
- Functions
- 9
- Rust module
nurbs::crv_fit::p2
Source: crates/solidcore/src/nurbs/crv_fit/p2.rs
Upstream: source/SMLib/src/NL_CrvFit.cpp
Notes
9 fns; largest: N_FitCrvWeightedLstSqKnots, N_FitCrvApproxLstSq, N_FitCalcMatrix, N_FitCrvDerivMatrix; 317 upstream test entry points reach this unit; difftest green: 2106 cases (106 fixtures + 2000 generated), 0 deferred, max_rel_err 0
Difftest
- Cases
- 2,106
- Passed
- 2,106
- Deferred
- 0
- Failed
- 0
- Both errored
- 0
- Max rel. error
- 0.0
- Tolerance
- 1e-09 rel.
- Seeds
- 16
Blocked by
Nothing: no deferred cases.
Report JSON (per-case results)
Dependencies
Depends on: nlib.crv_basic green nlib.crv_fit_p1 green nlib.knots green nlib.math green
Soft dependencies: nlib.basis_basic green nlib.funcs_basic green
Dependents: nlib.crv_fit_p3 green nlib.srf_adv_p5 green
Soft dependents: nlib.crv_approx green nlib.srf_adv_p1 green nurbs.b_spline_curve_n_lib green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
N_FitFuncInterpGivenParams | NL_CrvFit.cpp:1845 | 107 | [func_interp_given_params] |
N_FitCrvInterp | NL_CrvFit.cpp:2092 | 121 | [interp] |
N_FitCrvApproxLstSq | NL_CrvFit.cpp:4176 | 239 | [approx_lst_sq] |
N_FitCrvMatrix | NL_CrvFit.cpp:8618 | 63 | [cpts_with_matrix] |
N_FitCrvDerivMatrix | NL_CrvFit.cpp:11871 | 129 | [deriv_matrix] |
N_FitCrvWeightedLstSqKnots | NL_CrvFit.cpp:13320 | 645 | [weighted_lst_sq_knots], [WeightedData] |
N_FitCalcKnotsDerivs | NL_CrvFit.cpp:15978 | 63 | [knots_derivs] |
N_FitCalcKnotsHighEndDerivs | NL_CrvFit.cpp:16227 | 36 | [knots_high_end_derivs] |
N_FitCalcMatrix | NL_CrvFit.cpp:18191 | 183 | [calc_matrix], [MatrixEnds] |
Module file-header table (10 rows)
| Rust | Upstream |
|---|---|
[func_interp_given_params] | N_FitFuncInterpGivenParams |
[interp] | N_FitCrvInterp |
[approx_lst_sq] | N_FitCrvApproxLstSq |
[cpts_with_matrix] | N_FitCrvMatrix |
[deriv_matrix] | N_FitCrvDerivMatrix |
[weighted_lst_sq_knots], [WeightedData] | N_FitCrvWeightedLstSqKnots |
[knots_derivs] | N_FitCalcKnotsDerivs |
[knots_high_end_derivs] | N_FitCalcKnotsHighEndDerivs |
[calc_matrix], [MatrixEnds] | N_FitCalcMatrix (itp flag) |
[LstSqPoint] | NL_EPOINT / NL_HPOINT branches using N_RealMatrixMultiplyPtArray / N_RealMatrixMultiplyCPtArray, N_Diff2Pts / N_Diff2CPts |
Upstream tests reaching this unit
prog_test:my_test_surface_closest_point, prog_test:my_test_drop_point, prog_test:my_test_matrix, prog_test:my_test_reversed_line_join, SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon