Package cern.colt.matrix.impl

Source Code of cern.colt.matrix.impl.NormInfinityTest

package cern.colt.matrix.impl;

import cern.colt.matrix.DoubleFactory1D;
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.linalg.Algebra;

class NormInfinityTest {

  public static void main(String[] args) {
    DoubleMatrix1D x1 = DoubleFactory1D.dense
        .make(new double[] { 1.0, 2.0});
    DoubleMatrix1D x2 = DoubleFactory1D.dense
        .make(new double[] { 1.0, -2.0});
    DoubleMatrix1D x3 = DoubleFactory1D.dense.make(new double[] { -1.0, -2.0});

    System.out.println(Algebra.DEFAULT.normInfinity(x1));
    System.out.println(Algebra.DEFAULT.normInfinity(x2));
    System.out.println(Algebra.DEFAULT.normInfinity(x3));
  }
}
TOP

Related Classes of cern.colt.matrix.impl.NormInfinityTest

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.