/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bsta/tests/ |
H A D | test_k_means.cxx | 43 std::vector<vnl_vector_fixed<double, 3> > fpts(8, vnl_vector_fixed<double, 3>(0.0)); in test_k_means() local 44 fpts[0][0] = -1.0; fpts[0][1] = -1.0; fpts[0][2] = 0.0; in test_k_means() 45 fpts[1][0] = -1.0; fpts[1][1] = 1.0; fpts[1][2] = 0.0; in test_k_means() 46 fpts[2][0] = 1.0; fpts[2][1] = 1.0; fpts[2][2] = 0.0; in test_k_means() 47 fpts[3][0] = 1.0; fpts[2][1] = -1.0; fpts[3][2] = 0.0; in test_k_means() 49 fpts[4][0] = 4.0; fpts[4][1] = 4.0; fpts[4][2] = 0.0; in test_k_means() 50 fpts[5][0] = 4.0; fpts[5][1] = 6.0; fpts[5][2] = 0.0; in test_k_means() 51 fpts[6][0] = 6.0; fpts[6][1] = 6.0; fpts[6][2] = 0.0; in test_k_means() 52 fpts[7][0] = 6.0; fpts[7][1] = 4.0; fpts[7][2] = 0.0; in test_k_means() 56 n_iter = bsta_k_means<double>(fpts, k, &fcenters, &fpartition); in test_k_means() [all …]
|
/dports/net/thcrut/thcrut-1.2.5/src/ |
H A D | discover_main.c | 190 opt.fpts.cat[FP_CAT_NVT].size = opt.fpts.cat[FP_CAT_NVT].n_tests * FP_NTEST_SZ; in init_vars() 191 opt.fpts.cat[FP_CAT_SNMP].size = opt.fpts.cat[FP_CAT_SNMP].n_tests * FP_STEST_SZ; in init_vars() 194 …opt.fpts.cat[FP_CAT_TCP].size = opt.fpts.cat[FP_CAT_TCP].n_tests?opt.fpts.cat[FP_CAT_TCP].n_tests … in init_vars() 195 …opt.fpts.cat[FP_CAT_UDP].size = opt.fpts.cat[FP_CAT_UDP].n_tests?opt.fpts.cat[FP_CAT_UDP].n_tests … in init_vars() 197 for (i = 0; i < sizeof opt.fpts.cat / sizeof *opt.fpts.cat; i++) in init_vars() 200 opt.fpts.ofs_test_tcp = 0; in init_vars() 201 opt.fpts.ofs_test_udp = opt.fpts.ofs_test_tcp + opt.fpts.cat[FP_CAT_TCP].size; in init_vars() 202 opt.fpts.ofs_test_banner = opt.fpts.ofs_test_udp + opt.fpts.cat[FP_CAT_UDP].size; in init_vars() 203 opt.fpts.ofs_test_www = opt.fpts.ofs_test_banner + opt.fpts.cat[FP_CAT_BANNER].size; in init_vars() 204 opt.fpts.ofs_test_snmp = opt.fpts.ofs_test_www + opt.fpts.cat[FP_CAT_WWW].size; in init_vars() [all …]
|
H A D | fp.c | 211 fpts->strings = realloc(fpts->strings, size); in FP_TS_load() 290 tests = fpts->cat[FP_CAT_TCP].tests; in FP_TS_addtest() 295 tests = fpts->cat[FP_CAT_UDP].tests; in FP_TS_addtest() 300 tests = fpts->cat[FP_CAT_WWW].tests; in FP_TS_addtest() 315 tests = fpts->cat[FP_CAT_NVT].tests; in FP_TS_addtest() 330 fpts->n_tests++; in FP_TS_addtest() 494 if (!fpts->fps) in FP_addline() 495 fpts->fps = myfp; in FP_addline() 507 FP_TS_dump(struct _fp_testsuite *fpts) in FP_TS_dump() argument 510 struct _fp *fp = fpts->fps; in FP_TS_dump() [all …]
|
H A D | discover_dispatch.c | 117 if (state->cat >= sizeof opt.fpts.cat / sizeof *opt.fpts.cat) in fp_state_next_switch() 122 if (opt.fpts.cat[state->cat].n_tests == 0) in fp_state_next_switch() 884 #define FP_TEST_TCP_PTR(fpts, res) ((res) + (fpts)->ofs_test_tcp) argument 885 #define FP_TEST_UDP_PTR(fpts, res) ((res) + (fpts)->ofs_test_udp) argument 886 #define FP_TEST_SNMP_PTR(fpts, res) ((res) + (fpts)->ofs_test_snmp) argument 887 #define FP_TEST_NVT_PTR(fpts, res) ((res) + (fpts)->ofs_test_nvt) argument 902 if (opt.fpts.cat[FP_CAT_TCP].n_tests > 0) in fp_output() 910 if (opt.fpts.cat[FP_CAT_UDP].n_tests > 0) in fp_output() 925 …printf("%dW=\"%s\"\n", opt.fpts.cat[FP_CAT_WWW].tests[n].port, results + opt.fpts.ofs_test_www + n… in fp_output() 946 struct _fp *fp = opt.fpts.fps; [all …]
|
/dports/cad/ngspice_rework/ngspice-35/src/frontend/ |
H A D | com_fft.c | 65 fpts = length/2 + 1; in com_fft() 74 fpts = N/2 + 1; in com_fft() 134 fpts, NULL); in com_fft() 138 for (i = 0; i<fpts; i++) in com_fft() 295 fpts = length/2 + 1; 304 fpts = N/2 + 1; 364 fpts, NULL); 368 for (i = 0; i < fpts; i++) 424 fdvec[i][fpts-1].cx_real = out[fpts-1][0]*out[fpts-1][0]/intres; 487 for (j = fpts-hsmooth; j < fpts; j++) { [all …]
|
H A D | spec.c | 29 int fpts, i, j, k, tlen, ngood; in com_spec() local 79 fpts = (int)((stopf - startf)/stepf + 1.); in com_spec() 80 if (stopf > startf + (fpts-1)*stepf) in com_spec() 81 fpts++; in com_spec() 210 fpts, NULL); in com_spec() 221 fpts, NULL); in com_spec() 239 for (j = (startf == 0 ? 1 : 0); j < fpts; j++) { in com_spec() 261 SetAnalyse("spec", (int)(j * 1000./ fpts)); in com_spec()
|
/dports/graphics/opencv/opencv-4.5.3/modules/calib3d/test/ |
H A D | test_affine2d_estimator.cpp | 59 Mat fpts(1, 3, CV_32FC2); in TEST_P() local 63 fpts.at<Point2f>(0) = Point2f( rngIn(1,2), rngIn(5,6) ); in TEST_P() 67 transform(fpts, tpts, aff); in TEST_P() 97 Mat fpts(1, n, CV_32FC2); in TEST_P() local 100 randu(fpts, 0., 100.); in TEST_P() 101 transform(fpts, tpts, aff); in TEST_P() 131 std::vector<Point> fpts(3); in TEST_P() local 135 fpts[0] = Point2f( rngIn(1,2), rngIn(5,6) ); in TEST_P() 136 fpts[1] = Point2f( rngIn(3,4), rngIn(3,4) ); in TEST_P() 137 fpts[2] = Point2f( rngIn(1,2), rngIn(3,4) ); in TEST_P() [all …]
|
H A D | test_translation3d_estimator.cpp | 17 Mat fpts(1, 4, CV_32FC3); in TEST() local 21 …fpts.at<Point3f>(0) = Point3f(rng.uniform(1.0f, 2.0f), rng.uniform(1.0f, 2.0f), rng.uniform(5.0f, … in TEST() 22 …fpts.at<Point3f>(1) = Point3f(rng.uniform(3.0f, 4.0f), rng.uniform(3.0f, 4.0f), rng.uniform(5.0f, … in TEST() 23 …fpts.at<Point3f>(2) = Point3f(rng.uniform(1.0f, 2.0f), rng.uniform(3.0f, 4.0f), rng.uniform(5.0f, … in TEST() 24 …fpts.at<Point3f>(3) = Point3f(rng.uniform(3.0f, 4.0f), rng.uniform(1.0f, 2.0f), rng.uniform(5.0f, … in TEST() 26 std::transform(fpts.ptr<Point3f>(), fpts.ptr<Point3f>() + 4, tpts.ptr<Point3f>(), in TEST() 37 int res = estimateTranslation3D(fpts, tpts, trans_est, outliers); in TEST() 59 Mat fpts(1, n, CV_32FC3); in TEST() local 62 randu(fpts, Scalar::all(0), Scalar::all(100)); in TEST() 63 std::transform(fpts.ptr<Point3f>(), fpts.ptr<Point3f>() + n, tpts.ptr<Point3f>(), in TEST() [all …]
|
H A D | test_affine_partial2d_estimator.cpp | 71 Mat fpts(1, 2, CV_32FC2); in TEST_P() local 74 fpts.at<Point2f>(0) = Point2f( rngIn(1,2), rngIn(5,6) ); in TEST_P() 77 transform(fpts, tpts, aff); in TEST_P() 107 Mat fpts(1, n, CV_32FC2); in TEST_P() local 110 randu(fpts, 0., 100.); in TEST_P() 111 transform(fpts, tpts, aff); in TEST_P() 141 std::vector<Point> fpts(3); in TEST_P() local 144 fpts[0] = Point2f( rngIn(1,2), rngIn(5,6) ); in TEST_P() 145 fpts[1] = Point2f( rngIn(3,4), rngIn(3,4) ); in TEST_P() 146 fpts[2] = Point2f( rngIn(1,2), rngIn(3,4) ); in TEST_P() [all …]
|
H A D | test_affine3d_estimator.cpp | 87 Mat fpts(1, 4, CV_32FC3); in test4Points() local 90 fpts.ptr<Point3f>()[0] = Point3f( rngIn(1,2), rngIn(1,2), rngIn(5, 6) ); in test4Points() 91 fpts.ptr<Point3f>()[1] = Point3f( rngIn(3,4), rngIn(3,4), rngIn(5, 6) ); in test4Points() 92 fpts.ptr<Point3f>()[2] = Point3f( rngIn(1,2), rngIn(3,4), rngIn(5, 6) ); in test4Points() 93 fpts.ptr<Point3f>()[3] = Point3f( rngIn(3,4), rngIn(1,2), rngIn(5, 6) ); in test4Points() 95 std::transform(fpts.ptr<Point3f>(), fpts.ptr<Point3f>() + 4, tpts.ptr<Point3f>(), WrapAff(aff)); in test4Points() 99 estimateAffine3D(fpts, tpts, aff_est, outliers); in test4Points() 134 Mat fpts(1, n, CV_32FC3); in testNPoints() local 137 randu(fpts, Scalar::all(0), Scalar::all(100)); in testNPoints() 138 std::transform(fpts.ptr<Point3f>(), fpts.ptr<Point3f>() + n, tpts.ptr<Point3f>(), WrapAff(aff)); in testNPoints() [all …]
|
/dports/science/simbody/simbody-Simbody-3.7/SimTKmath/tests/ |
H A D | TestGeo.cpp | 121 Array_<fVec3> fpts; in testRandomPoints() local 144 checkSphere(fbs, fpts); in testRandomPoints() 149 checkSphere(fas, fpts); in testRandomPoints() 196 Array_<fVec3> fpts; in testCollinearPoints() local 222 checkSphere(fbs, fpts); in testCollinearPoints() 227 checkSphere(fas, fpts); in testCollinearPoints() 250 checkSphere(fbs, fpts); in testCollinearPoints() 254 checkSphere(fas, fpts); in testCollinearPoints() 266 Array_<fVec3> fpts; in testCollocatedPoints() local 284 checkSphere(fbs, fpts); in testCollocatedPoints() [all …]
|
/dports/graphics/opencv/opencv-4.5.3/modules/calib3d/perf/ |
H A D | perf_affine2d.cpp | 87 Mat fpts(1, n, CV_32FC2); in PERF_TEST_P() local 90 randu(fpts, 0., 100.); in PERF_TEST_P() 91 transform(fpts, tpts, aff); in PERF_TEST_P() 105 warmup(fpts, WARMUP_READ); in PERF_TEST_P() 110 aff_est = estimateAffine2D(fpts, tpts, inliers, method, 3, 2000, confidence, refining); in PERF_TEST_P() 135 Mat fpts(1, n, CV_32FC2); in PERF_TEST_P() local 138 randu(fpts, 0., 100.); in PERF_TEST_P() 139 transform(fpts, tpts, aff); in PERF_TEST_P() 153 warmup(fpts, WARMUP_READ); in PERF_TEST_P() 158 … aff_est = estimateAffinePartial2D(fpts, tpts, inliers, method, 3, 2000, confidence, refining); in PERF_TEST_P()
|
/dports/science/cantera/cantera-2.5.1-611-gc4d6ecc15/src/numerics/ |
H A D | funcs.cpp | 14 const vector_fp& fpts) in linearInterp() argument 17 return fpts[0]; in linearInterp() 20 return fpts.back(); in linearInterp() 24 doublereal ff = fpts[iloc] + in linearInterp() 25 (x - xpts[iloc])*(fpts[iloc + 1] in linearInterp() 26 - fpts[iloc])/(xpts[iloc + 1] - xpts[iloc]); in linearInterp()
|
/dports/print/ghostscript7-base/ghostscript-7.07/src/ |
H A D | gstype1.c | 415 #define fpts pcis->flex_points in gs_type1_interpret() macro 445 gx_path_add_point(sppath, fpts[0].x, fpts[0].y); in gs_type1_interpret() 450 hpt.x = fpts[1].x - fpts[4].x; in gs_type1_interpret() 451 hpt.y = fpts[1].y - fpts[4].y; in gs_type1_interpret() 467 fpts[2].x, fpts[2].y, in gs_type1_interpret() 468 fpts[3].x, fpts[3].y, in gs_type1_interpret() 469 fpts[4].x, fpts[4].y); in gs_type1_interpret() 473 fpts[5].x, fpts[5].y, in gs_type1_interpret() 474 fpts[6].x, fpts[6].y, in gs_type1_interpret() 475 fpts[7].x, fpts[7].y); in gs_type1_interpret() [all …]
|
/dports/print/ghostscript7-x11/ghostscript-7.07/src/ |
H A D | gstype1.c | 415 #define fpts pcis->flex_points in gs_type1_interpret() macro 445 gx_path_add_point(sppath, fpts[0].x, fpts[0].y); in gs_type1_interpret() 450 hpt.x = fpts[1].x - fpts[4].x; in gs_type1_interpret() 451 hpt.y = fpts[1].y - fpts[4].y; in gs_type1_interpret() 467 fpts[2].x, fpts[2].y, in gs_type1_interpret() 468 fpts[3].x, fpts[3].y, in gs_type1_interpret() 469 fpts[4].x, fpts[4].y); in gs_type1_interpret() 473 fpts[5].x, fpts[5].y, in gs_type1_interpret() 474 fpts[6].x, fpts[6].y, in gs_type1_interpret() 475 fpts[7].x, fpts[7].y); in gs_type1_interpret() [all …]
|
/dports/cad/ngspice_rework/ngspice-35/src/maths/cmaths/ |
H A D | cmath4.c | 518 int i, fpts, order; in cx_fft() local 552 fpts = length; in cx_fft() 554 fpts = length/2 + 1; in cx_fft() 564 fpts = N; in cx_fft() 566 fpts = N/2 + 1; in cx_fft() 612 for (i = 0; i < fpts; i++) in cx_fft() 662 *newlength = fpts; in cx_fft() 663 outdata = alloc_c(fpts); in cx_fft() 665 scale = (double) fpts; in cx_fft() 707 *newlength = fpts; in cx_fft() [all …]
|
/dports/graphics/darktable38/darktable-3.8.0/src/develop/masks/ |
H A D | group.c | 153 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_events_mouse_moved() local 155 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_events_mouse_moved() 195 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in dt_group_events_post_expose() local 197 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in dt_group_events_post_expose() 263 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_get_mask() local 265 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_get_mask() 601 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_get_mask_roi() local 603 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_get_mask_roi() 685 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_setup_mouse_actions() local 687 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_setup_mouse_actions()
|
/dports/graphics/darktable/darktable-3.6.1/src/develop/masks/ |
H A D | group.c | 153 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_events_mouse_moved() local 155 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_events_mouse_moved() 195 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in dt_group_events_post_expose() local 197 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in dt_group_events_post_expose() 263 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_get_mask() local 265 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_get_mask() 604 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_get_mask_roi() local 606 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_get_mask_roi() 686 for(GList *fpts = form->points; fpts; fpts = g_list_next(fpts)) in _group_setup_mouse_actions() local 688 dt_masks_point_group_t *fpt = (dt_masks_point_group_t *)fpts->data; in _group_setup_mouse_actions()
|
/dports/graphics/opencv/opencv-4.5.3/modules/video/test/ |
H A D | test_estimaterigid.cpp | 101 Mat fpts(1, n, CV_32FC2); in testNPoints() local 104 rng.fill(fpts, RNG::UNIFORM, Scalar(0,0), Scalar(10,10)); in testNPoints() 105 … std::transform(fpts.ptr<Point2f>(), fpts.ptr<Point2f>() + n, tpts.ptr<Point2f>(), WrapAff2D(aff)); in testNPoints() 111 Mat aff_est = estimateRigidTransform(fpts, tpts, true); in testNPoints() 120 Mat A = fpts.reshape(1, 3); in testNPoints()
|
/dports/cad/gmsh/gmsh-4.9.2-source/contrib/Netgen/libsrc/visualization/ |
H A D | vsmesh.cpp | 1939 fpts[j] += (1-vispar.shrink) * (c-fpts[j]); in BuildTetList() 1951 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildTetList() 2123 fpts[j] += (1-vispar.shrink) * (c-fpts[j]); in BuildPrismList() 2135 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPrismList() 2182 lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPrismList() 2183 lami[2] * fpts[2](l) + lami[3] * fpts[3](l); in BuildPrismList() 2521 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildHexList() 2522 lami[2] * fpts[2](l) + lami[3] * fpts[3](l); in BuildHexList() 2669 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPyramidList() 2716 lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPyramidList() [all …]
|
/dports/science/py-obspy/obspy-1.2.2/obspy/signal/src/evalresp/ |
H A D | evtest.f | 56 fpts = 100. 57 df = (alog10(fhigh) - alog10(flow) ) / (fpts-1) 78 do 30 i=1,fpts
|
/dports/x11-wm/pwm/pwm-20070720/ |
H A D | draw.c | 124 XPoint fpts[5]; in draw_xor_frame() local 144 fpts[0].x=x; in draw_xor_frame() 145 fpts[0].y=y+bar_h; in draw_xor_frame() 146 fpts[1].x=x+w; in draw_xor_frame() 147 fpts[1].y=y+bar_h; in draw_xor_frame() 148 fpts[2].x=x+w; in draw_xor_frame() 149 fpts[2].y=y+h; in draw_xor_frame() 150 fpts[3].x=x; in draw_xor_frame() 151 fpts[3].y=y+h; in draw_xor_frame() 152 fpts[4].x=x; in draw_xor_frame() [all …]
|
/dports/math/gismo/gismo-21.12.0/src/gsAssembler/ |
H A D | gsDirichletValues.h | 83 gsMatrix<T> fpts, tmp; in gsDirichletValuesByTPInterpolation() local 146 fpts = it->function()->piece(it->patch()).eval( gsPointGrid<T>( rr ) ); in gsDirichletValuesByTPInterpolation() 150 …fpts = it->function()->piece(it->patch()).eval( gmap.piece(it->patch()).eval( gsPointGrid<T>( rr… in gsDirichletValuesByTPInterpolation() 155 typename gsGeometry<T>::uPtr geo = h->interpolateAtAnchors(fpts); in gsDirichletValuesByTPInterpolation() 183 gsMatrix<T> fpts, tmp; in gsDirichletValuesInterpolationTP() local 230 fpts = bc.function()->eval( gsPointGrid<T>( rr ) ); in gsDirichletValuesInterpolationTP() 234 fpts = bc.function()->eval( gmap.piece(bc.patch()).eval( gsPointGrid<T>( rr ) ) ); in gsDirichletValuesInterpolationTP() 251 typename gsGeometry<T>::uPtr geo = h->interpolateAtAnchors(fpts); in gsDirichletValuesInterpolationTP()
|
/dports/cad/netgen/netgen-6.2.2105/libsrc/visualization/ |
H A D | vsmesh.cpp | 1972 fpts[j] += (1-vispar.shrink) * (c-fpts[j]); in BuildTetList() 1984 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildTetList() 2177 fpts[j] += (1-vispar.shrink) * (c-fpts[j]); in BuildPrismList() 2189 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPrismList() 2236 lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPrismList() 2237 lami[2] * fpts[2](l) + lami[3] * fpts[3](l); in BuildPrismList() 2577 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildHexList() 2578 lami[2] * fpts[2](l) + lami[3] * fpts[3](l); in BuildHexList() 2727 xl(l) = lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPyramidList() 2774 lami[0] * fpts[0](l) + lami[1] * fpts[1](l) + in BuildPyramidList() [all …]
|
/dports/audio/snack/snack2.2.10/generic/ |
H A D | jkCanvWave.c | 1254 XPoint fpts[5]; in DisplayWave() local 1285 &fpts[0].x, &fpts[0].y); in DisplayWave() 1288 &fpts[1].x, &fpts[1].y); in DisplayWave() 1291 &fpts[2].x, &fpts[2].y); in DisplayWave() 1298 &fpts[0].x, &fpts[0].y); in DisplayWave() 1301 &fpts[1].x, &fpts[1].y); in DisplayWave() 1307 &fpts[0].x, &fpts[0].y); in DisplayWave() 1310 &fpts[1].x, &fpts[1].y); in DisplayWave() 1313 &fpts[2].x, &fpts[2].y); in DisplayWave() 1316 &fpts[3].x, &fpts[3].y); in DisplayWave() [all …]
|