solidcore

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 functionDefined atLinesRust (from the file header)
N_FitFuncInterpGivenParamsNL_CrvFit.cpp:1845107[func_interp_given_params]
N_FitCrvInterpNL_CrvFit.cpp:2092121[interp]
N_FitCrvApproxLstSqNL_CrvFit.cpp:4176239[approx_lst_sq]
N_FitCrvMatrixNL_CrvFit.cpp:861863[cpts_with_matrix]
N_FitCrvDerivMatrixNL_CrvFit.cpp:11871129[deriv_matrix]
N_FitCrvWeightedLstSqKnotsNL_CrvFit.cpp:13320645[weighted_lst_sq_knots], [WeightedData]
N_FitCalcKnotsDerivsNL_CrvFit.cpp:1597863[knots_derivs]
N_FitCalcKnotsHighEndDerivsNL_CrvFit.cpp:1622736[knots_high_end_derivs]
N_FitCalcMatrixNL_CrvFit.cpp:18191183[calc_matrix], [MatrixEnds]
Module file-header table (10 rows)
RustUpstream
[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