Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 391 for negate (0.16 sec)

  1. internal/s3select/sql/timestampfuncs.go

    // including timezone is ignored.
    func dateDiff(timePart string, ts1, ts2 time.Time) (*Value, error) {
    	if ts2.Before(ts1) {
    		v, err := dateDiff(timePart, ts2, ts1)
    		if err == nil {
    			v.negate()
    		}
    		return v, err
    	}
    
    	duration := ts2.Sub(ts1)
    	y1, m1, d1 := ts1.Date()
    	y2, m2, d2 := ts2.Date()
    
    	switch timePart {
    	case timePartYear:
    		dy := int64(y2 - y1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      public void testRoundToDouble_negativeWayTooBig() {
        BigDecimal bi = BigDecimal.valueOf(2).pow(2 * Double.MAX_EXPONENT).negate();
        new RoundToDoubleTester(bi)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  3. internal/s3select/sql/value.go

    		return string(x)
    	case []Value:
    		b, _ := json.Marshal(x)
    		return string(b)
    
    	default:
    		return "CSV serialization not implemented for this type"
    	}
    }
    
    // negate negates a numeric value
    func (v *Value) negate() {
    	switch x := v.value.(type) {
    	case float64:
    		v.value = -x
    	case int64:
    		v.value = -x
    	}
    }
    
    // Value comparison functions: we do not expose them outside the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  4. internal/dsync/dsync-server_test.go

    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	if _, reply = l.lockMap[args.Resources[0]]; !reply {
    		l.lockMap[args.Resources[0]] = WriteLock // No locks held on the given name, so claim write lock
    	}
    	reply = !reply // Negate *reply to return true when lock is granted or false otherwise
    	return reply, nil
    }
    
    func (l *lockServer) Unlock(args *LockArgs) (reply bool, err error) {
    	if d := atomic.LoadInt64(&l.responseDelay); d != 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  5. internal/s3select/sql/evaluate.go

    	}
    	return lval, nil
    }
    
    func (e *UnaryTerm) evalNode(r Record, tableAlias string) (*Value, error) {
    	if e.Negated == nil {
    		return e.Primary.evalNode(r, tableAlias)
    	}
    
    	v, err := e.Negated.Term.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    
    	inferTypeForArithOp(v)
    	v.negate()
    	if v.isNumeric() {
    		return v, nil
    	}
    	return nil, errArithMismatchedTypes
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/DoubleMath.java

       *
       * <ul>
       *   <li>If {@code x} is NaN or less than zero, the result is NaN.
       *   <li>If {@code x} is positive infinity, the result is positive infinity.
       *   <li>If {@code x} is positive or negative zero, the result is negative infinity.
       * </ul>
       *
       * <p>The computed result is within 1 ulp of the exact result.
       *
       * <p>If the result of this method will be immediately rounded to an {@code int}, {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/math_grad.cc

         *    dA =  U
         *    dB = -U
         *
         */
    
        // Grad for A
        DCHECK(grad_outputs[0]);
        grad_inputs[0] = grad_outputs[0];
        grad_inputs[0]->Ref();
    
        // Grad for B
        // negate the upstream grad
        std::string name = "Neg_Sub_Grad_B";
        TF_RETURN_IF_ERROR(
            ops::Neg(ctx, grad_outputs[0], &grad_inputs[1], name.c_str()));
    
        return absl::OkStatus();
      }
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_negativeWayTooBig() {
        BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT).negate();
        new RoundToDoubleTester(bi)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_negativeWayTooBig() {
        BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT).negate();
        new RoundToDoubleTester(bi)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/MediaType.java

      /** Matcher for type, subtype and attributes. */
      private static final CharMatcher TOKEN_MATCHER =
          ascii()
              .and(javaIsoControl().negate())
              .and(CharMatcher.isNot(' '))
              .and(CharMatcher.noneOf("()<>@,;:\\\"/[]?="));
    
      private static final CharMatcher QUOTED_TEXT_MATCHER = ascii().and(CharMatcher.noneOf("\"\\\r"));
    
      /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
Back to top