Home
last modified time | relevance | path

Searched full:scale (Results 1 – 25 of 8855) sorted by relevance

12345678910>>...355

/external/bc/tests/bc/scripts/
Datan.txt1 scale = 1
4 scale = 2
7 scale = 3
10 scale = 4
13 scale = 5
16 scale = 6
19 scale = 7
22 scale = 8
25 scale = 9
28 scale = 10
[all …]
/external/bc/tests/bc/
Dscale.txt1 scale(0)
2 scale(1)
3 scale(12)
4 scale(123)
5 scale(1234)
6 scale(12345)
7 scale(123456)
8 scale(1234567)
9 scale(12345678)
10 scale(123456789)
[all …]
/external/skia/docs/examples/
DChromeMDRefreshTab.cpp5 SkPath GetBorderPath(float scale, in GetBorderPath() argument
10 // const float top = scale - 1; in GetBorderPath()
11 const float right = size.fWidth * scale; in GetBorderPath()
12 const float bottom = size.fHeight * scale; in GetBorderPath()
13 const float scaled_endcap_radius = (endcap_width / 2) * scale; in GetBorderPath()
22 // path.rCubicTo(0.75 * scale, 0, 1.625 * scale, -0.5 * scale, 2 * scale, in GetBorderPath()
23 // -1.5 * scale); in GetBorderPath()
25 // path.lineTo((endcap_width - 2) * scale, top + 1.5 * scale); in GetBorderPath()
33 // const float dy = 2.5 * scale - 1; in GetBorderPath()
36 // path.lineTo(right - (endcap_width - 2) * scale - dx, 0); in GetBorderPath()
[all …]
DChromeMDRefreshTabs.cpp6 float scale, const SkISize& size, float endcap_width, float horizontal_inset = 0) { in GetInteriorPath() argument
7 const float right = size.fWidth * scale; in GetInteriorPath()
10 const float bottom = std::ceil(size.fHeight * scale); in GetInteriorPath()
12 // const float scaled_horizontal_inset = horizontal_inset * scale; in GetInteriorPath()
27 // right_path.rCubicTo(-0.75 * scale, 0, -1.625 * scale, -0.5 * scale, in GetInteriorPath()
28 // -2 * scale, -1.5 * scale); in GetInteriorPath()
32 // right - 1 - scaled_horizontal_inset - (endcap_width - 2) * scale, in GetInteriorPath()
33 // 2.5 * scale); in GetInteriorPath()
37 // right_path.rCubicTo(-0.375 * scale, -1 * scale, -1.25 * scale, -1.5 * scale, in GetInteriorPath()
38 // -2 * scale, -1.5 * scale); in GetInteriorPath()
[all …]
/external/python/cpython3/Lib/turtledemo/
Dbytedesign.py32 def design(self, homePos, scale): argument
35 self.forward(64.65 * scale)
37 self.wheel(self.position(), scale)
39 self.backward(64.65 * scale)
44 self.forward(24.5 * scale)
47 self.centerpiece(46 * scale, 143.4, scale)
50 def wheel(self, initpos, scale): argument
53 self.pentpiece(initpos, scale)
57 self.tripiece(initpos, scale)
62 self.forward(28 * scale)
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/
DTimeScaleAPITest.java50 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromBigDecimal()
52 UniversalTimeScale.bigDecimalFrom(bigZero, scale); in TestBigDecimalFromBigDecimal()
54 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromBigDecimal()
76 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromDouble()
78 UniversalTimeScale.bigDecimalFrom(0.0, scale); in TestBigDecimalFromDouble()
80 errln("bigDecimalFrom(0.0, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromDouble()
102 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromLong()
104 UniversalTimeScale.bigDecimalFrom(0L, scale); in TestBigDecimalFromLong()
106 errln("bigDecimalFrom(0L, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromLong()
130 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestFromLong()
[all …]
DTimeScaleDataTest.java46 private void roundTripTest(long value, int scale) in roundTripTest() argument
48 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest()
51 … errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt); in roundTripTest()
55 private void toLimitTest(long toLimit, long fromLimit, int scale) in toLimitTest() argument
57 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest()
60 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit + in toLimitTest()
61 ", toLong(toLimit, scale) = " + result + ", fromLimit = " + fromLimit); in toLimitTest()
65 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument
68 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest()
71 … errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + in epochOffsetTest()
[all …]
/external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/timescale/
DTimeScaleAPITest.java47 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromBigDecimal()
49 UniversalTimeScale.bigDecimalFrom(bigZero, scale); in TestBigDecimalFromBigDecimal()
51 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromBigDecimal()
73 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromDouble()
75 UniversalTimeScale.bigDecimalFrom(0.0, scale); in TestBigDecimalFromDouble()
77 errln("bigDecimalFrom(0.0, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromDouble()
99 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromLong()
101 UniversalTimeScale.bigDecimalFrom(0L, scale); in TestBigDecimalFromLong()
103 errln("bigDecimalFrom(0L, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromLong()
127 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestFromLong()
[all …]
DTimeScaleDataTest.java43 private void roundTripTest(long value, int scale) in roundTripTest() argument
45 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest()
48 … errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt); in roundTripTest()
52 private void toLimitTest(long toLimit, long fromLimit, int scale) in toLimitTest() argument
54 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest()
57 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit + in toLimitTest()
58 ", toLong(toLimit, scale) = " + result + ", fromLimit = " + fromLimit); in toLimitTest()
62 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument
65 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest()
68 … errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + in epochOffsetTest()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java10 * point is called the <code>scale</code> of the <code>SimpleBigDecimal</code>.
11 * Unlike in {@link java.math.BigDecimal BigDecimal}, the scale is not adjusted
13 * taking part in the same arithmetic operation must have equal scale. The
15 * <code>SimpleBigDecimal</code> with double scale.
23 private final int scale; field in SimpleBigDecimal
30 * @param scale The scale of the <code>SimpleBigDecimal</code> to be
34 public static SimpleBigDecimal getInstance(BigInteger value, int scale) in getInstance() argument
36 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance()
42 * 2<sup>scale</sup></code>.
44 * @param scale The scale of the constructed <code>SimpleBigDecimal</code>.
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DSimpleBigDecimal.java11 * point is called the <code>scale</code> of the <code>SimpleBigDecimal</code>.
12 * Unlike in {@link java.math.BigDecimal BigDecimal}, the scale is not adjusted
14 * taking part in the same arithmetic operation must have equal scale. The
16 * <code>SimpleBigDecimal</code> with double scale.
24 private final int scale; field in SimpleBigDecimal
31 * @param scale The scale of the <code>SimpleBigDecimal</code> to be
35 public static SimpleBigDecimal getInstance(BigInteger value, int scale) in getInstance() argument
37 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance()
43 * 2<sup>scale</sup></code>.
45 * @param scale The scale of the constructed <code>SimpleBigDecimal</code>.
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DSimpleBigDecimal.java11 * point is called the <code>scale</code> of the <code>SimpleBigDecimal</code>.
12 * Unlike in {@link java.math.BigDecimal BigDecimal}, the scale is not adjusted
14 * taking part in the same arithmetic operation must have equal scale. The
16 * <code>SimpleBigDecimal</code> with double scale.
24 private final int scale; field in SimpleBigDecimal
31 * @param scale The scale of the <code>SimpleBigDecimal</code> to be
35 public static SimpleBigDecimal getInstance(BigInteger value, int scale) in getInstance() argument
37 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance()
43 * 2<sup>scale</sup></code>.
45 * @param scale The scale of the constructed <code>SimpleBigDecimal</code>.
[all …]
/external/cronet/tot/third_party/llvm-libc/src/AOR_v20.02/math/
Dv_powf.c42 #define SCALE ((double) (1 << SBITS)) macro
55 { 0x1.661ec79f8f3bep+0, -0x1.efec65b963019p-2 * SCALE },
56 { 0x1.571ed4aaf883dp+0, -0x1.b0b6832d4fca4p-2 * SCALE },
57 { 0x1.49539f0f010bp+0, -0x1.7418b0a1fb77bp-2 * SCALE },
58 { 0x1.3c995b0b80385p+0, -0x1.39de91a6dcf7bp-2 * SCALE },
59 { 0x1.30d190c8864a5p+0, -0x1.01d9bf3f2b631p-2 * SCALE },
60 { 0x1.25e227b0b8eap+0, -0x1.97c1d1b3b7afp-3 * SCALE },
61 { 0x1.1bb4a4a1a343fp+0, -0x1.2f9e393af3c9fp-3 * SCALE },
62 { 0x1.12358f08ae5bap+0, -0x1.960cbbf788d5cp-4 * SCALE },
63 { 0x1.0953f419900a7p+0, -0x1.a6f9db6475fcep-5 * SCALE },
[all …]
/external/cronet/stable/third_party/llvm-libc/src/AOR_v20.02/math/
Dv_powf.c42 #define SCALE ((double) (1 << SBITS)) macro
55 { 0x1.661ec79f8f3bep+0, -0x1.efec65b963019p-2 * SCALE },
56 { 0x1.571ed4aaf883dp+0, -0x1.b0b6832d4fca4p-2 * SCALE },
57 { 0x1.49539f0f010bp+0, -0x1.7418b0a1fb77bp-2 * SCALE },
58 { 0x1.3c995b0b80385p+0, -0x1.39de91a6dcf7bp-2 * SCALE },
59 { 0x1.30d190c8864a5p+0, -0x1.01d9bf3f2b631p-2 * SCALE },
60 { 0x1.25e227b0b8eap+0, -0x1.97c1d1b3b7afp-3 * SCALE },
61 { 0x1.1bb4a4a1a343fp+0, -0x1.2f9e393af3c9fp-3 * SCALE },
62 { 0x1.12358f08ae5bap+0, -0x1.960cbbf788d5cp-4 * SCALE },
63 { 0x1.0953f419900a7p+0, -0x1.a6f9db6475fcep-5 * SCALE },
[all …]
/external/cronet/stable/third_party/icu/source/test/cintltst/
Dutmstest.c102 static void roundTripTest(int64_t value, UDateTimeScale scale) in roundTripTest() argument
105 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status); in roundTripTest()
108 …log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt); in roundTripTest()
112 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest() argument
115 int64_t result = utmscale_toInt64(toLimit, scale, &status); in toLimitTest()
118 …log_err("toLimit failure: scale = %d, toLimit = %lld , utmscale_toInt64(toLimit, scale, &status) =… in toLimitTest()
119 scale, toLimit, result, fromLimit); in toLimitTest()
123 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest() argument
128 int64_t local = utmscale_toInt64(universalEpoch, scale, &status); in epochOffsetTest()
131 …log_err("utmscale_toInt64(epochOffset, scale, &status): scale = %d epochOffset = %lld, result = %l… in epochOffsetTest()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dutmstest.c102 static void roundTripTest(int64_t value, UDateTimeScale scale) in roundTripTest() argument
105 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status); in roundTripTest()
108 …log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt); in roundTripTest()
112 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest() argument
115 int64_t result = utmscale_toInt64(toLimit, scale, &status); in toLimitTest()
118 …log_err("toLimit failure: scale = %d, toLimit = %lld , utmscale_toInt64(toLimit, scale, &status) =… in toLimitTest()
119 scale, toLimit, result, fromLimit); in toLimitTest()
123 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest() argument
128 int64_t local = utmscale_toInt64(universalEpoch, scale, &status); in epochOffsetTest()
131 …log_err("utmscale_toInt64(epochOffset, scale, &status): scale = %d epochOffset = %lld, result = %l… in epochOffsetTest()
[all …]
/external/cronet/tot/third_party/icu/source/test/cintltst/
Dutmstest.c102 static void roundTripTest(int64_t value, UDateTimeScale scale) in roundTripTest() argument
105 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status); in roundTripTest()
108 …log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt); in roundTripTest()
112 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest() argument
115 int64_t result = utmscale_toInt64(toLimit, scale, &status); in toLimitTest()
118 …log_err("toLimit failure: scale = %d, toLimit = %lld , utmscale_toInt64(toLimit, scale, &status) =… in toLimitTest()
119 scale, toLimit, result, fromLimit); in toLimitTest()
123 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest() argument
128 int64_t local = utmscale_toInt64(universalEpoch, scale, &status); in epochOffsetTest()
131 …log_err("utmscale_toInt64(epochOffset, scale, &status): scale = %d epochOffset = %lld, result = %l… in epochOffsetTest()
[all …]
/external/pytorch/torch/ao/nn/quantized/modules/
Dnormalization.py18 * **scale** - quantization scale of the output, type: double.
28 scale, argument
44 self.register_buffer("scale", torch.tensor(scale, **factory_kwargs))
54 output_scale=self.scale,
63 scale, zero_point = mod.activation_post_process.calculate_qparams()
68 float(scale),
76 def from_reference(cls, mod, scale, zero_point): argument
81 float(scale),
92 * **scale** - quantization scale of the output, type: double.
104 scale, argument
[all …]
Dactivation.py63 scale: quantization scale of the output tensor
67 def __init__(self, scale, zero_point, device=None, dtype=None): argument
70 self.register_buffer("scale", torch.tensor(scale, **factory_kwargs))
74 return torch.ops.quantized.hardswish(input, self.scale, self.zero_point)
81 scale, zero_point = mod.activation_post_process.calculate_qparams()
82 return Hardswish(float(scale), int(zero_point))
85 def from_reference(cls, mod, scale, zero_point): argument
86 return cls(float(scale), int(zero_point))
93 scale: quantization scale of the output tensor
98 def __init__(self, scale, zero_point, alpha=1.0): argument
[all …]
/external/bc/gen/
Dlib2.bc38 if(y==0)return 1@scale
44 if(y==a)return(x^a)@scale
56 s=scale
57 scale+=length(i)+5
63 scale=s
64 return i@scale
73 if(p<scale(x)&&x-t>=5>>p+1)t+=1>>p
108 s=scale
109 scale=0
111 scale=s
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math3/distribution/
DParetoDistribution.java40 * <li>{@code k} is the <em>scale</em> parameter: this is the minimum possible value of {@code X},
58 /** The scale parameter of this distribution. */
59 private final double scale; field in ParetoDistribution
67 /** Create a Pareto distribution with a scale of {@code 1} and a shape of {@code 1}. */
73 * Create a Pareto distribution using the specified scale and shape.
81 * @param scale the scale parameter of this distribution
83 * @throws NotStrictlyPositiveException if {@code scale <= 0} or {@code shape <= 0}.
85 public ParetoDistribution(double scale, double shape) throws NotStrictlyPositiveException { in ParetoDistribution() argument
86 this(scale, shape, DEFAULT_INVERSE_ABSOLUTE_ACCURACY); in ParetoDistribution()
90 * Create a Pareto distribution using the specified scale, shape and inverse cumulative
[all …]
/external/libgav1/src/dsp/x86/
Dintrapred_smooth_sse4.cc145 // weight_h[1]: scale - weight_h vector
148 // weight_w[0]: weights_w and scale - weights_w interleave vector
152 const __m128i scale = _mm_set1_epi16(256); in LoadSmoothWeights4() local
155 weight_h[1] = _mm_sub_epi16(scale, weight_h[0]); in LoadSmoothWeights4()
161 weight_h[1] = _mm_sub_epi16(scale, weight_h[0]); in LoadSmoothWeights4()
166 weight_h[1] = _mm_sub_epi16(scale, weight_h[0]); in LoadSmoothWeights4()
168 weight_h[3] = _mm_sub_epi16(scale, weight_h[2]); in LoadSmoothWeights4()
216 const __m128i scale = _mm_set1_epi32(256); in Smooth4x4_SSE4_1() local
221 const __m128i inverted_weights = _mm_sub_epi32(scale, weights); in Smooth4x4_SSE4_1()
231 scaled_top_right, scale); in Smooth4x4_SSE4_1()
[all …]
/external/cronet/stable/third_party/icu/source/i18n/
Dnumber_multiplier.cpp25 Scale::Scale(int32_t magnitude, DecNum* arbitraryToAdopt) in Scale() function in Scale
40 Scale::Scale(const Scale& other) in Scale() function in Scale
48 Scale& Scale::operator=(const Scale& other) { in operator =()
61 Scale::Scale(Scale&& src) noexcept in Scale() function in Scale
67 Scale& Scale::operator=(Scale&& src) noexcept { in operator =()
79 Scale::~Scale() { in ~Scale()
84 Scale Scale::none() { in none()
88 Scale Scale::powerOfTen(int32_t power) { in powerOfTen()
92 Scale Scale::byDecimal(StringPiece multiplicand) { in byDecimal()
105 Scale Scale::byDouble(double multiplicand) { in byDouble()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_multiplier.cpp25 Scale::Scale(int32_t magnitude, DecNum* arbitraryToAdopt) in Scale() function in Scale
40 Scale::Scale(const Scale& other) in Scale() function in Scale
48 Scale& Scale::operator=(const Scale& other) { in operator =()
61 Scale::Scale(Scale&& src) noexcept in Scale() function in Scale
67 Scale& Scale::operator=(Scale&& src) noexcept { in operator =()
77 Scale::~Scale() { in ~Scale()
82 Scale Scale::none() { in none()
86 Scale Scale::powerOfTen(int32_t power) { in powerOfTen()
90 Scale Scale::byDecimal(StringPiece multiplicand) { in byDecimal()
103 Scale Scale::byDouble(double multiplicand) { in byDouble()
[all …]
/external/cronet/tot/third_party/icu/source/i18n/
Dnumber_multiplier.cpp25 Scale::Scale(int32_t magnitude, DecNum* arbitraryToAdopt) in Scale() function in Scale
40 Scale::Scale(const Scale& other) in Scale() function in Scale
48 Scale& Scale::operator=(const Scale& other) { in operator =()
61 Scale::Scale(Scale&& src) noexcept in Scale() function in Scale
67 Scale& Scale::operator=(Scale&& src) noexcept { in operator =()
79 Scale::~Scale() { in ~Scale()
84 Scale Scale::none() { in none()
88 Scale Scale::powerOfTen(int32_t power) { in powerOfTen()
92 Scale Scale::byDecimal(StringPiece multiplicand) { in byDecimal()
105 Scale Scale::byDouble(double multiplicand) { in byDouble()
[all …]

12345678910>>...355