Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 326 for ABS (0.03 sec)

  1. test/typeparam/absdiff.go

    		~complex64 | ~complex128
    }
    
    // numericAbs matches numeric types with an Abs method.
    type numericAbs[T any] interface {
    	Numeric
    	Abs() T
    }
    
    // AbsDifference computes the absolute value of the difference of
    // a and b, where the absolute value is determined by the Abs method.
    func absDifference[T numericAbs[T]](a, b T) T {
    	d := a - b
    	return d.Abs()
    }
    
    // orderedNumeric matches numeric types that support the < operator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. test/typeparam/absdiffimp.dir/a.go

    		~complex64 | ~complex128
    }
    
    // numericAbs matches numeric types with an Abs method.
    type numericAbs[T any] interface {
    	Numeric
    	Abs() T
    }
    
    // AbsDifference computes the absolute value of the difference of
    // a and b, where the absolute value is determined by the Abs method.
    func absDifference[T numericAbs[T]](a, b T) T {
    	d := a - b
    	return d.Abs()
    }
    
    // orderedNumeric matches numeric types that support the < operator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 00:11:24 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/internal/objabi/line_test.go

    }
    
    func TestAbsFile(t *testing.T) {
    	for _, tt := range absFileTests {
    		abs := filepath.FromSlash(AbsFile(filepath.FromSlash(tt.dir), filepath.FromSlash(tt.file), tt.rewrites))
    		want := filepath.FromSlash(tt.abs)
    		if abs != want {
    			t.Errorf("AbsFile(%q, %q, %q) = %q, want %q", tt.dir, tt.file, tt.rewrites, abs, want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 12:01:30 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-stablehlo-vhlo.mlir

      %0 = stablehlo.abs %arg0 : tensor<f32>
      %1 = tfl.add %0, %arg0 {fused_activation_function = "NONE"} : tensor<f32>
      %2 = stablehlo.abs %1 : tensor<f32>
      return %2 :  tensor<f32>
    }
    
    // -----
    
    // CHECK-LABEL: mixed_tfl_shlo_tfl
    func.func @mixed_tfl_shlo_tfl(%arg0 : tensor<f32>) -> (tensor<f32>) {
      %0 = "tfl.abs"(%arg0) {fused_activation_function = "NONE"} : (tensor<f32>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 22:39:35 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. test/typeparam/absdiff2.go

    type numericAbs[T Numeric] interface {
    	~struct{ Value_ T }
    	Abs() T
    	Value() T
    }
    
    // absDifference computes the absolute value of the difference of
    // a and b, where the absolute value is determined by the Abs method.
    func absDifference[T Numeric, U numericAbs[T]](a, b U) T {
    	d := a.Value() - b.Value()
    	dt := U{Value_: d}
    	return dt.Abs()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. test/typeparam/absdiffimp2.dir/a.go

    type numericAbs[T Numeric] interface {
    	~struct{ Value_ T }
    	Abs() T
    	Value() T
    }
    
    // absDifference computes the absolute value of the difference of
    // a and b, where the absolute value is determined by the Abs method.
    func absDifference[T Numeric, U numericAbs[T]](a, b U) T {
    	d := a.Value() - b.Value()
    	dt := U{Value_: d}
    	return dt.Abs()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/linalg.go

    	}
    	return r
    }
    
    // NumericAbs matches numeric types with an Abs method.
    type NumericAbs[T any] interface {
    	Numeric
    
    	Abs() T
    }
    
    // AbsDifference computes the absolute value of the difference of
    // a and b, where the absolute value is determined by the Abs method.
    func AbsDifference[T NumericAbs[T]](a, b T) T {
    	d := a - b
    	return d.Abs()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/math/big/ratconv.go

    		if n > 1e6 {
    			return nil, false // avoid excessively large exponents
    		}
    		pow5 := z.b.abs.expNN(natFive, nat(nil).setWord(Word(n)), nil, false) // use underlying array of z.b.abs
    		if exp5 > 0 {
    			z.a.abs = z.a.abs.mul(z.a.abs, pow5)
    			z.b.abs = z.b.abs.setWord(1)
    		} else {
    			z.b.abs = pow5
    		}
    	} else {
    		z.b.abs = z.b.abs.setWord(1)
    	}
    
    	// apply exp2 contributions
    	if exp2 < -1e7 || exp2 > 1e7 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  9. src/math/floor.go

    	//   t := Trunc(x)
    	//   if Abs(x-t) >= 0.5 {
    	//     return t + Copysign(1, x)
    	//   }
    	//   return t
    	// }
    	bits := Float64bits(x)
    	e := uint(bits>>shift) & mask
    	if e < bias {
    		// Round abs(x) < 1 including denormals.
    		bits &= signMask // +-0
    		if e == bias-1 {
    			bits |= uvone // +-1
    		}
    	} else if e < bias+shift {
    		// Round any abs(x) >= 1 containing a fractional component [0,1).
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/workcmd/use.go

    func pathRel(workDir, dir string) (abs, canonical string) {
    	if filepath.IsAbs(dir) {
    		abs = filepath.Clean(dir)
    		return abs, abs
    	}
    
    	abs = filepath.Join(base.Cwd(), dir)
    	rel, err := filepath.Rel(workDir, abs)
    	if err != nil {
    		// The path can't be made relative to the go.work file,
    		// so it must be kept absolute instead.
    		return abs, abs
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top