/* (non-Javadoc)
@see org.joml.Vector3ic#negate(org.joml.Vector3i)
776489
public Vector3i negate(Vector3i dest) {
        dest.x = -x;
        dest.y = -y;
        dest.z = -z;
        return dest;
    }
1136231
def Negation(expr: Expression) -> Expression:
    """"""
    expr = Expression(_negate(expr.body))
    return ast.fix_missing_locations(expr)
788283
public static <T1, T2> BiPredicate<T1, T2> not(BiPredicate<T1, T2> predicate) {
        dbc.precondition(predicate != null, "cannot negate a null predicate");
        return predicate.negate();
    }
18109
function negate(v, dst) {
  dst = dst || new VecType(3);

  dst[0] = -v[0];
  dst[1] = -v[1];
  dst[2] = -v[2];

  return dst;
}
774745
public static int findNot(int[] array, int value) {

        for (int i = 0; i < array.length; i++) {
            if (array[i] != value) {
                return i;
            }
        }

        return -1;
    }
1243102
func (v *Value) negate() {
	switch v.vType {
	case typeFloat:
		v.value = -(v.value.(float64))
	case typeInt:
		v.value = -(v.value.(int64))
	}
}
379945
public final hqlParser.negatedExpression_return negatedExpression() throws RecognitionException {
		hqlParser.negatedExpression_return retval = new hqlParser.negatedExpression_return();
		retval.start = input.LT(1);

		CommonTree root_0 = null;

		Token NOT161=null;
		ParserRuleReturnScope x =null;
		ParserRuleReturnScope equalityExpression162 =null;

		CommonTree NOT161_tree=null;
		RewriteRuleTokenStream stream_NOT=new RewriteRuleTokenStream(adaptor,"token NOT");
		RewriteRuleSubtreeStream stream_equalityExpression=new RewriteRuleSubtreeStream(adaptor,"rule equalityExpression");
		RewriteRuleSubtreeStream stream_negatedExpression=new RewriteRuleSubtreeStream(adaptor,"rule negatedExpression");

		 WeakKeywords();
		try {
			// hql.g:427:2: ( NOT x= negatedExpression -> ^() | equalityExpression -> ^( equalityExpression ) )
			int alt53=2;
			int LA53_0 = input.LA(1);
			if ( (LA53_0==NOT) ) {
				alt53=1;
			}
			else if ( (LA53_0==ALL||LA53_0==ANY||LA53_0==AVG||LA53_0==BNOT||LA53_0==CASE||LA53_0==COLON||LA53_0==COUNT||LA53_0==ELEMENTS||LA53_0==EMPTY||LA53_0==EXISTS||LA53_0==FALSE||LA53_0==IDENT||LA53_0==INDICES||LA53_0==MAX||(LA53_0 >= MIN && LA53_0 <= MINUS)||(LA53_0 >= NULL && LA53_0 <= NUM_LONG)||LA53_0==OPEN||(LA53_0 >= PARAM && LA53_0 <= PLUS)||LA53_0==QUOTED_String||LA53_0==SOME||LA53_0==SUM||LA53_0==TRUE) ) {
				alt53=2;
			}

			else {
				NoViableAltException nvae =
					new NoViableAltException("", 53, 0, input);
				throw nvae;
			}

			switch (alt53) {
				case 1 :
					// hql.g:427:4: NOT x= negatedExpression
					{
					NOT161=(Token)match(input,NOT,FOLLOW_NOT_in_negatedExpression1940);
					stream_NOT.add(NOT161);

					pushFollow(FOLLOW_negatedExpression_in_negatedExpression1944);
					x=negatedExpression();
					state._fsp--;

					stream_negatedExpression.add(x.getTree());
					// AST REWRITE
					// elements:
					// token labels:
					// rule labels: retval
					// token list labels:
					// rule list labels:
					// wildcard labels:
					retval.tree = root_0;
					RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

					root_0 = (CommonTree)adaptor.nil();
					// 428:3: -> ^()
					{
						// hql.g:428:6: ^()
						{
						CommonTree root_1 = (CommonTree)adaptor.nil();
						root_1 = (CommonTree)adaptor.becomeRoot(NegateNode((x!=null?((CommonTree)x.getTree()):null)), root_1);
						adaptor.addChild(root_0, root_1);
						}

					}


					retval.tree = root_0;

					}
					break;
				case 2 :
					// hql.g:429:4: equalityExpression
					{
					pushFollow(FOLLOW_equalityExpression_in_negatedExpression1957);
					equalityExpression162=equalityExpression();
					state._fsp--;

					stream_equalityExpression.add(equalityExpression162.getTree());
					// AST REWRITE
					// elements: equalityExpression
					// token labels:
					// rule labels: retval
					// token list labels:
					// rule list labels:
					// wildcard labels:
					retval.tree = root_0;
					RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

					root_0 = (CommonTree)adaptor.nil();
					// 430:3: -> ^( equalityExpression )
					{
						// hql.g:430:6: ^( equalityExpression )
						{
						CommonTree root_1 = (CommonTree)adaptor.nil();
						root_1 = (CommonTree)adaptor.becomeRoot(stream_equalityExpression.nextNode(), root_1);
						adaptor.addChild(root_0, root_1);
						}

					}


					retval.tree = root_0;

					}
					break;

			}
			retval.stop = input.LT(-1);

			retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);
			adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

		}
		catch (RecognitionException re) {
			reportError(re);
			recover(input,re);
			retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);
		}
		finally {
			// do for sure before leaving
		}
		return retval;
	}
1283776
public void not() {
        IntBitSet tmp;

        tmp = new IntBitSet();
        tmp.addRange(0, used - 1);
        tmp.removeAll(ends);
        ends = tmp;
    }
1010665
@NonNull
    public static Expression not(@NonNull Expression expression) {
        if (expression == null) {
            throw new IllegalArgumentException("expression cannot be null.");
        }
        return negated(expression);
    }
1213976
public org.mariadb.jdbc.internal.com.send.authentication.ed25519.math.GroupElement negate() {
    if (this.repr != Representation.P3) {
      throw new UnsupportedOperationException();
    }
    return this.curve.getZero(Representation.P3).sub(toCached()).toP3();
  }
415814
function negate(bytes) {
    for (var i = 0; i < 8; i++) {
        bytes[i] ^= 0xFF;
    }
    for (var i = 7; i > -1; i--) {
        bytes[i]++;
        if (bytes[i] !== 0) {
            break;
        }
    }
}
590252
public static <E> Filter<E> notFilter(Filter<E> filter) {
    return (new NegatedFilter<E>(filter));
  }
1240462
public function negate() {
		$components = array();
		foreach($this->components as $index => $component) {
			$components[$index] = -$component;
		}

		$this->components = $components;
		return $this;
	}
456373
public Vector3i add(Vector3ic v, Vector3i dest) {
        dest.x = x + v.x();
        dest.y = y + v.y();
        dest.z = z + v.z();
        return dest;
    }
1246059
public Vector3d negate(Vector3d dest) {
        dest.x = -x;
        dest.y = -y;
        dest.z = -z;
        return dest;
    }
56455
function negate(out, a) {
    out[0] = -a[0]
    out[1] = -a[1]
    out[2] = -a[2]
    return out
}
393432
def negate(self):
        """"""
        self.from_value, self.to_value = self.to_value, self.from_value
        self.include_lower, self.include_upper = self.include_upper, self.include_lower