Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,199 for absX (0.21 sec)

  1. 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;
        }
    
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  2. src/math/expm1.go

    	case IsInf(x, 1) || IsNaN(x):
    		return x
    	case IsInf(x, -1):
    		return -1
    	}
    
    	absx := x
    	sign := false
    	if x < 0 {
    		absx = -absx
    		sign = true
    	}
    
    	// filter out huge argument
    	if absx >= Ln2X56 { // if |x| >= 56 * ln2
    		if sign {
    			return -1 // x < -56*ln2, return -1
    		}
    		if absx >= Othreshold { // if |x| >= 709.78...
    			return Inf(1)
    		}
    	}
    
    	// argument reduction
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. 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;
        }
    
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  4. src/math/log1p.go

    		return NaN()
    	case x == -1:
    		return Inf(-1)
    	case IsInf(x, 1):
    		return Inf(1)
    	}
    
    	absx := Abs(x)
    
    	var f float64
    	var iu uint64
    	k := 1
    	if absx < Sqrt2M1 { //  |x| < Sqrt(2)-1
    		if absx < Small { // |x| < 2**-29
    			if absx < Tiny { // |x| < 2**-54
    				return x
    			}
    			return x - x*x*0.5
    		}
    		if x > Sqrt2HalfM1 { // Sqrt(2)/2-1 < x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. src/math/abs.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // Abs returns the absolute value of x.
    //
    // Special cases are:
    //
    //	Abs(±Inf) = +Inf
    //	Abs(NaN) = NaN
    func Abs(x float64) float64 {
    	return Float64frombits(Float64bits(x) &^ (1 << 63))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 366 bytes
    - Viewed (0)
  6. src/math/cmplx/abs.go

    // complex numbers. Special case handling conforms to the C99 standard
    // Annex G IEC 60559-compatible complex arithmetic.
    package cmplx
    
    import "math"
    
    // Abs returns the absolute value (also called the modulus) of x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 523 bytes
    - Viewed (0)
  7. src/cmd/internal/obj/mips/anames.go

    // Code generated by stringer -i a.out.go -o anames.go -p mips; DO NOT EDIT.
    
    package mips
    
    import "cmd/internal/obj"
    
    var Anames = []string{
    	obj.A_ARCHSPECIFIC: "ABSD",
    	"ABSF",
    	"ABSW",
    	"ADD",
    	"ADDD",
    	"ADDF",
    	"ADDU",
    	"ADDW",
    	"AND",
    	"BEQ",
    	"BFPF",
    	"BFPT",
    	"BGEZ",
    	"BGEZAL",
    	"BGTZ",
    	"BLEZ",
    	"BLTZ",
    	"BLTZAL",
    	"BNE",
    	"BREAK",
    	"CLO",
    	"CLZ",
    	"CMOVF",
    	"CMOVN",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc

                                                      Operation *module) {
      // Find the op names with tf or tfl dialect prefix, Ex: "tf.Abs" or "tfl.Abs".
      auto collectOps = [this](Operation *op) {
        const auto &op_name = op->getName().getStringRef().str();
        if (absl::StartsWith(op_name, "tf.") || absl::StartsWith(op_name, "tfl.")) {
          loc_to_name_.emplace(op->getLoc(), op_name);
        }
      };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. test/typeparam/mdempsky/13.go

    func (MyMer) String() string {
    	return "aa"
    }
    
    // Parameterized interface
    type Abs[T any] interface {
    	Abs() T
    }
    
    func G[T Abs[U], U any](t T) {
    	T.Abs(t)
    	t.Abs()
    }
    
    type MyInt int
    func (m MyInt) Abs() MyInt {
    	if m < 0 {
    		return -m
    	}
    	return m
    }
    
    type Abs2 interface {
    	Abs() MyInt
    }
    
    
    func main() {
    	mm := MyMer(3)
    	ms := struct{ Mer }{Mer: mm }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 14 17:55:47 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm/anames.go

    	"MULSF",
    	"MULSD",
    	"NMULSF",
    	"NMULSD",
    	"FMULAF",
    	"FMULAD",
    	"FNMULAF",
    	"FNMULAD",
    	"FMULSF",
    	"FMULSD",
    	"FNMULSF",
    	"FNMULSD",
    	"DIVF",
    	"DIVD",
    	"SQRTF",
    	"SQRTD",
    	"ABSF",
    	"ABSD",
    	"NEGF",
    	"NEGD",
    	"SRL",
    	"SRA",
    	"SLL",
    	"MULU",
    	"DIVU",
    	"MUL",
    	"MMUL",
    	"DIV",
    	"MOD",
    	"MODU",
    	"DIVHW",
    	"DIVUHW",
    	"MOVB",
    	"MOVBS",
    	"MOVBU",
    	"MOVH",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 16 15:58:33 UTC 2019
    - 1.4K bytes
    - Viewed (0)
Back to top