Package org.jblas

Examples of org.jblas.DoubleMatrix.norm2()


            double ReturnedCost = Func.valueAt(x);
            double[] ReturnedGradient = Func.derivativeAt(x);
            double[] NumericalGradient = new double[size];
            double PartCosts;

            double Mean = 2e-6 * ((1 + xMat.norm2()) / p);
            for (int i = 0; i < size; i++) {
                double[] e = DoubleMatrix.zeros(size).data;
                e[i] = 1;
                DoubleArrays.scale(e, Mean);
                double[] y = DoubleArrays.add(x, e);
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.