Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 107 for powx (0.07 sec)

  1. android/guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

          binomialArguments[i][0] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials[k] - k) + k;
        }
      }
    
      @Benchmark
      int pow(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += LongMath.pow(positive[j], exponents[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int mod(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                        public void testPow() {
                            Powerize powerize = new Powerize();
                            Assert.assertEquals(1, powerize.pow(1, 1));
                            Assert.assertEquals(4, powerize.pow(2, 2));
                            Assert.assertEquals(1, powerize.pow(1, 2));
                        }
                    }
                """
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

          nonnegative[i] = randomNonNegativeBigInteger(Integer.SIZE - 1).intValue();
          ints[i] = RANDOM_SOURCE.nextInt();
        }
      }
    
      @Benchmark
      int pow(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.pow(positive[j], exponent[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int mod(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

        for (int i = 0; i < LongMath.halfPowersOf10.length; i++) {
          assertEquals(
              BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
              BigInteger.valueOf(LongMath.halfPowersOf10[i]));
        }
        BigInteger nextBigger =
            BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
        assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.cc

    #include <cmath>
    
    #include "absl/container/flat_hash_set.h"
    #include "tensorflow/core/framework/types.pb.h"
    
    namespace mlir {
    namespace TFL {
    
    double PowerOfTwoBound(double value) {
      return std::pow(2, std::ceil(std::log2(value)));
    }
    
    tensorflow::DataType GetQuantizedInferenceType(bool is_signed,
                                                   int number_of_bits) {
      if (is_signed && number_of_bits == 8) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 03 12:08:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/math/cmplx/cmath_test.go

    		if f := Pow(a, vc[i]); !cSoclose(pow[i], f, 4e-15) {
    			t.Errorf("Pow(%g, %g) = %g, want %g", a, vc[i], f, pow[i])
    		}
    	}
    	for i := 0; i < len(vcPowSC); i++ {
    		if f := Pow(vcPowSC[i][0], vcPowSC[i][1]); !cAlike(powSC[i], f) {
    			t.Errorf("Pow(%g, %g) = %g, want %g", vcPowSC[i][0], vcPowSC[i][1], f, powSC[i])
    		}
    	}
    	for _, pt := range branchPoints {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoAggregationIntegrationTest.groovy

                        public void testPow() {
                            Powerize powerize = new Powerize();
                            Assert.assertEquals(1, powerize.pow(1, 1));
                            Assert.assertEquals(4, powerize.pow(2, 2));
                            Assert.assertEquals(1, powerize.pow(1, 2));
                        }
                    }
                """
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 26.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/LongMathTest.java

        for (int i = 0; i < LongMath.halfPowersOf10.length; i++) {
          assertEquals(
              BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
              BigInteger.valueOf(LongMath.halfPowersOf10[i]));
        }
        BigInteger nextBigger =
            BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
        assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/Utf8Test.java

      // 18,304
      private static final long EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT =
          // Both bytes are one byte characters
          (long) Math.pow(EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT, 2)
              +
              // The possible number of two byte characters
              TWO_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 2048
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/math/arith_s390x_test.go

    		t.Skipf("no vector support")
    	}
    	for i := 0; i < len(vf); i++ {
    		if f := PowNovec(10, vf[i]); !close(pow[i], f) {
    			t.Errorf("Pow(10, %g) = %g, want %g", vf[i], f, pow[i])
    		}
    	}
    	for i := 0; i < len(vfpowSC); i++ {
    		if f := PowNovec(vfpowSC[i][0], vfpowSC[i][1]); !alike(powSC[i], f) {
    			t.Errorf("Pow(%g, %g) = %g, want %g", vfpowSC[i][0], vfpowSC[i][1], f, powSC[i])
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 10.8K bytes
    - Viewed (0)
Back to top