Package com.opengamma.analytics.math.linearalgebra

Examples of com.opengamma.analytics.math.linearalgebra.TridiagonalMatrix.toDoubleMatrix2D()


    }

    final TridiagonalMatrix m = new TridiagonalMatrix(c, u, l);
    final DoubleMatrix1D xVec = new DoubleMatrix1D(x);
    DoubleMatrix1D y1 = (DoubleMatrix1D) ALGEBRA.multiply(m, xVec);
    DoubleMatrix2D full = m.toDoubleMatrix2D();
    DoubleMatrix1D y2 = (DoubleMatrix1D) ALGEBRA.multiply(full, xVec);

    for (int i = 0; i < n; i++) {
      assertEquals(y1.getEntry(i), y2.getEntry(i), 1e-12);
    }
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.