Examples of negate()


Examples of javax.vecmath.Vector3f.negate()

      normalIndexSubstitutes [index] = normalIndex;
    }
   
    if (cullFace == PolygonAttributes.CULL_NONE) {
      Vector3f oppositeNormal = new Vector3f();
      oppositeNormal.negate(normal);
      // Fill opposite side normal index substitutes array
      return writeNormal(normalsBuffer, transformationToParent, oppositeNormal, index,
          oppositeSideNormalIndexSubstitutes, null, PolygonAttributes.CULL_FRONT, false);
    } else {
      return true;
View Full Code Here

Examples of jmathexpr.arithmetic.ANumber.negate()

            ANumber ca = (ANumber) ax.coefficient();
            ANumber cc = (ANumber) cx.coefficient();
            ANumber coef = ca.lt(cc) ? ca : cc;

            if (coef.isNegative()) {
                coef = coef.negate();
               
                Expression cx = coef.isOne() ? x.evaluate() : new Multiplication(coef, x.evaluate());
               
                return new Equality(Sum.add(((Equality) target).lhs(), cx),
                    Sum.add(((Equality) target).rhs(), cx));
View Full Code Here

Examples of jmathexpr.arithmetic.Polynomial.negate()

            }
           
            Expression a = reduced.leadCoefficient();
           
            if (a instanceof ANumber && ((ANumber) a).isNegative()) {
                reduced = reduced.negate();
            }

            return new Equality(reduced, Naturals.zero());
        }
    }
View Full Code Here

Examples of joshua.discriminative.semiring_parsingv2.SignedValue.negate()

      //-delta(Z)*r/Z^2
      SignedValue resRS = SignedValue.multi(
          goalX.getS().getValue().getValueAt(featID),
          goalK.getR().getValue()
        );
      resRS.negate();
      resRS.multiLogNumber(-2*logZ);
     
      //-T*delta(Z)/Z
      SignedValue resS = goalX.getS().getValue().getValueAt(featID).duplicate();
      resS.multiLogNumber(Math.log(this.getTemperature()));
View Full Code Here

Examples of kodkod.engine.bool.Int.negate()

  public final Int visit(UnaryIntExpression intExpr) {
    Int ret = lookup(intExpr);
    if (ret!=null) return ret;
    final Int child = intExpr.intExpr().accept(this);
    switch(intExpr.op()) {
    case NEG   : ret = child.negate(); break;
    case NOT   : ret = child.not(); break;
    case ABS   : ret = child.abs(); break;
    case SGN   : ret = child.sgn(); break;
    default :
      throw new IllegalArgumentException("Unknown operator: " + intExpr.op());
View Full Code Here

Examples of mikera.arrayz.INDArray.negate()

  }
 
  @Override
  public INDArray negateCopy() {
    INDArray r=clone();
    r.negate();
    return r;
  }
 
  @Override
  public boolean equals(INDArray a) {
View Full Code Here

Examples of mikera.vectorz.AVector.negate()

  @Override
  public AAffineTransform inverse() {
    AMatrix m=getMatrix().inverse();
    AVector v=getTranslation().getTranslationVector().clone();
    v.negate();
    m.transformInPlace(v);
    return Transformz.createAffineTransform(m, v);
  }
 
  @Override
View Full Code Here

Examples of net.sf.saxon.value.NumericValue.negate()

        NumericValue v1 = (NumericValue) operand.evaluateItem(context);
        if (v1 == null) {
            return backwardsCompatible ? DoubleValue.NaN : null;
        }
        return v1.negate();
    }

    /**
     * Copy an expression. This makes a deep copy.
     *
 
View Full Code Here

Examples of org.apache.commons.math.dfp.Dfp.negate()

      }

      Dfp y = DfpMath.pow(x, field.getOne().divide(3));

      if (negative) {
          y = y.negate();
      }

      return y;
    }
View Full Code Here

Examples of org.apache.commons.math3.analysis.differentiation.DerivativeStructure.negate()

    @Override
    public DerivativeStructure[] value(DerivativeStructure[] variables) {
        DerivativeStructure x1 = variables[0];
        DerivativeStructure x2 = variables[1];
        return new DerivativeStructure[] {
            x1.subtract(13.0).add(x2.negate().add(5.0).multiply(x2).subtract(2).multiply(x2)),
            x1.subtract(29.0).add(x2.add(1).multiply(x2).subtract(14).multiply(x2))
        };
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.