Home
last modified time | relevance | path

Searched refs:SQR (Results 51 – 75 of 1451) sorted by relevance

12345678910>>...59

/dports/graphics/photivo/photivo/ReferenceMaterial/RawTherapee/
H A Dgreen_equil_RT.cc24 #define SQR(x) ((x)*(x)) macro
136 gdiffh[indx] = SQR((gl-gr)/(eps+gl+gr)); in green_equilibrate()
137 gdiffv[indx] = SQR((gu-gd)/(eps+gu+gd)); in green_equilibrate()
169 wtse=1/(eps+SQR(cfa[indx+m2]-cfa[indx])+SQR(cfa[indx+m3]-cfa[indx+m1])); in green_equilibrate()
170 wtnw=1/(eps+SQR(cfa[indx-m2]-cfa[indx])+SQR(cfa[indx-m3]-cfa[indx-m1])); in green_equilibrate()
171 wtne=1/(eps+SQR(cfa[indx+p2]-cfa[indx])+SQR(cfa[indx+p3]-cfa[indx+p1])); in green_equilibrate()
172 wtsw=1/(eps+SQR(cfa[indx-p2]-cfa[indx])+SQR(cfa[indx-p3]-cfa[indx-p1])); in green_equilibrate()
H A Damaze_interpolate_RT - 20100531.cc31 #define SQR(x) ((x)*(x)) in amaze_demosaic_RT() macro
328 Dgrbpsq1[indx]=(SQR(cfa[indx]-cfa[indx-p1])+SQR(cfa[indx]-cfa[indx+p1])); in amaze_demosaic_RT()
329 Dgrbmsq1[indx]=(SQR(cfa[indx]-cfa[indx-m1])+SQR(cfa[indx]-cfa[indx+m1])); in amaze_demosaic_RT()
382 dgintv[indx]=MIN(SQR(guha-gdha),SQR(guar-gdar)); in amaze_demosaic_RT()
383 dginth[indx]=MIN(SQR(glha-grha),SQR(glar-grar)); in amaze_demosaic_RT()
393 …hcdvar = 3*(SQR(hcd[indx-2])+SQR(hcd[indx])+SQR(hcd[indx+2]))-SQR(hcd[indx-2]+hcd[indx]+hcd[indx+2… in amaze_demosaic_RT()
394 …hcdaltvar = 3*(SQR(hcdalt[indx-2])+SQR(hcdalt[indx])+SQR(hcdalt[indx+2]))-SQR(hcdalt[indx-2]+hcdal… in amaze_demosaic_RT()
395 …vcdvar = 3*(SQR(vcd[indx-v2])+SQR(vcd[indx])+SQR(vcd[indx+v2]))-SQR(vcd[indx-v2]+vcd[indx]+vcd[ind… in amaze_demosaic_RT()
396 …vcdaltvar = 3*(SQR(vcdalt[indx-v2])+SQR(vcdalt[indx])+SQR(vcdalt[indx+v2]))-SQR(vcdalt[indx-v2]+vc… in amaze_demosaic_RT()
523 sumsqh += 0.5*(SQR(cfa[indx1]-cfa[indx1-1])+SQR(cfa[indx1]-cfa[indx1+1])); in amaze_demosaic_RT()
[all …]
H A Damaze_interpolate_RT - 20100611.cc31 #define SQR(x) ((x)*(x)) in amaze_demosaic_RT() macro
328 Dgrbpsq1[indx]=(SQR(cfa[indx]-cfa[indx-p1])+SQR(cfa[indx]-cfa[indx+p1])); in amaze_demosaic_RT()
329 Dgrbmsq1[indx]=(SQR(cfa[indx]-cfa[indx-m1])+SQR(cfa[indx]-cfa[indx+m1])); in amaze_demosaic_RT()
382 dgintv[indx]=MIN(SQR(guha-gdha),SQR(guar-gdar)); in amaze_demosaic_RT()
383 dginth[indx]=MIN(SQR(glha-grha),SQR(glar-grar)); in amaze_demosaic_RT()
393 …hcdvar = 3*(SQR(hcd[indx-2])+SQR(hcd[indx])+SQR(hcd[indx+2]))-SQR(hcd[indx-2]+hcd[indx]+hcd[indx+2… in amaze_demosaic_RT()
394 …hcdaltvar = 3*(SQR(hcdalt[indx-2])+SQR(hcdalt[indx])+SQR(hcdalt[indx+2]))-SQR(hcdalt[indx-2]+hcdal… in amaze_demosaic_RT()
395 …vcdvar = 3*(SQR(vcd[indx-v2])+SQR(vcd[indx])+SQR(vcd[indx+v2]))-SQR(vcd[indx-v2]+vcd[indx]+vcd[ind… in amaze_demosaic_RT()
396 …vcdaltvar = 3*(SQR(vcdalt[indx-v2])+SQR(vcdalt[indx])+SQR(vcdalt[indx+v2]))-SQR(vcdalt[indx-v2]+vc… in amaze_demosaic_RT()
523 sumsqh += 0.5*(SQR(cfa[indx1]-cfa[indx1-1])+SQR(cfa[indx1]-cfa[indx1+1])); in amaze_demosaic_RT()
[all …]
/dports/graphics/photivo/photivo/Sources/rawtherapee/
H A Dgreen_equil.c9 #define SQR(x) ((x)*(x)) macro
110 gdiffh[indx] = SQR((gl-gr)/(eps+gl+gr)); in green_equilibrate()
111 gdiffv[indx] = SQR((gu-gd)/(eps+gu+gd)); in green_equilibrate()
143 wtse=1/(eps+SQR(cfa[indx+m2]-cfa[indx])+SQR(cfa[indx+m3]-cfa[indx+m1])); in green_equilibrate()
144 wtnw=1/(eps+SQR(cfa[indx-m2]-cfa[indx])+SQR(cfa[indx-m3]-cfa[indx-m1])); in green_equilibrate()
145 wtne=1/(eps+SQR(cfa[indx+p2]-cfa[indx])+SQR(cfa[indx+p3]-cfa[indx+p1])); in green_equilibrate()
146 wtsw=1/(eps+SQR(cfa[indx-p2]-cfa[indx])+SQR(cfa[indx-p3]-cfa[indx-p1])); in green_equilibrate()
/dports/emulators/x16-rom/x16-rom-r38/test/fp/
H A Dmath.bas6 1010 PRINT SQR(0)
7 1020 PRINT SQR(1)
8 1030 PRINT SQR(2)
9 1040 PRINT SQR(3)
10 1050 PRINT SQR(4)
11 1060 PRINT SQR(5)
12 1070 PRINT SQR(100000000)
13 1080 PRINT SQR(1E36)
14 1090 PRINT SQR(1E-36)
/dports/graphics/gimp-app/gimp-2.10.30/app/gegl/
H A Dgimp-gegl-mask-combine.cc193 return sqrt (MAX (SQR (rx) - SQR (rx * v / ry), 0.0)); in gimp_gegl_mask_combine_ellipse_rect()
202 return sqrt (MAX (SQR (ry) - SQR (ry * u / rx), 0.0)); in gimp_gegl_mask_combine_ellipse_rect()
237 t = SQR (du) / (SQR (du) + SQR (dv)); in gimp_gegl_mask_combine_ellipse_rect()
245 a = SQR (du) + SQR (dv); in gimp_gegl_mask_combine_ellipse_rect()
247 c = SQR (u) + SQR (v) - SQR (rx); in gimp_gegl_mask_combine_ellipse_rect()
253 t = (-b + sqrt (MAX (SQR (b) - a * c, 0.0))) / a; in gimp_gegl_mask_combine_ellipse_rect()
255 t = (-b - sqrt (MAX (SQR (b) - a * c, 0.0))) / a; in gimp_gegl_mask_combine_ellipse_rect()
259 d = sqrt (SQR (du * t) + SQR (dv * t)); in gimp_gegl_mask_combine_ellipse_rect()
264 d /= sqrt (SQR (MIN (du / dv, dv / du)) + 1.0); in gimp_gegl_mask_combine_ellipse_rect()
/dports/graphics/art/ART-1.9.3/rtengine/
H A Dlmmse_demosaic.cc337 …at vx = 1e-7 + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 -… in lmmse_interpolate_omp()
347 …float vn = 1e-7 + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + in lmmse_interpolate_omp()
362 …vx = 1e-7 + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 - mu… in lmmse_interpolate_omp()
372 …vn = 1e-7 + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + SQR(p9… in lmmse_interpolate_omp()
H A Dlensexif.cc257 r_ = 1 / std::sqrt(SQR(w2_) + SQR(h2_)); in ExifLensCorrection()
369 float m_d = std::sqrt(SQR(mx_d) + SQR(my_d)); in ExifLensCorrection()
372 float m_v = std::sqrt(SQR(mx_v) + SQR(my_v)); in ExifLensCorrection()
412 float dr = interpolate(knots_, dist_, r_ * std::sqrt(SQR(ccx) + SQR(ccy))); in correctDistortion()
437 const float dx2 = SQR(dx); in correctDistortion()
438 const float dy2 = SQR(dy); in correctDistortion()
479 float dr = interpolate(knots_, ca_[channel], r_ * std::sqrt(SQR(ccx) + SQR(ccy))); in correctCA()
503 float sf = interpolate(knots_, vig_, r_ * std::sqrt(SQR(cx) + SQR(cy))); in processVignette()
504 rawData[y][x] /= SQR(sf); in processVignette()
510 const float m2 = 1.f / SQR(knots_[5]); in processVignette()
[all …]
/dports/graphics/librtprocess/librtprocess-0.11.0/src/demosaic/
H A Dlmmse.cc473 …t vx = 1e-7f + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 -… in lmmse_demosaic()
483 …float vn = 1e-7f + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) +… in lmmse_demosaic()
498 …vx = 1e-7f + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 - m… in lmmse_demosaic()
508 …vn = 1e-7f + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + SQR(p… in lmmse_demosaic()
H A Digv.cc235SQR(vdif[indx1]) + 69.f * (SQR(vdif[indx1 - v1]) + SQR(vdif[indx1 + v1])) + 51.f * (SQR(vdif[indx1… in igv_demosaic()
236SQR(vdif[indx1 - v2] + vdif[indx1 - v1] + vdif[indx1]) + SQR(vdif[indx1] + vdif[indx1 + v1] + vdif… in igv_demosaic()
237SQR(hdif[indx1]) + 69.f * (SQR(hdif[indx1 - h1]) + SQR(hdif[indx1 + h1])) + 51.f * (SQR(hdif[indx1… in igv_demosaic()
238SQR(hdif[indx1 - h2] + hdif[indx1 - h1] + hdif[indx1]) + SQR(hdif[indx1] + hdif[indx1 + h1] + hdif… in igv_demosaic()
554SQR(vdif[indx >> 1]) + 69.f * (SQR(vdif[(indx - v2) >> 1]) + SQR(vdif[(indx + v2) >> 1])) + 51.f *… in igv_demosaic()
555SQR(vdif[(indx - v4) >> 1] + vdif[(indx - v2) >> 1] + vdif[indx >> 1]) + SQR(vdif[indx >> 1] + vdi… in igv_demosaic()
556SQR(hdif[indx >> 1]) + 69.f * (SQR(hdif[(indx - h2) >> 1]) + SQR(hdif[(indx + h2) >> 1])) + 51.f *… in igv_demosaic()
557SQR(hdif[(indx - h4) >> 1] + hdif[(indx - h2) >> 1] + hdif[indx >> 1]) + SQR(hdif[indx >> 1] + hdi… in igv_demosaic()
/dports/astro/siril/siril/subprojects/librtprocess/src/demosaic/
H A Dlmmse.cc473 …t vx = 1e-7f + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 -… in lmmse_demosaic()
483 …float vn = 1e-7f + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) +… in lmmse_demosaic()
498 …vx = 1e-7f + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 - m… in lmmse_demosaic()
508 …vn = 1e-7f + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + SQR(p… in lmmse_demosaic()
H A Digv.cc235SQR(vdif[indx1]) + 69.f * (SQR(vdif[indx1 - v1]) + SQR(vdif[indx1 + v1])) + 51.f * (SQR(vdif[indx1… in igv_demosaic()
236SQR(vdif[indx1 - v2] + vdif[indx1 - v1] + vdif[indx1]) + SQR(vdif[indx1] + vdif[indx1 + v1] + vdif… in igv_demosaic()
237SQR(hdif[indx1]) + 69.f * (SQR(hdif[indx1 - h1]) + SQR(hdif[indx1 + h1])) + 51.f * (SQR(hdif[indx1… in igv_demosaic()
238SQR(hdif[indx1 - h2] + hdif[indx1 - h1] + hdif[indx1]) + SQR(hdif[indx1] + hdif[indx1 + h1] + hdif… in igv_demosaic()
554SQR(vdif[indx >> 1]) + 69.f * (SQR(vdif[(indx - v2) >> 1]) + SQR(vdif[(indx + v2) >> 1])) + 51.f *… in igv_demosaic()
555SQR(vdif[(indx - v4) >> 1] + vdif[(indx - v2) >> 1] + vdif[indx >> 1]) + SQR(vdif[indx >> 1] + vdi… in igv_demosaic()
556SQR(hdif[indx >> 1]) + 69.f * (SQR(hdif[(indx - h2) >> 1]) + SQR(hdif[(indx + h2) >> 1])) + 51.f *… in igv_demosaic()
557SQR(hdif[(indx - h4) >> 1] + hdif[(indx - h2) >> 1] + hdif[indx >> 1]) + SQR(hdif[indx >> 1] + hdi… in igv_demosaic()
/dports/graphics/photoflow/PhotoFlow-8472024f/src/external/librtprocess/src/demosaic/
H A Dlmmse.cc473 …t vx = 1e-7f + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 -… in lmmse_demosaic()
483 …float vn = 1e-7f + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) +… in lmmse_demosaic()
498 …vx = 1e-7f + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 - m… in lmmse_demosaic()
508 …vn = 1e-7f + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + SQR(p… in lmmse_demosaic()
/dports/graphics/rawtherapee/rawtherapee-5.8/rtengine/
H A Dlmmse_demosaic.cc337 …at vx = 1e-7 + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 -… in lmmse_interpolate_omp()
347 …float vn = 1e-7 + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + in lmmse_interpolate_omp()
362 …vx = 1e-7 + SQR(p1 - mu) + SQR(p2 - mu) + SQR(p3 - mu) + SQR(p4 - mu) + SQR(p5 - mu) + SQR(p6 - mu… in lmmse_interpolate_omp()
372 …vn = 1e-7 + SQR(p1) + SQR(p2) + SQR(p3) + SQR(p4) + SQR(p5) + SQR(p6) + SQR(p7) + SQR(p8) + SQR(p9… in lmmse_interpolate_omp()
/dports/audio/boops-lv2/BOops-1.8.2/src/
H A DCrackle.hpp26 #ifndef SQR
27 #define SQR(x) ((x) * (x)) macro
41 …onst {return level_ * sin (2.0 * M_PI * sqrt ((t - t0_) * freq_)) / (1.0 + SQR ((t - t0_) * freq_ … in get()
43 double getAmplitude (const double t) const {return 1.0 / (1.0 + SQR ((t - t0_) * freq_ - 2.0));} in getAmplitude()
/dports/science/opensim-core/opensim-core-4.1/OpenSim/Utilities/simmToOpenSim/
H A Dellipsoid_wrap.c257 n[0] = 2 * x / SQR(a[0]); in cons_ellipsoid_normal_at_pt()
258 n[1] = 2 * y / SQR(a[1]); in cons_ellipsoid_normal_at_pt()
259 n[2] = 2 * z / SQR(a[2]); in cons_ellipsoid_normal_at_pt()
378 disc = SQR(bb) - 4.0 * aa * cc; in calc_line_intersect_ellipsoid()
747 n[0] = 2 * x / SQR(a[0]); in ellipsoid_normal_at_pt()
748 n[1] = 2 * y / SQR(a[1]); in ellipsoid_normal_at_pt()
749 n[2] = 2 * z / SQR(a[2]); in ellipsoid_normal_at_pt()
1090 ssqo = SQR(ee[0]) + SQR(ee[1]) + SQR(ee[2]) + SQR(ee[3]); in calc_r()
1184 ssq = SQR(ee[0]) + SQR(ee[1]) + SQR(ee[2]) + SQR(ee[3]); in calc_r()
1219 ssq = SQR(ee[0]) + SQR(ee[1]) + SQR(ee[2]) + SQR(ee[3]); in calc_r()
[all …]
/dports/math/eigen3/eigen-3.3.9/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/math/stanmath/math-4.2.0/lib/eigen_3.3.9/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/math/libmesh/libmesh-1.6.2/contrib/eigen/3.2.9/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/math/libsemigroups/libsemigroups-1.3.7/extern/eigen-3.3.7/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/graphics/wdune/wdune-1.926/vcglib/eigenlib/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/misc/opennn/opennn-5.0.5/eigen/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/devel/taskflow/taskflow-3.2.0/3rd-party/eigen-3.3.7/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/lib/eigen_3.3.3/unsupported/test/
H A DBVH.cpp38 inline double SQR(double x) { return x * x; } in SQR() function
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …onst BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); } in minimumOnObject()
80 …double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)… in minimumOnVolumeObject()
81 …double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)… in minimumOnObjectVolume()
82 …double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
/dports/graphics/lightzone/LightZone-4.1.8-3-g36e87773/lightcrafts/src/com/lightcrafts/jai/opimage/
H A DBilateralFilterOpImage2.java26 private static double SQR(double x) { in SQR() method in BilateralFilterOpImage2
52 kernel[wr + i] = (float) (256 / (2 * SQR(sigma_d)) * i * i + 0.25); in BilateralFilterOpImage2()
53 scale_r = (float) (256 / (2 * SQR(sigma_r))); in BilateralFilterOpImage2()
141 … int sep = ((int) ((SQR(a - a0) + SQR(b - b0)) * scale_r + kernel[wr] + kernel[v])) / 0x10000; in ushortLoop()
178 … int sep = ((int) ((SQR(a - a0) + SQR(b - b0)) * scale_r + kernel[wr] + kernel[v])) / 0x10000; in ushortLoop()
206 … int sep = ((int) ((SQR(a - a0) + SQR(b - b0)) * scale_r + kernel[wr] + kernel[aa])) / 0x10000; in ushortLoop()

12345678910>>...59