Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Complex64 (0.34 sec)

  1. src/reflect/value.go

    	switch v.kind() {
    	case Complex64, Complex128:
    		return true
    	default:
    		return false
    	}
    }
    
    // Complex returns v's underlying value, as a complex128.
    // It panics if v's Kind is not [Complex64] or [Complex128]
    func (v Value) Complex() complex128 {
    	k := v.kind()
    	switch k {
    	case Complex64:
    		return complex128(*(*complex64)(v.ptr))
    	case Complex128:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	{x: []float32{1.414}, y: []float32{1.414}},
    	{x: float64(1.414), y: float64(1.414)},
    	{x: []float64{1.414}, y: []float64{1.414}},
    
    	{x: complex64(1.414), y: complex64(1.414)},
    	{x: []complex64{1.414}, y: []complex64{1.414}},
    	{x: complex128(1.414), y: complex128(1.414)},
    	{x: []complex128{1.414}, y: []complex128{1.414}},
    
    	{x: true, y: true},
    	{x: []bool{true}, y: []bool{true}},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top