Package com.numb3r3.common.math

Examples of com.numb3r3.common.math.Matrix.mult()


     * @param args
     */
    public static void main(String[] args) {
        Matrix m = InMemoryJBlasMatrix.randn(3);
        double[] scores1 = m.toArray();
        double[] scores2 = m.mult(-1.0).toArray();

        ArrayPrinting.printDoubleArray(scores1, null, "score 1");
        ArrayPrinting.printDoubleArray(scores2, null, "score 2");
        ArrayPrinting.printIntArray(ArrayUtil.argsort(scores2), null, "sorted array");

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.