Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 90 for Unary (0.04 sec)

  1. src/cmd/compile/internal/syntax/printer.go

    	case *CallExpr:
    		p.print(n.Fun, _Lparen)
    		p.printExprList(n.ArgList)
    		if n.HasDots {
    			p.print(_DotDotDot)
    		}
    		p.print(_Rparen)
    
    	case *Operation:
    		if n.Y == nil {
    			// unary expr
    			p.print(n.Op)
    			// if n.Op == lexical.Range {
    			// 	p.print(blank)
    			// }
    			p.print(n.X)
    		} else {
    			// binary expr
    			// TODO(gri) eventually take precedence into account
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    			return &ast.ChanType{pos, ast.RECV, value}
    		}
    
    		x := p.parseUnaryExpr(false)
    		return &ast.UnaryExpr{pos, token.ARROW, p.checkExpr(x)}
    
    	case token.MUL:
    		// pointer type or unary "*" expression
    		pos := p.pos
    		p.next()
    		x := p.parseUnaryExpr(false)
    		return &ast.StarExpr{pos, p.checkExprOrType(x)}
    	}
    
    	return p.parsePrimaryExpr(lhs)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/parser/parser_test.go

    	{name: "binary", format: "package main; var x = «1+»1"},
    	{name: "binaryparen", format: "package main; var x = «1+(«1»)»", parseMultiplier: 2}, // Parser nodes: BinaryExpr, ParenExpr
    	{name: "unary", format: "package main; var x = «^»1"},
    	{name: "addr", format: "package main; var x = «& »x"},
    	{name: "star", format: "package main; var x = «*»x"},
    	{name: "recv", format: "package main; var x = «<-»x"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (dim_size != op.getNumResults())
        return op.emitOpError("result count must be equal to ") << dim_size;
    
      return success();
    }
    
    namespace {
    
    // Hoist coefficient-wise unary operation out of the Unpack op:
    //
    //   %unpacked:N = "tf.Unpack"(%0)
    //   %neg0 = "tf.Neg"(%unpacked#0)
    //   %neg1 = "tf.Neg"(%unpacked#1)
    //   ...
    //   %negN-1 = "tf.Neg"(%unpacked:N-1)
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/expr.go

    			n.SetType(nil)
    			return n
    		}
    		base.Errorf("%v is not a type", l)
    		return n
    	}
    
    	n.SetType(t.Elem())
    	return n
    }
    
    // tcUnaryArith typechecks a unary arithmetic expression.
    func tcUnaryArith(n *ir.UnaryExpr) ir.Node {
    	n.X = Expr(n.X)
    	l := n.X
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	if !okfor[n.Op()][defaultType(t).Kind()] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/go/printer/nodes.go

    // There are never spaces at level 6 (unary), and always spaces at levels 3 and below.
    //
    // To choose the cutoff, look at the whole expression but excluding primary
    // expressions (function calls, parenthesized exprs), and apply these rules:
    //
    //  1. If there is a binary operator with a right side unary operand
    //     that would clash without a space, the cutoff must be (in order):
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/labels/selector.go

    // matchType can be exact
    func (p *Parser) parseOperator() (op selection.Operator, err error) {
    	tok, lit := p.consume(KeyAndOperator)
    	switch tok {
    	// DoesNotExistToken shouldn't be here because it's a unary operator, not a binary operator
    	case InToken:
    		op = selection.In
    	case EqualsToken:
    		op = selection.Equals
    	case DoubleEqualsToken:
    		op = selection.DoubleEquals
    	case GreaterThanToken:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 31.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SetsTest.java

        }
      }
    
      /** The 0-ary cartesian product is a single empty list. */
      public void testCartesianProduct_zeroary() {
        assertThat(Sets.cartesianProduct()).containsExactly(list());
      }
    
      /** A unary cartesian product is one list of size 1 for each element in the input set. */
      public void testCartesianProduct_unary() {
        assertThat(Sets.cartesianProduct(set(1, 2))).containsExactly(list(1), list(2));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 47.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

        }
      }
    
      /** The 0-ary cartesian product is a single empty list. */
      public void testCartesianProduct_zeroary() {
        assertThat(Sets.cartesianProduct()).containsExactly(list());
      }
    
      /** A unary cartesian product is one list of size 1 for each element in the input set. */
      public void testCartesianProduct_unary() {
        assertThat(Sets.cartesianProduct(set(1, 2))).containsExactly(list(1), list(2));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (RotateLeft16 <t> x (MOVVconst [c])) => (Or16 (Lsh16x64 <t> x (MOVVconst [c&15])) (Rsh16Ux64 <t> x (MOVVconst [-c&15])))
    (RotateLeft32 x y) => (ROTR  x (NEGV <y.Type> y))
    (RotateLeft64 x y) => (ROTRV x (NEGV <y.Type> y))
    
    // unary ops
    (Neg(64|32|16|8) ...) => (NEGV ...)
    (Neg(32|64)F ...) => (NEG(F|D) ...)
    
    (Com(64|32|16|8) x) => (NOR (MOVVconst [0]) x)
    
    (Sqrt ...) => (SQRTD ...)
    (Sqrt32 ...) => (SQRTF ...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
Back to top