Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for isComplex (0.32 sec)

  1. src/go/internal/gcimporter/iimport.go

    		val = constant.MakeString(r.string())
    
    	case types.IsInteger:
    		var x big.Int
    		r.mpint(&x, b)
    		val = constant.Make(&x)
    
    	case types.IsFloat:
    		val = r.mpfloat(b)
    
    	case types.IsComplex:
    		re := r.mpfloat(b)
    		im := r.mpfloat(b)
    		val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    
    	default:
    		errorf("unexpected type %v", typ) // panics
    		panic("unreachable")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    	// and we have no context.  (If it was a method argument,
    	// we'd know what we need.) The syntax guides us to some extent.
    	s.at(constant)
    	switch {
    	case constant.IsComplex:
    		return reflect.ValueOf(constant.Complex128) // incontrovertible.
    
    	case constant.IsFloat &&
    		!isHexInt(constant.Text) && !isRuneInt(constant.Text) &&
    		strings.ContainsAny(constant.Text, ".eEpP"):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/expr.go

    func walkDivMod(n *ir.BinaryExpr, init *ir.Nodes) ir.Node {
    	n.X = walkExpr(n.X, init)
    	n.Y = walkExpr(n.Y, init)
    
    	// rewrite complex div into function call.
    	et := n.X.Type().Kind()
    
    	if types.IsComplex[et] && n.Op() == ir.ODIV {
    		t := n.Type()
    		call := mkcall("complex128div", types.Types[types.TCOMPLEX128], init, typecheck.Conv(n.X, types.Types[types.TCOMPLEX128]), typecheck.Conv(n.Y, types.Types[types.TCOMPLEX128]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

        MATCH(DT_STRING, string);
    
        // TODO(b/188995810): DenseElementsAttr::get doesn't support complex
        // Attributes being passed, so we bail out for now. This should just be
        //   MATCH(DT_COMPLEX64, scomplex) / 2;
        //   MATCH(DT_COMPLEX128, dcomplex) / 2;
        // when DenseElementsAttr is updated.
        case DT_COMPLEX64:
        case DT_COMPLEX128:
        default:
          return -1;
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/gradient_checker.cc

        const T& value, const bool expand_by_row) {
      (*jacobian)(row, col) = JAC_T{value};
    }
    
    template <typename T, typename JAC_T>
    typename std::enable_if<is_complex<T>::value>::type SetJacobian(
        typename TTypes<JAC_T>::Matrix* jacobian, const int row, const int col,
        const T& value, const bool expand_by_row) {
      (*jacobian)(row, col) = JAC_T{value.real()};
      if (expand_by_row) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top