Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for abs (0.26 sec)

  1. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
        }
        if (StrictMath.abs(StrictMath.pow(2.0, trueLog2) - d)
            > StrictMath.abs(StrictMath.pow(2.0, StrictMath.nextUp(trueLog2)) - d)) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        return trueLog2;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/DoubleMathTest.java

        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
        }
        if (StrictMath.abs(StrictMath.pow(2.0, trueLog2) - d)
            > StrictMath.abs(StrictMath.pow(2.0, StrictMath.nextUp(trueLog2)) - d)) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        return trueLog2;
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  3. schema/index_test.go

    	Name5        int64  `gorm:"index:,class:FULLTEXT,comment:hello \\, world,where:age > 10"`
    	Name6        int64  `gorm:"index:profile,comment:hello \\, world,where:age > 10"`
    	Age          int64  `gorm:"index:profile,expression:ABS(age),option:WITH PARSER parser_name"`
    	OID          int64  `gorm:"index:idx_id;index:idx_oid,unique"`
    	MemberNumber string `gorm:"index:idx_id,priority:1"`
    	Name7        string `gorm:"index:type"`
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

          for (double i = 0; i < 100; i += 20) {
            v =
                v.add(
                    v.multiply(
                        BigInteger.valueOf(((Double) Math.abs(Math.sin(i) * 10.0)).longValue())));
          }
          return v;
        }
      }
    
      public enum ComparatorType {
        CHEAP {
          @Override
          public Comparator<Integer> get() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/LongMath.java

            break;
          case HALF_EVEN:
          case HALF_DOWN:
          case HALF_UP:
            long absRem = abs(rem);
            long cmpRemToHalfDivisor = absRem - (abs(q) - absRem);
            // subtracting two nonnegative longs can't overflow
            // cmpRemToHalfDivisor has the same sign as compare(abs(rem), abs(q) / 2).
            if (cmpRemToHalfDivisor == 0) { // exactly on the half mark
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/BaseCIFSTest.java

            if ( f != null ) {
                f.delete();
            }
        }
    
    
        protected String makeRandomName () {
            return "jcifs-test-" + Math.abs(this.rand.nextLong());
        }
    
    
        protected String makeRandomDirectoryName () {
            return makeRandomName() + "/";
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

              // to produce the message throws (probably StackOverflowError from delegate.toString())
              try {
                if (timer != null) {
                  long overDelayMs = Math.abs(timer.getDelay(TimeUnit.MILLISECONDS));
                  if (overDelayMs > 10) { // Not all timing drift is worth reporting
                    message += " (timeout delayed by " + overDelayMs + " ms after scheduled time)";
                  }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/array_grad_test.cc

      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
      EXPECT_EQ(outputs[0], nullptr);
      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[1], {1.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
      outputs[1]->Unref();
    }
    
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/nn_grad_test.cc

      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[0], {0.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
      outputs[0]->Unref();
    }
    
    TEST_P(CppGradients, TestSparseSoftmaxCrossEntropyWithLogitsGrad) {
      if (UseFunction()) {
        // TODO(b/168850692): Enable this.
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/gradient_checker.cc

      AbstractTensorHandle* f_outputs[1];
    
      // Numerical Grad Check
      for (int i = 0; i < num_elems; i++) {
        // Get relative epsilon value
        float epsilon = theta_data[i] == 0 ? 1e-4 : std::abs(theta_data[i] * 1e-4);
        AbstractTensorHandlePtr two_eps;
        {
          AbstractTensorHandle* two_eps_raw = nullptr;
          TF_RETURN_IF_ERROR(TestScalarTensorHandle<float, TF_FLOAT>(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
Back to top