/dports/science/qmcpack/qmcpack-3.11.0/src/spline2/tests/ |
H A D | gen_bspline_values.py | 21 nknots = 5 27 m = nknots 51 delta = 1.0/nknots 56 print i%nknots,x,val 73 nknots = 5 84 m = nknots 135 delta = 1.0/nknots 150 mp = nknots + 3 202 nknots = 5 204 delta = 1.0/nknots [all …]
|
/dports/science/qmcpack/qmcpack-3.11.0/src/QMCWaveFunctions/tests/ |
H A D | gen_bspline_jastrow.py | 100 knots = [i*Delta for i in range(nknots)] 101 all_knots = [i*Delta*dummy for i in range(-3,nknots+3)] 102 rcut = (nknots-1)*Delta 113 c = IndexedBase('c',shape=(nknots+3)) 118 Delta_val = rcut_val*1.0/(nknots+1) 120 coeffs = np.zeros(nknots+4) 170 nknots = 10 172 gen_bspline_jastrow(nknots, rcut_val, param, cusp_val) 188 nknots = 8 190 gen_bspline_jastrow(nknots, rcut_val, param, cusp_val) [all …]
|
/dports/math/sisl/SISL-SISL-4.6.0-44-g9114631/src/ |
H A D | s1894.c | 56 int dimp1, int narr, double *nknots[], int *nik, int *nin, int *jstat) in s1894() argument 59 s1894 (oknots, oik, oin, der1, der2, earray, dimp1, narr, nknots, in s1894() 69 double *nknots[]; 161 (*nknots) = newarray ((oin + oik) * oik, DOUBLE); 162 if (*nknots == SISL_NULL) 241 (*nknots)[(*nin)++] = prev; 280 (*nknots)[(*nin)++] = prev; 286 (*nknots)[(*nin)++] = maximum; 292 *nknots = increasearray (*nknots, (*nik) + (*nin), DOUBLE); 293 if (*nknots == SISL_NULL)
|
H A D | s1893.c | 138 double *nknots = SISL_NULL; /* The new knot vector. */ local 163 &nknots, &nik, &nin, &kstat); 170 s1890 (nknots, nik, nin, &par, &der, &kstat); 246 s1891 (par, tau, narr, nin, narr, der, TRUE, nknots, &coef, &nin, 251 *ncurve = newCurve (nin, nik, nknots, coef, orig->ikind, narr, 2);
|
/dports/graphics/jogamp-jogl/jogl/src/jogl/classes/jogamp/opengl/glu/nurbs/ |
H A D | Knotvector.java | 88 public Knotvector(final int nknots, final int stride, final int order, final float[] knot) { in Knotvector() argument 90 init(nknots, stride, order, knot); in Knotvector() 105 public void init(final int nknots, final int stride, final int order, final float[] knot) { in init() argument 107 this.knotcount = nknots; in init() 110 this.knotlist = new float[nknots]; in init() 111 for (int i = 0; i < nknots; i++) { in init()
|
/dports/graphics/jogl/jogl-1.1.1_9/jogl/src/classes/com/sun/opengl/impl/nurbs/ |
H A D | Knotvector.java | 88 public Knotvector(int nknots, int stride, int order, float[] knot) { in Knotvector() argument 90 init(nknots, stride, order, knot); in Knotvector() 105 public void init(int nknots, int stride, int order, float[] knot) { in init() argument 107 this.knotcount = nknots; in init() 110 this.knotlist = new float[nknots]; in init() 111 for (int i = 0; i < nknots; i++) { in init()
|
/dports/math/R/R-4.1.2/src/library/stats/R/ |
H A D | smspline.R | 114 if(!missing(nknots) && !is.null(nknots)) 116 nknots <- length(all.knots) 122 rep(all.knots[nknots], 3)) 125 if(!missing(nknots) && !is.null(nknots)) 127 nknots <- nx 129 nknots <- .nknots.smspl(nx) 131 if(is.function(nknots)) 132 nknots <- nknots(nx) 133 else if(!is.numeric(nknots)) 135 if(nknots < 1) [all …]
|
/dports/math/libRmath/R-4.1.1/src/library/stats/R/ |
H A D | smspline.R | 114 if(!missing(nknots) && !is.null(nknots)) 116 nknots <- length(all.knots) 122 rep(all.knots[nknots], 3)) 125 if(!missing(nknots) && !is.null(nknots)) 127 nknots <- nx 129 nknots <- .nknots.smspl(nx) 131 if(is.function(nknots)) 132 nknots <- nknots(nx) 133 else if(!is.numeric(nknots)) 135 if(nknots < 1) [all …]
|
/dports/science/apbs/apbs-pdb2pqr-apbs-1.5-102-g500c1473/apbs/externals/fetk/sg/src/glu/ |
H A D | nurbscrv.c | 124 GLint nknots; in fill_knot_structures() local 129 nknots=geom_knot->nknots=nobj->curve.geom.knot_count; in fill_knot_structures() 133 t_max=geom_knot->t_max=nknots-order; in fill_knot_structures() 146 if(fabs(knot[t_max]-knot[nknots-1])<EPSILON) in fill_knot_structures() 157 nknots=color_knot->nknots=nobj->curve.color.knot_count; in fill_knot_structures() 161 t_max=color_knot->t_max=nknots-order; in fill_knot_structures() 174 if(fabs(knot[t_max]-knot[nknots-1])<EPSILON) in fill_knot_structures() 188 nknots=normal_knot->nknots=nobj->curve.normal.knot_count; in fill_knot_structures() 192 t_max=normal_knot->t_max=nknots-order; in fill_knot_structures() 219 nknots=texture_knot->nknots=nobj->curve.texture.knot_count; in fill_knot_structures() [all …]
|
H A D | nurbsutl.c | 41 for(i=1;i<nknots;i++) in test_knot() 153 if(geom_knot->nknots) in set_new_t_min_t_max() 155 cnt=geom_knot->nknots; in set_new_t_min_t_max() 223 max_nknots=geom_knot->nknots; in select_knot_working_range() 225 max_nknots+=color_knot->nknots; in select_knot_working_range() 227 max_nknots+=normal_knot->nknots; in select_knot_working_range() 233 if(max_nknots!=geom_knot->nknots) in select_knot_working_range() 244 for(i=0;i<geom_knot->nknots;i++) in select_knot_working_range() 366 GLint nknots,n_new_knots=0; in explode_knot() local 380 nknots=the_knot->nknots; in explode_knot() [all …]
|
H A D | nurbssrf.c | 296 GLint nknots; in fill_knot_structures() local 301 nknots=geom_s_knot->nknots=nobj->surface.geom.sknot_count; in fill_knot_structures() 305 t_max=geom_s_knot->t_max=nknots-order; in fill_knot_structures() 327 nknots=geom_t_knot->nknots=nobj->surface.geom.tknot_count; in fill_knot_structures() 331 t_max=geom_t_knot->t_max=nknots-order; in fill_knot_structures() 356 nknots=color_s_knot->nknots=nobj->surface.color.sknot_count; in fill_knot_structures() 382 nknots=color_t_knot->nknots=nobj->surface.color.tknot_count; in fill_knot_structures() 417 nknots=normal_s_knot->nknots=nobj->surface.normal.sknot_count; in fill_knot_structures() 443 nknots=normal_t_knot->nknots=nobj->surface.normal.tknot_count; in fill_knot_structures() 478 nknots=texture_s_knot->nknots=nobj->surface.texture.sknot_count; in fill_knot_structures() [all …]
|
/dports/science/qmcpack/qmcpack-3.11.0/src/QMCWaveFunctions/ |
H A D | SPOSetScanner.h | 118 int nknots(2); in scan_path() 125 aAttrib.add(nknots, "nknots"); in scan_path() 133 if (nknots < 2) in scan_path() 134 nknots = 2; in scan_path() 157 double Delta = 1.0 / (nknots - 1); in scan_path() 161 for (int icount = 0, ind = 0; icount < nknots; icount++, ind++) in scan_path() 199 << SPO_v_avg[iorb] * static_cast<RealType>(1.0 / nknots) << " " in scan_path() 203 << SPO_g_avg[iorb][0] * static_cast<RealType>(1.0 / nknots) << " " in scan_path() 204 << SPO_g_avg[iorb][1] * static_cast<RealType>(1.0 / nknots) << " " in scan_path() 205 << SPO_g_avg[iorb][2] * static_cast<RealType>(1.0 / nknots) << " " in scan_path() [all …]
|
/dports/math/R-cran-VGAM/VGAM/R/ |
H A D | vgam.match.q | 20 nknots <- rep(temp$nknots, nvar) functionVar 29 nknots[ii] <- temp$nknots 34 names(nknots) <- names(knots) <- 38 return(list(matcho = ooo, neffec = neffec, nknots = nknots, nameattr 87 return(list(matcho = ooo, neffec = neffec, nknots = nk, knots = knot, nameattr
|
H A D | vsmooth.spline.q | 315 nknots <- nk functionVar 322 if (length(nknots)) { 327 chosen <- length(nknots) 328 if (chosen && (nknots > neff+2 || nknots <= 5)) { 332 nknots <- 0 336 k = as.integer(nknots+4), 344 nknots <- knot.list$k - 4 346 if (nknots <= 5) { 425 n = as.integer(neff), nknots = as.integer(nknots), as.integer(ldk), 437 double(nknots), double(nknots), double(nknots), double(nknots), [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/Geom2d/ |
H A D | Geom2d_BSplineCurve.cxx | 248 Handle(TColStd_HArray1OfReal) nknots = in IncreaseDegree() 269 knots = nknots; in IncreaseDegree() 386 knots = nknots; in InsertKnots() 444 knots = nknots; in RemoveKnot() 537 knots = nknots; in InsertPoleAfter() 572 Handle(TColStd_HArray1OfReal) nknots = in RemovePole() 610 knots = nknots; in RemovePole() 779 knots = nknots; in Segment() 909 Handle(TColStd_HArray1OfReal) nknots = in SetOrigin() 970 knots = nknots; in SetOrigin() [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/Geom/ |
H A D | Geom_BSplineCurve.cxx | 250 Handle(TColStd_HArray1OfReal) nknots = in IncreaseDegree() 269 knots = nknots; in IncreaseDegree() 386 knots = nknots; in InsertKnots() 446 knots = nknots; in RemoveKnot() 626 nknots->ChangeValue(nknots->Lower()) = U1; in Segment() 628 nknots->ChangeValue(nknots->Upper()) = U1 + aDDU; in Segment() 633 knots = nknots; in Segment() 765 Handle(TColStd_HArray1OfReal) nknots = in SetOrigin() 826 knots = nknots; in SetOrigin() 894 Handle(TColStd_HArray1OfReal) nknots in SetNotPeriodic() [all …]
|
H A D | Geom_BSplineSurface_1.cxx | 933 Handle(TColStd_HArray1OfReal) nknots = in SetUOrigin() 1003 uknots = nknots; in SetUOrigin() 1031 Handle(TColStd_HArray1OfReal) nknots = in SetVOrigin() 1101 vknots = nknots; in SetVOrigin() 1123 Handle(TColStd_HArray1OfReal) nknots in SetUNotPeriodic() 1152 uknots = nknots; in SetUNotPeriodic() 1204 vknots = nknots; in SetVNotPeriodic() 1831 uknots = nknots; in InsertUKnots() 1898 vknots = nknots; in InsertVKnots() 1979 uknots = nknots; in RemoveUKnot() [all …]
|
/dports/math/gismo/gismo-21.12.0/src/gsNurbs/ |
H A D | gsBoehm.h | 327 newKnotsType& nknots, 345 nknots[j] = knots[j]; 348 nknots[j + nik] = knots[j]; 359 nknots[k] = knots[i]; 366 T alfa = nknots[k + ell] - newKnot; 368 alfa /= nknots[k + ell] - knots[i - p + ell]; 373 nknots[k] = newKnot;
|
H A D | gsBoehm.hpp | 187 std::vector<T> nknots(knots.size()+nk); in gsBoehmRefine() local 195 nknots[j] = knots[j]; in gsBoehmRefine() 198 nknots[j + nk] = knots[j]; in gsBoehmRefine() 211 nknots[k] = knots[i]; in gsBoehmRefine() 223 T alfa = nknots[k+l] - newKnot; in gsBoehmRefine() 229 alfa /= nknots[k+l]-knots[i-p+l]; in gsBoehmRefine() 234 nknots[k] = newKnot; in gsBoehmRefine() 239 knots = KnotVectorType(p, nknots.begin(), nknots.end()); in gsBoehmRefine() 404 std::vector<T> nknots(nk + nik); in gsTensorBoehmRefine() local 496 knots = KnotVectorType(p, nknots.begin(), nknots.end()); in gsTensorBoehmRefine() [all …]
|
/dports/math/ess/ess-18.10.2/etc/ |
H A D | R-ESS-bugs.R | 607 ss <- function (x, all.knots, nknots, ...) argument 610 if (!missing(nknots) && !is.null(nknots)) 612 nknots <- nx 613 } else if (is.null(nknots)) # <- for back compatibility 614 nknots <- .nknots.smspl(nx) 617 if (is.function(nknots)) 618 nknots <- nknots(nx) 619 else if (!is.numeric(nknots)) 621 if (nknots < 1) 623 else if (nknots > nx)
|
/dports/cad/opencascade/opencascade-7.6.0/src/Law/ |
H A D | Law_BSpline.cxx | 341 Handle(TColStd_HArray1OfReal) nknots = in IncreaseDegree() 370 knots = nknots; in IncreaseDegree() 500 knots = nknots; in InsertKnots() 550 nknots->ChangeArray1(), in RemoveKnot() 565 knots = nknots; in RemoveKnot() 706 knots = nknots; 755 Handle(TColStd_HArray1OfReal) nknots = 793 knots = nknots; 941 knots = nknots; in Segment() 1134 knots = nknots; in SetOrigin() [all …]
|
/dports/science/votca/votca-2021.2-18560-gfbe18d971/csg/csg-da5c1dc/src/libcsg/potentialfunctions/ |
H A D | potentialfunctioncbspl.cc | 43 Index nknots; in PotentialFunctionCBSPL() local 45 nknots = lam_.size(); in PotentialFunctionCBSPL() 47 nbreak_ = nknots - 2; in PotentialFunctionCBSPL() 54 rbreak_ = Eigen::VectorXd::Zero(nknots); in PotentialFunctionCBSPL() 56 for (Index i = 0; i < nknots; i++) { in PotentialFunctionCBSPL()
|
/dports/science/votca/votca-2021.2-18560-gfbe18d971/csg/src/libcsg/potentialfunctions/ |
H A D | potentialfunctioncbspl.cc | 43 Index nknots; 45 nknots = lam_.size(); 47 nbreak_ = nknots - 2; 54 rbreak_ = Eigen::VectorXd::Zero(nknots); 56 for (Index i = 0; i < nknots; i++) {
|
/dports/math/R/R-4.1.2/src/library/splines/src/ |
H A D | splines.c | 39 nknots, /* number of knots */ member 66 for (i = 0; i < sp->nknots; i++) { in set_cursor() 70 if (sp->curs > sp->nknots - sp->order) { in set_cursor() 71 int lastLegit = sp->nknots - sp->order; in set_cursor() 162 sp->knots = kk; sp->nknots = nk; in spline_value() 203 sp->knots = kk; sp->nknots = nk; in spline_basis()
|
/dports/math/libRmath/R-4.1.1/src/library/splines/src/ |
H A D | splines.c | 39 nknots, /* number of knots */ member 66 for (i = 0; i < sp->nknots; i++) { in set_cursor() 70 if (sp->curs > sp->nknots - sp->order) { in set_cursor() 71 int lastLegit = sp->nknots - sp->order; in set_cursor() 162 sp->knots = kk; sp->nknots = nk; in spline_value() 203 sp->knots = kk; sp->nknots = nk; in spline_basis()
|