Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 2938) sorted by relevance

12345678910>>...118

/external/skqp/src/core/
DSkAntiRun.h25 static inline SkAlpha CatchOverflow(int alpha) { in CatchOverflow() argument
26 SkASSERT(alpha >= 0 && alpha <= 256); in CatchOverflow()
27 return alpha - (alpha >> 8); in CatchOverflow()
61 uint8_t* alpha = fAlpha + offsetX; in add() local
62 uint8_t* lastAlpha = alpha; in add()
66 SkAlphaRuns::Break(runs, alpha, x, 1); in add()
72 unsigned tmp = alpha[x] + startAlpha; in add()
74alpha[x] = SkToU8(tmp - (tmp >> 8)); // was (tmp >> 7), but that seems wrong if we're trying to… in add()
77 alpha += x + 1; in add()
83 SkAlphaRuns::Break(runs, alpha, x, middleCount); in add()
[all …]
/external/skia/src/core/
DSkAntiRun.h25 static inline SkAlpha CatchOverflow(int alpha) { in CatchOverflow() argument
26 SkASSERT(alpha >= 0 && alpha <= 256); in CatchOverflow()
27 return alpha - (alpha >> 8); in CatchOverflow()
61 uint8_t* alpha = fAlpha + offsetX; in add() local
62 uint8_t* lastAlpha = alpha; in add()
66 SkAlphaRuns::Break(runs, alpha, x, 1); in add()
72 unsigned tmp = alpha[x] + startAlpha; in add()
74alpha[x] = SkToU8(tmp - (tmp >> 8)); // was (tmp >> 7), but that seems wrong if we're trying to… in add()
77 alpha += x + 1; in add()
83 SkAlphaRuns::Break(runs, alpha, x, middleCount); in add()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dprelu_test.cc39 Tensor<Linear, DataType::FLOAT32> alpha; in TEST() local
40 alpha.shape.v = 1; in TEST()
41 alpha.id = 1; in TEST()
42 alpha.data = {2}; in TEST()
43 attr.alpha = std::move(alpha); in TEST()
65 Tensor<Linear, DataType::FLOAT32> alpha; in TEST() local
66 alpha.shape.v = 1; in TEST()
67 alpha.id = 1; in TEST()
68 alpha.data = {2}; in TEST()
69 attr.alpha = std::move(alpha); in TEST()
[all …]
Dprelu.cc41 auto alpha = absl::get_if<Tensor<Linear, DataType::FLOAT32>>(&attr.alpha); in GenerateCode() local
42 if (!alpha) { in GenerateCode()
45 if (alpha->shape.v != ctx.output_shapes[0][3]) { in GenerateCode()
54 /*objects=*/{{"alpha", MakeReadonlyObject(alpha->data)}}, in GenerateCode()
65 /*objects=*/{{"alpha", MakeReadonlyObject(alpha->data)}}, in GenerateCode()
90 auto alpha = absl::get_if<Tensor<HWC, DataType::FLOAT32>>(&attr.alpha); in GenerateCode() local
91 if (!alpha) { in GenerateCode()
94 if (alpha->shape.h != ctx.output_shapes[0][1] || in GenerateCode()
95 alpha->shape.w != ctx.output_shapes[0][2] || in GenerateCode()
96 alpha->shape.c != ctx.output_shapes[0][3]) { in GenerateCode()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Ddirichlet_test.py52 alpha = np.random.rand(3)
53 dist = dirichlet_lib.Dirichlet(alpha)
60 alpha = np.random.rand(3, 2, 2)
61 dist = dirichlet_lib.Dirichlet(alpha)
68 alpha = [[1., 2, 3]]
69 dist = dirichlet_lib.Dirichlet(alpha)
71 self.assertAllClose(alpha, self.evaluate(dist.concentration))
74 alpha = [[1., 2, 3]]
75 dist = dirichlet_lib.Dirichlet(alpha, validate_args=True)
104 alpha = [1., 2]
[all …]
Ddirichlet_multinomial_test.py43 alpha = np.random.rand(3)
44 dist = ds.DirichletMultinomial(1., alpha)
53 alpha = np.random.rand(3, 2, 2)
55 dist = ds.DirichletMultinomial(n, alpha)
63 alpha = [[1., 2, 3]]
66 dist = ds.DirichletMultinomial(n, alpha)
72 alpha = [[1., 2, 3]]
74 dist = ds.DirichletMultinomial(1, alpha)
76 self.assertAllClose(alpha, dist.concentration)
80 alpha = [[1., 2, 3]]
[all …]
/external/tensorflow/tensorflow/python/keras/applications/
Dmobilenet_v2.py98 alpha=1.0, argument
279 if alpha not in [0.35, 0.50, 0.75, 1.0, 1.3, 1.4]:
301 first_block_filters = _make_divisible(32 * alpha, 8)
315 x, filters=16, alpha=alpha, stride=1, expansion=1, block_id=0)
318 x, filters=24, alpha=alpha, stride=2, expansion=6, block_id=1)
320 x, filters=24, alpha=alpha, stride=1, expansion=6, block_id=2)
323 x, filters=32, alpha=alpha, stride=2, expansion=6, block_id=3)
325 x, filters=32, alpha=alpha, stride=1, expansion=6, block_id=4)
327 x, filters=32, alpha=alpha, stride=1, expansion=6, block_id=5)
330 x, filters=64, alpha=alpha, stride=2, expansion=6, block_id=6)
[all …]
Dmobilenet.py86 alpha=1.0, argument
214 if alpha not in [0.25, 0.50, 0.75, 1.0]:
234 x = _conv_block(img_input, 32, alpha, strides=(2, 2))
235 x = _depthwise_conv_block(x, 64, alpha, depth_multiplier, block_id=1)
238 x, 128, alpha, depth_multiplier, strides=(2, 2), block_id=2)
239 x = _depthwise_conv_block(x, 128, alpha, depth_multiplier, block_id=3)
242 x, 256, alpha, depth_multiplier, strides=(2, 2), block_id=4)
243 x = _depthwise_conv_block(x, 256, alpha, depth_multiplier, block_id=5)
246 x, 512, alpha, depth_multiplier, strides=(2, 2), block_id=6)
247 x = _depthwise_conv_block(x, 512, alpha, depth_multiplier, block_id=7)
[all …]
/external/cblas/include/
Dcblas.h25 float cblas_sdsdot(const int N, const float alpha, const float *X,
85 void cblas_saxpy(const int N, const float alpha, const float *X,
92 void cblas_daxpy(const int N, const double alpha, const double *X,
99 void cblas_caxpy(const int N, const void *alpha, const void *X,
106 void cblas_zaxpy(const int N, const void *alpha, const void *X,
131 void cblas_sscal(const int N, const float alpha, float *X, const int incX);
132 void cblas_dscal(const int N, const double alpha, double *X, const int incX);
133 void cblas_cscal(const int N, const void *alpha, void *X, const int incX);
134 void cblas_zscal(const int N, const void *alpha, void *X, const int incX);
135 void cblas_csscal(const int N, const float alpha, void *X, const int incX);
[all …]
/external/ImageMagick/MagickCore/
Dfx.c524 static inline double FxGCD(const double alpha,const double beta) in FxGCD() argument
526 if (alpha < beta) in FxGCD()
527 return(FxGCD(beta,alpha)); in FxGCD()
529 return(alpha); in FxGCD()
530 return(FxGCD(beta,alpha-beta*floor(alpha/beta))); in FxGCD()
576 alpha, in FxGetSymbol() local
640 alpha=FxEvaluateSubexpression(fx_info,channel,x,y,subexpression, in FxGetSymbol()
642 i=(ssize_t) alpha; in FxGetSymbol()
670 alpha=FxEvaluateSubexpression(fx_info,channel,x,y,subexpression, in FxGetSymbol()
672 point.x=alpha; in FxGetSymbol()
[all …]
Dcomposite-private.h35 static inline double MagickOver_(const double p,const double alpha, in MagickOver_() argument
42 Sa=QuantumScale*alpha; in MagickOver_()
53 const double alpha,const Quantum *q,const double beta,Quantum *composite) in CompositePixelOver() argument
66 Sa=QuantumScale*alpha; in CompositePixelOver()
86 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->red,alpha, in CompositePixelOver()
92 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->green,alpha, in CompositePixelOver()
98 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->blue,alpha, in CompositePixelOver()
104 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->black,alpha, in CompositePixelOver()
122 static inline void CompositePixelInfoOver(const PixelInfo *p,const double alpha, in CompositePixelInfoOver() argument
133 Sa=QuantumScale*alpha; in CompositePixelInfoOver()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_grad_test.py80 alpha = array_ops.ones([2, 2])
82 sample = random_ops.random_gamma(shape, alpha, beta, seed=12345)
83 grads_alpha, grads_beta = gradients_impl.gradients(sample, [alpha, beta])
84 self.assertAllEqual(grads_alpha.shape, alpha.shape)
90 alpha = array_ops.ones([2, 2])
92 sample = random_ops.random_gamma(shape, alpha, beta, seed=12345)
93 grads_alpha, grads_beta = gradients_impl.gradients(sample, [alpha, beta])
94 self.assertAllEqual(grads_alpha.shape, alpha.shape)
100 alpha = array_ops.placeholder(dtypes.float32)
102 sample = random_ops.random_gamma(shape, alpha, beta, seed=12345)
[all …]
/external/libaom/libaom/tools/
Dgen_constrained_tokenset.py43 alpha = scipy.optimize.fminbound(func, 1e-12, 10000, xtol=1e-12)
45 parray[0] = 2 * (cdf(0.5, alpha, beta) - 0.5)
46 parray[1] = (2 * (cdf(1.5, alpha, beta) - cdf(0.5, alpha, beta)))
47 parray[2] = (2 * (cdf(2.5, alpha, beta) - cdf(1.5, alpha, beta)))
48 parray[3] = (2 * (cdf(3.5, alpha, beta) - cdf(2.5, alpha, beta)))
49 parray[4] = (2 * (cdf(4.5, alpha, beta) - cdf(3.5, alpha, beta)))
50 parray[5] = (2 * (cdf(6.5, alpha, beta) - cdf(4.5, alpha, beta)))
51 parray[6] = (2 * (cdf(10.5, alpha, beta) - cdf(6.5, alpha, beta)))
52 parray[7] = (2 * (cdf(18.5, alpha, beta) - cdf(10.5, alpha, beta)))
53 parray[8] = (2 * (cdf(34.5, alpha, beta) - cdf(18.5, alpha, beta)))
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DBetaDistributionImpl.java51 private double alpha; field in BetaDistributionImpl
72 public BetaDistributionImpl(double alpha, double beta, double inverseCumAccuracy) { in BetaDistributionImpl() argument
73 this.alpha = alpha; in BetaDistributionImpl()
84 public BetaDistributionImpl(double alpha, double beta) { in BetaDistributionImpl() argument
85 this(alpha, beta, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in BetaDistributionImpl()
92 public void setAlpha(double alpha) { in setAlpha() argument
93 this.alpha = alpha; in setAlpha()
99 return alpha; in getAlpha()
121 z = Gamma.logGamma(alpha) + Gamma.logGamma(beta) - Gamma.logGamma(alpha + beta); in recomputeZ()
150 if (alpha < 1) { in density()
[all …]
DGammaDistributionImpl.java45 private double alpha; field in GammaDistributionImpl
58 public GammaDistributionImpl(double alpha, double beta) { in GammaDistributionImpl() argument
59 this(alpha, beta, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in GammaDistributionImpl()
70 public GammaDistributionImpl(double alpha, double beta, double inverseCumAccuracy) { in GammaDistributionImpl() argument
72 setAlphaInternal(alpha); in GammaDistributionImpl()
100 ret = Gamma.regularizedGammaP(alpha, x / beta); in cumulativeProbability()
138 public void setAlpha(double alpha) { in setAlpha() argument
139 setAlphaInternal(alpha); in setAlpha()
153 this.alpha = newAlpha; in setAlphaInternal()
161 return alpha; in getAlpha()
[all …]
/external/adhd/cras/src/dsp/
Dbiquad.c70 double alpha = 0.25 * (0.5 + beta - gamma); in biquad_lowpass() local
72 double b0 = 2 * alpha; in biquad_lowpass()
73 double b1 = 2 * 2 * alpha; in biquad_lowpass()
74 double b2 = 2 * alpha; in biquad_lowpass()
106 double alpha = 0.25 * (0.5 + beta + gamma); in biquad_highpass() local
108 double b0 = 2 * alpha; in biquad_highpass()
109 double b1 = 2 * -2 * alpha; in biquad_highpass()
110 double b2 = 2 * alpha; in biquad_highpass()
145 double alpha = sin(w0) / (2 * Q); in biquad_bandpass() local
148 double b0 = alpha; in biquad_bandpass()
[all …]
/external/llvm-project/llvm/test/Transforms/LoopReroll/
Dbasic32iters.ll5 ; void goo32(float alpha, float *a, float *b) {
7 ; a[i] += alpha * b[i];
8 ; a[i + 1] += alpha * b[i + 1];
9 ; a[i + 2] += alpha * b[i + 2];
10 ; a[i + 3] += alpha * b[i + 3];
11 ; a[i + 4] += alpha * b[i + 4];
12 ; a[i + 5] += alpha * b[i + 5];
13 ; a[i + 6] += alpha * b[i + 6];
14 ; a[i + 7] += alpha * b[i + 7];
15 ; a[i + 8] += alpha * b[i + 8];
[all …]
/external/llvm/test/Transforms/LoopReroll/
Dbasic32iters.ll5 ; void goo32(float alpha, float *a, float *b) {
7 ; a[i] += alpha * b[i];
8 ; a[i + 1] += alpha * b[i + 1];
9 ; a[i + 2] += alpha * b[i + 2];
10 ; a[i + 3] += alpha * b[i + 3];
11 ; a[i + 4] += alpha * b[i + 4];
12 ; a[i + 5] += alpha * b[i + 5];
13 ; a[i + 6] += alpha * b[i + 6];
14 ; a[i + 7] += alpha * b[i + 7];
15 ; a[i + 8] += alpha * b[i + 8];
[all …]
/external/webp/src/dsp/
Dalpha_processing_neon.c26 const uint8x8_t alpha = (V).val[(ALPHA)]; \
27 const uint16x8_t r1 = vmull_u8((V).val[1], alpha); \
28 const uint16x8_t g1 = vmull_u8((V).val[2], alpha); \
29 const uint16x8_t b1 = vmull_u8((V).val[(OTHER)], alpha); \
65 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); in ApplyAlphaMultiply_NEON() local
66 const uint32_t a = alpha[4 * i]; in ApplyAlphaMultiply_NEON()
83 static int DispatchAlpha_NEON(const uint8_t* alpha, int alpha_stride, in DispatchAlpha_NEON() argument
96 const uint8x8_t alphas = vld1_u8(alpha + i); in DispatchAlpha_NEON()
102 const uint32_t alpha_value = alpha[i]; in DispatchAlpha_NEON()
106 alpha += alpha_stride; in DispatchAlpha_NEON()
[all …]
/external/pdfium/third_party/lcms/src/
Dcmssm.c45 cmsFloat64Number alpha; member
131 sp ->alpha = sp ->theta = 0; in ToSpherical()
135 sp ->alpha = _cmsAtan2(a, b); in ToSpherical()
150 sin_alpha = sin((M_PI * sp ->alpha) / 180.0); in ToCartesian()
151 cos_alpha = cos((M_PI * sp ->alpha) / 180.0); in ToCartesian()
168 void QuantizeToSector(const cmsSpherical* sp, int* alpha, int* theta) in QuantizeToSector() argument
170 *alpha = (int) floor(((sp->alpha * (SECTORS)) / 360.0) ); in QuantizeToSector()
173 if (*alpha >= SECTORS) in QuantizeToSector()
174 *alpha = SECTORS-1; in QuantizeToSector()
326 int alpha, theta; in GetPoint() local
[all …]
/external/skqp/include/private/
DSkEncodedInfo.h96 static SkEncodedInfo Make(int width, int height, Color color, Alpha alpha, in Make()
98 return Make(width, height, color, alpha, bitsPerComponent, nullptr); in Make()
101 static SkEncodedInfo Make(int width, int height, Color color, Alpha alpha, in Make()
111 SkASSERT(kOpaque_Alpha == alpha); in Make()
114 SkASSERT(kOpaque_Alpha != alpha); in Make()
122 SkASSERT(kOpaque_Alpha == alpha); in Make()
128 SkASSERT(kOpaque_Alpha == alpha); in Make()
132 SkASSERT(kOpaque_Alpha != alpha); in Make()
137 SkASSERT(kOpaque_Alpha != alpha); in Make()
141 SkASSERT(kUnpremul_Alpha == alpha); in Make()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/
DTestUtils.java176 double alpha) in homoscedasticTTest() argument
178 return tTest. homoscedasticTTest(sample1, sample2, alpha); in homoscedasticTTest()
210 double alpha) in pairedTTest() argument
212 return tTest.pairedTTest(sample1, sample2, alpha); in pairedTTest()
259 public static boolean tTest(double mu, double[] sample, double alpha) in tTest() argument
261 return tTest.tTest(mu, sample, alpha); in tTest()
276 double alpha) in tTest() argument
278 return tTest. tTest(mu, sampleStats, alpha); in tTest()
292 public static boolean tTest(double[] sample1, double[] sample2, double alpha) in tTest() argument
294 return tTest.tTest(sample1, sample2, alpha); in tTest()
[all …]
/external/openscreen/osp/impl/discovery/mdns/
Ddomain_name_unittest.cc94 DomainName alpha = UnpackErrorOr(FromLabels({"alpha", "openscreen", "org"})); in TEST() local
97 const DomainName alpha_copy = alpha; in TEST()
99 EXPECT_TRUE(alpha == alpha); in TEST()
100 EXPECT_FALSE(alpha != alpha); in TEST()
101 EXPECT_TRUE(alpha == alpha_copy); in TEST()
102 EXPECT_FALSE(alpha != alpha_copy); in TEST()
103 EXPECT_FALSE(alpha == beta); in TEST()
104 EXPECT_TRUE(alpha != beta); in TEST()
108 DomainName alpha; in TEST() local
109 EXPECT_FALSE(alpha.EndsWithLocalDomain()); in TEST()
[all …]
/external/llvm-project/lld/test/COFF/
Dduplicate.test2 RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o alpha.obj %S/Inputs/alpha.ll
4 RUN: lld-link /out:alpha.dll /dll alpha.obj /implib:alpha.lib
5 RUN: not lld-link /out:beta.dll /dll alpha.obj beta.obj alpha.lib 2>&1 | FileCheck %s -check-prefix…
8 CHECK-ALPHA: defined at {{.*}}alpha.obj
9 CHECK-APLHA: defined at alpha.dll
12 RUN: not lld-link /out:gamma.exe /subsystem:console /entry:mainCRTStartup gamma.obj alpha.lib 2>&1 …
16 CHECK-GAMMA: defined at alpha.dll
/external/skia/include/private/
DSkEncodedInfo.h98 static SkEncodedInfo Make(int width, int height, Color color, Alpha alpha, in Make()
100 return Make(width, height, color, alpha, bitsPerComponent, nullptr); in Make()
103 static SkEncodedInfo Make(int width, int height, Color color, Alpha alpha, in Make()
113 SkASSERT(kOpaque_Alpha == alpha); in Make()
116 SkASSERT(kOpaque_Alpha != alpha); in Make()
124 SkASSERT(kOpaque_Alpha == alpha); in Make()
130 SkASSERT(kOpaque_Alpha == alpha); in Make()
141 SkASSERT(kUnpremul_Alpha == alpha); in Make()
145 SkASSERT(kOpaque_Alpha == alpha); in Make()
153 return SkEncodedInfo(width, height, color, alpha, bitsPerComponent, std::move(profile)); in Make()
[all …]

12345678910>>...118