Examples of mul()


Examples of org.apache.velocity.tools.generic.MathTool.mul()

        assertEquals((long)7,mathTool.getTotal(new long[] {2,2,3}));
        assertEquals(8,mathTool.idiv(130,16));
        assertEquals(9,mathTool.max(9,-10));
        assertEquals(10,mathTool.min(10,20));
        assertEquals(11,mathTool.mod(37,13));
        assertEquals(12,mathTool.mul(3,4));
        assertEquals(13,mathTool.round(12.8));
        assertEquals(14.2,mathTool.roundTo(1,14.18));
        assertEquals(-5.0,mathTool.roundTo(2,-4.999));
        assertEquals(15,mathTool.sub(30,15));
        assertEquals(16,mathTool.pow(4,2));
View Full Code Here

Examples of org.apache.velocity.tools.generic.MathTool.mul()

        assertEquals((long)7,mathTool.getTotal(new long[] {2,2,3}));
        assertEquals(8,mathTool.idiv(130,16));
        assertEquals(9,mathTool.max(9,-10));
        assertEquals(10,mathTool.min(10,20));
        assertEquals(11,mathTool.mod(37,13));
        assertEquals(12,mathTool.mul(3,4));
        assertEquals(13,mathTool.round(12.8));
        assertEquals(14.2,mathTool.roundTo(1,14.18));
        assertEquals(-5.0,mathTool.roundTo(2,-4.999));
        assertEquals(15,mathTool.sub(30,15));
        assertEquals(16,mathTool.pow(4,2));
View Full Code Here

Examples of org.geotools.referencing.operation.matrix.GeneralMatrix.mul()

            GeneralMatrix ATA = new GeneralMatrix(6, 6);
            GeneralMatrix ATl = new GeneralMatrix(6, 1);

            ATA.mul(AT, A);
            ATl.mul(AT, l);

            /**constrains**/
            GeneralMatrix AB = createAB(ATA, getB());

            AB.invert();
View Full Code Here

Examples of org.hisrc.jscm.codemodel.expression.JSVariable.mul()

    JSDecimalIntegerLiteral one = codeModel.integer(1);
    // Add a return statement to the function body
    factorial.getBody()._return(
        x.le(one).cond(
            one,
            x.mul(factorial.getFunctionExpression().i()
                .args(x.minus(one)))));

    // Write the program code to the System.out
    new CodeWriter(System.out).program(program);
View Full Code Here

Examples of org.jblas.DoubleMatrix.mul()

     * @return derivative of softmax, has the same formula as sigmoid :)
     */
    @Override
    public DoubleMatrix derivativeAt(DoubleMatrix X) {
        DoubleMatrix M = valueAt(X);
        return M.mul((M.mul(-1)).addi(1));
    }
}
View Full Code Here

Examples of org.jbox2d.common.Vec2.mul()

        return screenCenter.y - y;
    }

    public static Vec2 getDisplayCenter() {
        Vec2 displaySize = new Vec2(graphics().width(), graphics().height());
        return displaySize.mul(0.5f);
    }

}
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellTransform.mul()

        else
            oldWorld = worldTransform.clone(null);

        if (parent!=null) {
            CellTransform parentWorld = parent.worldTransform.clone(null);
            worldTransform = parentWorld.mul(localTransform);
        } else {
            worldTransform = localTransform.clone(null);
        }

        if (!worldTransform.equals(oldWorld)) {         // TODO should be epsilonEquals
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellTransform.mul()

    public static CellTransform computeChildTransform(CellTransform parentWorld, CellTransform childWorldTransform) {

        CellTransform pInv = parentWorld.clone(null).invert();

        CellTransform newChildLocal = new CellTransform();
        newChildLocal.mul(pInv, childWorldTransform);

        return newChildLocal;
    }

    private static Node createTestNode() {
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellTransform.mul()

    public static CellTransform transform(CellTransform transform,
            CellTransform fromReferenceSystem, CellTransform toReferenceSystem) {

        CellTransform newTransform = toReferenceSystem.clone(null);
        newTransform.invert();
        newTransform.mul(fromReferenceSystem);
        newTransform.mul(transform);
        return newTransform;
    }
}
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellTransform.mul()

            CellTransform fromReferenceSystem, CellTransform toReferenceSystem) {

        CellTransform newTransform = toReferenceSystem.clone(null);
        newTransform.invert();
        newTransform.mul(fromReferenceSystem);
        newTransform.mul(transform);
        return newTransform;
    }
}
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.