Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for isInfinity (0.17 sec)

  1. src/crypto/elliptic/elliptic_test.go

    	}
    
    	if !isInfinity(curve.ScalarMult(x0, y0, []byte{1, 2, 3})) {
    		t.Errorf("∞^k != ∞")
    	}
    	if !isInfinity(curve.ScalarMult(x0, y0, []byte{0})) {
    		t.Errorf("∞^0 != ∞")
    	}
    
    	if !isInfinity(curve.ScalarBaseMult(curve.Params().N.Bytes())) {
    		t.Errorf("b^q != ∞")
    	}
    	if !isInfinity(curve.ScalarBaseMult([]byte{0})) {
    		t.Errorf("b^0 != ∞")
    	}
    
    	if !isInfinity(curve.Double(x0, y0)) {
    		t.Errorf("2∞ != ∞")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256_asm.go

    	}
    	return uint64IsZero(acc)
    }
    
    // isInfinity returns 1 if p is the point at infinity and 0 otherwise.
    func (p *P256Point) isInfinity() int {
    	return p256Equal(&p.z, &p256Zero)
    }
    
    // Bytes returns the uncompressed or infinity encoding of p, as specified in
    // SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the point at
    // infinity is shorter than all other encodings.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

        if (attr.getNumElements() != 1 || !element_type.isIntOrFloat())
          return false;
        if (mlir::isa<FloatType>(element_type)) {
          auto value = *attr.value_begin<APFloat>();
          return value.isNegative() && value.isInfinity();
        } else if (element_type.isInteger(1)) {
          auto value = *attr.value_begin<APInt>();
          return value.isZero();
        } else {
          auto value = *attr.value_begin<APInt>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        if (mlir::isa<FloatType>(type)) {
          APFloat const_value(.0);
          if (failed(GetConstantSplatValue(init_value, const_value)) ||
              !const_value.isInfinity() || !const_value.isNegative())
            return failure();
        } else if (mlir::isa<IntegerType>(type) && type.isSignlessInteger()) {
          APInt const_value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  5. src/math/bits.go

    	return f != f
    }
    
    // IsInf reports whether f is an infinity, according to sign.
    // If sign > 0, IsInf reports whether f is positive infinity.
    // If sign < 0, IsInf reports whether f is negative infinity.
    // If sign == 0, IsInf reports whether f is either infinity.
    func IsInf(f float64, sign int) bool {
    	// Test for infinity by comparing against maximum float.
    	// To avoid the floating-point hardware, could use:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. pkg/keepalive/options.go

    import (
    	"math"
    	"time"
    
    	"github.com/spf13/cobra"
    	"google.golang.org/grpc"
    	"google.golang.org/grpc/keepalive"
    
    	"istio.io/istio/pkg/env"
    )
    
    const (
    	// Infinity is the maximum possible duration for keepalive values
    	Infinity = time.Duration(math.MaxInt64)
    )
    
    var (
    	// grpcKeepaliveInterval sets the gRPC KeepAlive Interval
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. src/math/cmplx/isinf.go

    package cmplx
    
    import "math"
    
    // IsInf reports whether either real(x) or imag(x) is an infinity.
    func IsInf(x complex128) bool {
    	if math.IsInf(real(x), 0) || math.IsInf(imag(x), 0) {
    		return true
    	}
    	return false
    }
    
    // Inf returns a complex infinity, complex(+Inf, +Inf).
    func Inf() complex128 {
    	inf := math.Inf(1)
    	return complex(inf, inf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 02 22:47:58 UTC 2018
    - 506 bytes
    - Viewed (0)
  8. src/crypto/elliptic/elliptic.go

    )
    
    // A Curve represents a short-form Weierstrass curve with a=-3.
    //
    // The behavior of Add, Double, and ScalarMult when the input is not a point on
    // the curve is undefined.
    //
    // Note that the conventional point at infinity (0, 0) is not considered on the
    // curve, although it can be returned by Add, Double, ScalarMult, or
    // ScalarBaseMult (but not the [Unmarshal] or [UnmarshalCompressed] functions).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. src/runtime/float.go

    func isNaN(f float64) (is bool) {
    	// IEEE 754 says that only NaNs satisfy f != f.
    	return f != f
    }
    
    // isFinite reports whether f is neither NaN nor an infinity.
    func isFinite(f float64) bool {
    	return !isNaN(f - f)
    }
    
    // isInf reports whether f is an infinity.
    func isInf(f float64) bool {
    	return !isNaN(f) && !isFinite(f)
    }
    
    // abs returns the absolute value of x.
    //
    // Special cases are:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/DoubleMath.java

       *
       * <p>Special cases:
       *
       * <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.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top