Package com.opengamma.analytics.math.matrix

Examples of com.opengamma.analytics.math.matrix.ColtMatrixAlgebra.multiply()


    ColtMatrixAlgebra colt = new ColtMatrixAlgebra();
    DoubleMatrix1D v = new DoubleMatrix1D(ARRAY_1D);
    DoubleMatrix2D m = new DoubleMatrix2D(ARRAY_2D);

    out.println(colt.getTranspose(m));
    out.println(colt.multiply(m, v));
  }

  public static void main(String[] args) {
    initMatrixDemo(System.out);
    matrixAlgebraDemo(System.out);
View Full Code Here


    final double[] data_1d = {1.0, 2.0, 3.0, 4.0 };
    final DoubleMatrix1D v = new DoubleMatrix1D(data_1d);

    final ColtMatrixAlgebra colt = new ColtMatrixAlgebra();
    out.println(colt.multiply(m, v));
  }

  // @export "polyDerivativeDemo"
  public static RealPolynomialFunction1D getFunction() {
    final double[] coefficients = {-125, 75, -15, 1 };
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.