Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for IsNaN (0.06 sec)

  1. src/math/sqrt.go

    // Note: On systems where Sqrt is a single instruction, the compiler
    // may turn a direct call into a direct use of that instruction instead.
    
    func sqrt(x float64) float64 {
    	// special cases
    	switch {
    	case x == 0 || IsNaN(x) || IsInf(x, 1):
    		return x
    	case x < 0:
    		return NaN()
    	}
    	ix := Float64bits(x)
    	// normalize x
    	exp := int((ix >> shift) & mask)
    	if exp == 0 { // subnormal x
    		for ix&(1<<shift) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 15 17:07:57 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  2. src/math/log1p.go

    		Lp6         = 1.531383769920937332e-01     // 3FC39A09D078C69F
    		Lp7         = 1.479819860511658591e-01     // 3FC2F112DF3E5244
    	)
    
    	// special cases
    	switch {
    	case x < -1 || IsNaN(x): // includes -Inf
    		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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/math/expm1.go

    		Q4 = 4.00821782732936239552e-06  // 0x3ED0CFCA86E65239
    		Q5 = -2.01099218183624371326e-07 // 0xBE8AFDB76E09C32D
    	)
    
    	// special cases
    	switch {
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/tests/opens2s_gnmt_mixed_precision.golden_summary

     TensorArrayV3 8
     TensorArrayWriteV3 9
     Unique 2
     VariableV2 164
     _Retval 5
    cluster 0 size 440
     Abs 40
     AddN 1
     Any 41
     Cast 40
     ConcatV2 2
     Const 95
     ExpandDims 2
     IsInf 1
     IsNan 40
     L2Loss 40
     LogicalOr 1
     Max 41
     Minimum 1
     Mul 82
     Pack 3
     Reciprocal 2
     Reshape 2
     ReverseSequence 1
     Sqrt 1
     Sum 1
     Transpose 3
    cluster 1 size 86
     BroadcastGradientArgs 1
     Cast 5
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 06 10:38:14 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/LinearTransformation.java

         * the transformation is vertical. (If it is zero, the transformation is horizontal.)
         */
        public LinearTransformation withSlope(double slope) {
          checkArgument(!Double.isNaN(slope));
          if (isFinite(slope)) {
            double yIntercept = y1 - x1 * slope;
            return new RegularLinearTransformation(slope, yIntercept);
          } else {
            return new VerticalLinearTransformation(x1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LinearTransformation.java

         * the transformation is vertical. (If it is zero, the transformation is horizontal.)
         */
        public LinearTransformation withSlope(double slope) {
          checkArgument(!Double.isNaN(slope));
          if (isFinite(slope)) {
            double yIntercept = y1 - x1 * slope;
            return new RegularLinearTransformation(slope, yIntercept);
          } else {
            return new VerticalLinearTransformation(x1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top