Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TestExp (0.11 sec)

  1. src/crypto/internal/bigmod/nat_test.go

    	if x.Equal(expected) != 1 {
    		t.Errorf("%+v != %+v", x, expected)
    	}
    	x.Add(y, m)
    	expected = &Nat{[]uint{7}}
    	if x.Equal(expected) != 1 {
    		t.Errorf("%+v != %+v", x, expected)
    	}
    }
    
    func TestExp(t *testing.T) {
    	m := modulusFromBytes([]byte{13})
    	x := &Nat{[]uint{3}}
    	out := &Nat{[]uint{0}}
    	out.Exp(x, []byte{12}, m)
    	expected := &Nat{[]uint{1}}
    	if out.Equal(expected) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. src/math/all_test.go

    		if f := Erfcinv(Erfc(x)); !close(x, f) {
    			t.Errorf("Erfcinv(Erfc(%g)) = %g, want %g", x, f, x)
    		}
    	}
    }
    
    func TestExp(t *testing.T) {
    	testExp(t, Exp, "Exp")
    	testExp(t, ExpGo, "ExpGo")
    }
    
    func testExp(t *testing.T, Exp func(float64) float64, name string) {
    	for i := 0; i < len(vf); i++ {
    		if f := Exp(vf[i]); !veryclose(exp[i], f) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  3. src/math/cmplx/cmath_test.go

    			continue
    		}
    		// Cosh(-z)  == Cosh(z)
    		if f := Cosh(-v.in); !cAlike(v.want, f) && !cAlike(v.in, -v.in) {
    			t.Errorf("Cosh(%g) = %g, want %g", -v.in, f, v.want)
    		}
    	}
    }
    func TestExp(t *testing.T) {
    	for i := 0; i < len(vc); i++ {
    		if f := Exp(vc[i]); !cSoclose(exp[i], f, 1e-15) {
    			t.Errorf("Exp(%g) = %g, want %g", vc[i], f, exp[i])
    		}
    	}
    	for _, v := range expSC {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  4. src/math/big/int_test.go

    	},
    }
    
    func TestExp(t *testing.T) {
    	for i, test := range expTests {
    		x, ok1 := new(Int).SetString(test.x, 0)
    		y, ok2 := new(Int).SetString(test.y, 0)
    
    		var ok3, ok4 bool
    		var out, m *Int
    
    		if len(test.out) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %0 = "tfl.cos"(%arg0): (tensor<?xi32>) -> tensor<?xi32>
      func.return %0#0 : tensor<?xi32>
    }
    
    // -----
    
    // CHECK-LABEL: testExp
    func.func @testExp(tensor<? x f32>) -> tensor<? x f32> {
    ^bb0(%arg0: tensor<? x f32>):
      // CHECK: "tfl.exp"(%arg0)
      %0 = "tfl.exp"(%arg0): (tensor<? x f32>) -> tensor<? x f32>
      func.return %0 : tensor<? x f32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
Back to top