/dports/science/py-GPy/GPy-1.10.0/GPy/testing/ |
H A D | link_function_tests.py | 26 grad3 = GradientChecker(link_func.d2transf_df2, link_func.d3transf_df3, x0=self.mid_f) 27 self.assertTrue(grad3.checkgrad(verbose=True)) 33 grad3 = GradientChecker(link_func.d2transf_df2, link_func.d3transf_df3, x0=self.small_f) 34 self.assertTrue(grad3.checkgrad(verbose=True)) 40 grad3 = GradientChecker(link_func.d2transf_df2, link_func.d3transf_df3, x0=self.zero_f) 41 self.assertTrue(grad3.checkgrad(verbose=True)) 49 grad3 = GradientChecker(link_func.d2transf_df2, link_func.d3transf_df3, x0=large_f) 50 self.assertTrue(grad3.checkgrad(verbose=True)) 60 grad3 = GradientChecker(link_func.d2transf_df2, link_func.d3transf_df3, x0=lim_of_inf) 61 self.assertTrue(grad3.checkgrad(verbose=True))
|
/dports/cad/py-ezdxf/ezdxf-0.16.3/src/ezdxf/math/ |
H A D | perlin.py | 317 def grad3(hash, x, y, z): function 367 return lerp(fz, lerp(fy, lerp(fx, grad3(perm[AA + k], x, y, z), 368 grad3(perm[BA + k], x - 1, y, z)), 369 lerp(fx, grad3(perm[AB + k], x, y - 1, z), 370 grad3(perm[BB + k], x - 1, y - 1, z))), 371 lerp(fy, lerp(fx, grad3(perm[AA + kk], x, y, z - 1), 372 grad3(perm[BA + kk], x - 1, y, z - 1)), 373 lerp(fx, grad3(perm[AB + kk], x, y - 1, z - 1), 374 grad3(perm[BB + kk], x - 1, y - 1, z - 1))))
|
/dports/games/instead/instead-3.4.1/src/ |
H A D | noise1234.c | 119 float grad3( int hash, float x, float y , float z ) { in grad3() function 278 nxy0 = grad3(perm[ix0 + perm[iy0 + perm[iz0]]], fx0, fy0, fz0); in noise3() 279 nxy1 = grad3(perm[ix0 + perm[iy0 + perm[iz1]]], fx0, fy0, fz1); in noise3() 282 nxy0 = grad3(perm[ix0 + perm[iy1 + perm[iz0]]], fx0, fy1, fz0); in noise3() 283 nxy1 = grad3(perm[ix0 + perm[iy1 + perm[iz1]]], fx0, fy1, fz1); in noise3() 288 nxy0 = grad3(perm[ix1 + perm[iy0 + perm[iz0]]], fx1, fy0, fz0); in noise3() 289 nxy1 = grad3(perm[ix1 + perm[iy0 + perm[iz1]]], fx1, fy0, fz1); in noise3() 292 nxy0 = grad3(perm[ix1 + perm[iy1 + perm[iz0]]], fx1, fy1, fz0); in noise3() 293 nxy1 = grad3(perm[ix1 + perm[iy1 + perm[iz1]]], fx1, fy1, fz1); in noise3() 331 nxy0 = grad3(perm[ix0 + perm[iy0 + perm[iz0]]], fx0, fy0, fz0); in pnoise3() [all …]
|
/dports/graphics/reallyslick/rss-glx_0.9.1/src/ |
H A D | noise1234.c | 131 float grad3( int hash, float x, float y , float z ) { in grad3() function 290 nxy0 = grad3(perm[ix0 + perm[iy0 + perm[iz0]]], fx0, fy0, fz0); in noise3() 291 nxy1 = grad3(perm[ix0 + perm[iy0 + perm[iz1]]], fx0, fy0, fz1); in noise3() 294 nxy0 = grad3(perm[ix0 + perm[iy1 + perm[iz0]]], fx0, fy1, fz0); in noise3() 295 nxy1 = grad3(perm[ix0 + perm[iy1 + perm[iz1]]], fx0, fy1, fz1); in noise3() 300 nxy0 = grad3(perm[ix1 + perm[iy0 + perm[iz0]]], fx1, fy0, fz0); in noise3() 301 nxy1 = grad3(perm[ix1 + perm[iy0 + perm[iz1]]], fx1, fy0, fz1); in noise3() 304 nxy0 = grad3(perm[ix1 + perm[iy1 + perm[iz0]]], fx1, fy1, fz0); in noise3() 305 nxy1 = grad3(perm[ix1 + perm[iy1 + perm[iz1]]], fx1, fy1, fz1); in noise3() 343 nxy0 = grad3(perm[ix0 + perm[iy0 + perm[iz0]]], fx0, fy0, fz0); in pnoise3() [all …]
|
/dports/math/vtk8/VTK-8.2.0/Parallel/MPI4Py/Testing/Python/ |
H A D | TestParallelNumpy.py | 115 grad3 = grad2 variable 118 grad3 = dsa.NoneArray variable 120 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 124 grad3 = dsa.VTKCompositeDataArray([dsa.NoneArray, grad]) variable 126 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 133 grad3 = dsa.VTKCompositeDataArray([grad2]) variable 136 grad3 = dsa.NoneArray variable 138 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 165 grad3 = dsa.VTKCompositeDataArray([datasets[0].PointData['gradient'], datasets[1].PointData['gradie… variable 167 testArrays(rtData3, rtData2, grad3, grad2, total_npts)
|
/dports/math/vtk9/VTK-9.1.0/Parallel/MPI4Py/Testing/Python/ |
H A D | TestParallelNumpy.py | 115 grad3 = grad2 variable 118 grad3 = dsa.NoneArray variable 120 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 124 grad3 = dsa.VTKCompositeDataArray([dsa.NoneArray, grad]) variable 126 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 133 grad3 = dsa.VTKCompositeDataArray([grad2]) variable 136 grad3 = dsa.NoneArray variable 138 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 165 grad3 = dsa.VTKCompositeDataArray([datasets[0].PointData['gradient'], datasets[1].PointData['gradie… variable 167 testArrays(rtData3, rtData2, grad3, grad2, total_npts)
|
/dports/math/vtk6/VTK-6.2.0/Parallel/MPI4Py/Testing/Python/ |
H A D | TestParallelNumpy.py | 112 grad3 = grad2 variable 115 grad3 = dsa.NoneArray variable 117 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 121 grad3 = dsa.VTKCompositeDataArray([dsa.NoneArray, grad]) variable 123 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 130 grad3 = dsa.VTKCompositeDataArray([grad2]) variable 133 grad3 = dsa.NoneArray variable 135 testArrays(rtData3, rtData2, grad3, grad2, total_npts) 162 grad3 = dsa.VTKCompositeDataArray([datasets[0].PointData['gradient'], datasets[1].PointData['gradie… variable 164 testArrays(rtData3, rtData2, grad3, grad2, total_npts)
|
/dports/games/pioneer/pioneer-20210723/src/ |
H A D | perlin.cpp | 63 static const double grad3[12][3] = { variable 219 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in noise() 227 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in noise() 235 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in noise() 243 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in noise()
|
/dports/graphics/ogre3d/ogre-1.11.6/Components/Volume/src/ |
H A D | OgreVolumeSimplexNoise.cpp | 39 Vector3 grad3[] = { variable 198 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in noise() 208 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in noise() 218 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in noise() 228 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in noise()
|
/dports/graphics/ogre3d19/sinbad-ogre-dd30349ea667/Components/Volume/src/ |
H A D | OgreVolumeSimplexNoise.cpp | 37 Vector3 grad3[] = { variable 196 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in noise() 206 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in noise() 216 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in noise() 226 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in noise()
|
/dports/math/freefem++/FreeFem-sources-4.6/examples/3dSurf/ |
H A D | HeatTorus.edp | 21 macro grad3(u) [dx(u),dy(u),dz(u)] // EOM 23 solve Lap(u,v) = int2d(ThS)( u*v+grad3(u)'*grad3(v)) -int2d(ThS)((x+y)*v);
|
/dports/games/stuntrally/stuntrally-2.6.1/source/ogre/common/ |
H A D | simplexnoise.cpp | 12 static int grad3[][3] = {{1,1,0},{-1,1,0},{1,-1,0},{-1,-1,0}, variable 119 n0 = t0 * t0 * dot(grad3[gi0], x0,y0); in SimplexNoise2D() 126 n1 = t1 * t1 * dot(grad3[gi1], x1,y1); in SimplexNoise2D() 133 n2 = t2 * t2 * dot(grad3[gi2], x2,y2); in SimplexNoise2D()
|
/dports/x11-wm/awesome/awesome-4.3/tests/examples/wibox/widget/progressbar/ |
H A D | encapsulation.lua | 11 local grad3 = color{ type = "linear", from = { 0, 0 }, to = { 20, 0 }, --DOC_HIDE 20 { value = 0.6, color = grad3, 34 { value = 0.6, color = grad3,
|
/dports/misc/mnn/MNN-1.2.0/source/backend/opencl/execution/cl/ |
H A D | conv2d_backprop.cl | 24 FLOAT4 grad0 = 0, grad1 = 0, grad2 = 0, grad3 = 0; 34 grad3 = mad(in0, (FLOAT4)in1.w, grad3); 64 FILL_OUTPUT(grad3, index, kernelSize);
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/stdfx/ |
H A D | iwa_simplexnoise.cpp | 31 static Grad grad3[] = {Grad(1, 1, 0), Grad(-1, 1, 0), Grad(1, -1, 0), variable 175 dot(grad3[gi0], x0, y0); // (x,y) of grad3 used for 2D gradient in noise() 182 n1 = t1 * t1 * dot(grad3[gi1], x1, y1); in noise() 189 n2 = t2 * t2 * dot(grad3[gi2], x2, y2); in noise() 305 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in noise() 312 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in noise() 319 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in noise() 326 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in noise()
|
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/ |
H A D | perlin.cc | 51 static const Grad grad3[] = variable 174 n0 = t0 * t0 * dot(grad3[gi0], x0, y0); // (x,y) of grad3 used for 2D gradient in noise() 182 n1 = t1 * t1 * dot(grad3[gi1], x1, y1); in noise() 190 n2 = t2 * t2 * dot(grad3[gi2], x2, y2); in noise() 263 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in noise() 271 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in noise() 279 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in noise() 287 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in noise()
|
/dports/deskutils/treesheets/treesheets-1.0.2/lobster/src/ |
H A D | simplex.cpp | 27 static const int grad3[12][3] = { variable 124 n0 = t0 * t0 * dot(grad3[gi0], x0, y0); // (x,y) of grad3 used for 2D gradient in SimplexRawNoise() 130 n1 = t1 * t1 * dot(grad3[gi1], x1, y1); in SimplexRawNoise() 136 n2 = t2 * t2 * dot(grad3[gi2], x2, y2); in SimplexRawNoise() 200 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in SimplexRawNoise() 206 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in SimplexRawNoise() 212 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in SimplexRawNoise() 218 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in SimplexRawNoise()
|
/dports/multimedia/avidemux/avidemux_2.7.6/avidemux/qt4/ADM_userInterfaces/ADM_gui/ |
H A D | T_thumbSlider.cpp | 184 QLinearGradient grad3 = QLinearGradient(0, height() - 2, middle - 6, height() - 2); in drawBorders() local 197 grad3.setColorAt(1, color2); in drawBorders() 198 grad3.setColorAt(0, color1); in drawBorders() 205 painter->setPen(QPen(grad3, 1, Qt::SolidLine, Qt::FlatCap)); in drawBorders()
|
/dports/multimedia/avidemux-qt5/avidemux_2.7.6/avidemux/qt4/ADM_userInterfaces/ADM_gui/ |
H A D | T_thumbSlider.cpp | 184 QLinearGradient grad3 = QLinearGradient(0, height() - 2, middle - 6, height() - 2); in drawBorders() local 197 grad3.setColorAt(1, color2); in drawBorders() 198 grad3.setColorAt(0, color1); in drawBorders() 205 painter->setPen(QPen(grad3, 1, Qt::SolidLine, Qt::FlatCap)); in drawBorders()
|
/dports/multimedia/avidemux-cli/avidemux_2.7.6/avidemux/qt4/ADM_userInterfaces/ADM_gui/ |
H A D | T_thumbSlider.cpp | 184 QLinearGradient grad3 = QLinearGradient(0, height() - 2, middle - 6, height() - 2); in drawBorders() local 197 grad3.setColorAt(1, color2); in drawBorders() 198 grad3.setColorAt(0, color1); in drawBorders() 205 painter->setPen(QPen(grad3, 1, Qt::SolidLine, Qt::FlatCap)); in drawBorders()
|
/dports/multimedia/avidemux-plugins/avidemux_2.7.6/avidemux/qt4/ADM_userInterfaces/ADM_gui/ |
H A D | T_thumbSlider.cpp | 184 QLinearGradient grad3 = QLinearGradient(0, height() - 2, middle - 6, height() - 2); in drawBorders() local 197 grad3.setColorAt(1, color2); in drawBorders() 198 grad3.setColorAt(0, color1); in drawBorders() 205 painter->setPen(QPen(grad3, 1, Qt::SolidLine, Qt::FlatCap)); in drawBorders()
|
/dports/graphics/art/ART-1.9.3/rtengine/ |
H A D | ipgrain.cc | 63 const int grad3[12][3] = { { 1, 1, 0 }, variable 258 n0 = t0 * t0 * dot(grad3[gi0], x0, y0, z0); in simplex_noise() 266 n1 = t1 * t1 * dot(grad3[gi1], x1, y1, z1); in simplex_noise() 274 n2 = t2 * t2 * dot(grad3[gi2], x2, y2, z2); in simplex_noise() 282 n3 = t3 * t3 * dot(grad3[gi3], x3, y3, z3); in simplex_noise()
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/ |
H A D | simplexnoise.cpp | 237 n0 = t0 * t0 * dot( grad3[gi0], x0, y0 ); // (x,y) of grad3 used for 2D gradient in raw_noise_2d() 245 n1 = t1 * t1 * dot( grad3[gi1], x1, y1 ); in raw_noise_2d() 253 n2 = t2 * t2 * dot( grad3[gi2], x2, y2 ); in raw_noise_2d() 364 n0 = t0 * t0 * dot( grad3[gi0], x0, y0, z0 ); in raw_noise_3d() 372 n1 = t1 * t1 * dot( grad3[gi1], x1, y1, z1 ); in raw_noise_3d() 380 n2 = t2 * t2 * dot( grad3[gi2], x2, y2, z2 ); in raw_noise_3d() 388 n3 = t3 * t3 * dot( grad3[gi3], x3, y3, z3 ); in raw_noise_3d()
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/ |
H A D | simplexnoise.cpp | 237 n0 = t0 * t0 * dot( grad3[gi0], x0, y0 ); // (x,y) of grad3 used for 2D gradient in raw_noise_2d() 245 n1 = t1 * t1 * dot( grad3[gi1], x1, y1 ); in raw_noise_2d() 253 n2 = t2 * t2 * dot( grad3[gi2], x2, y2 ); in raw_noise_2d() 364 n0 = t0 * t0 * dot( grad3[gi0], x0, y0, z0 ); in raw_noise_3d() 372 n1 = t1 * t1 * dot( grad3[gi1], x1, y1, z1 ); in raw_noise_3d() 380 n2 = t2 * t2 * dot( grad3[gi2], x2, y2, z2 ); in raw_noise_3d() 388 n3 = t3 * t3 * dot( grad3[gi3], x3, y3, z3 ); in raw_noise_3d()
|
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/svm/ |
H A D | svm_noise.h | 160 ccl_device float grad3(int hash, float x, float y, float z) in grad3() function 213 float r = tri_mix(grad3(hash_uint3(X, Y, Z), fx, fy, fz), in perlin_3d() 214 grad3(hash_uint3(X + 1, Y, Z), fx - 1.0f, fy, fz), in perlin_3d() 215 grad3(hash_uint3(X, Y + 1, Z), fx, fy - 1.0f, fz), in perlin_3d() 216 grad3(hash_uint3(X + 1, Y + 1, Z), fx - 1.0f, fy - 1.0f, fz), in perlin_3d() 217 grad3(hash_uint3(X, Y, Z + 1), fx, fy, fz - 1.0f), in perlin_3d() 218 grad3(hash_uint3(X + 1, Y, Z + 1), fx - 1.0f, fy, fz - 1.0f), in perlin_3d() 219 grad3(hash_uint3(X, Y + 1, Z + 1), fx, fy - 1.0f, fz - 1.0f), in perlin_3d() 220 grad3(hash_uint3(X + 1, Y + 1, Z + 1), fx - 1.0f, fy - 1.0f, fz - 1.0f), in perlin_3d()
|