Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for abs (0.02 seconds)

  1. android/guava/src/com/google/common/math/DoubleUtils.java

      }
    
      static double bigToDouble(BigInteger x) {
        // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending.
        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
        } else if (exponent > MAX_EXPONENT) {
          return x.signum() * POSITIVE_INFINITY;
        }
    
        /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 5K bytes
    - Click Count (0)
  2. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java

            docBoostMatcher.setBoostExpression("'3.14'");
    
            final Map<String, Object> map = new HashMap<String, Object>();
            map.put("data1", 1);
            assertTrue(Math.abs(3.14f - docBoostMatcher.getValue(map)) < 0.001f);
        }
    
        @Test
        public void test_getValue_emptyStringReturn() {
            final DocBoostMatcher docBoostMatcher = new DocBoostMatcher();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                long diff1 = result1 - result0;
                long diff7 = result7 - result0;
                assertTrue("1 day should be approximately ONE_DAY_IN_MILLIS", Math.abs(diff1 - Constants.ONE_DAY_IN_MILLIS) < 10000);
                assertTrue("7 days should be approximately 7 * ONE_DAY_IN_MILLIS", Math.abs(diff7 - 7 * Constants.ONE_DAY_IN_MILLIS) < 10000);
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            final long now = System.currentTimeMillis();
            assertTrue(Math.abs(currentTime.getTime() - now) < 1000);
        }
    
        @Test
        public void test_getCurrentTimeAsLong() {
            final long currentTime = systemHelper.getCurrentTimeAsLong();
            final long now = System.currentTimeMillis();
            assertTrue(Math.abs(currentTime - now) < 1000);
        }
    
        @Test
        public void test_destroy() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            assertTrue(currentTime > 0);
    
            long currentTimeMillis = System.currentTimeMillis();
            // Allow for small time difference
            assertTrue(Math.abs(currentTime - currentTimeMillis) < 1000);
        }
    
        @Test
        public void test_constants() {
            assertEquals("userRoles", RoleQueryHelper.USER_ROLES);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  7. RELEASE.md

    *   Enable JIT-compiled i64-indexed kernels on GPU for large tensors with more than 2**32 elements.
        *   Unary GPU kernels: Abs, Atanh, Acos, Acosh, Asin, Asinh, Atan, Cos, Cosh, Sin, Sinh, Tan, Tanh.
        *   Binary GPU kernels: AddV2, Sub, Div, DivNoNan, Mul, MulNoNan, FloorDiv, Equal, NotEqual, Greater, GreaterEqual, LessEqual, Less.
    
    * `tf.lite`
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 18:31:38 GMT 2026
    - 746.5K bytes
    - Click Count (3)
Back to Top