Package org.jquantlib.math.matrixutilities.internal

Examples of org.jquantlib.math.matrixutilities.internal.DirectMatrixAddress


     *
     * @see Address.Flags
     */
    public Matrix(final Set<Address.Flags> flags) {
        super(1, 1, null);
        super.addr = new DirectMatrixAddress(this.$, 0, 1, null, 0, 1, flags, true, 1, 1);
    }
View Full Code Here


     *
     * @see Address.Flags
     */
    public Matrix(final int rows, final int cols, final Set<Address.Flags> flags) {
        super(rows, cols, null);
        this.addr = new DirectMatrixAddress(this.$, 0, rows, null, 0, cols, flags, true, rows, cols);
    }
View Full Code Here

     *
     * @param data
     */
    public Matrix(final double[][] data, final Set<Address.Flags> flags) {
        super(data.length, data[0].length, null);
        this.addr = new DirectMatrixAddress(this.$, 0, data.length, null, 0, data[0].length, flags, true, data.length, data[0].length);
        for (int row=0; row<data.length; row++) {
            System.arraycopy(data[row], 0, this.$, row*this.cols, this.cols);
        }
    }
View Full Code Here

    @Override
    public Matrix clone() {
        //XXX return new Matrix(this);
        final Matrix clone = (Matrix)super.clone();
        clone.$ = copyData(this);
        clone.addr = new DirectMatrixAddress(clone.$, 0, this.rows, null, 0, this.cols, this.flags(), true, this.rows, this.cols);
        return clone;
    }
View Full Code Here

            final double[] data,
            final int rows,
            final int cols) {
            super(row1-row0, col1-col0,
                  data,
                  new DirectMatrixAddress(data, row0, row1, chain, col0, col1, null, true, rows, cols));
        }
View Full Code Here

TOP

Related Classes of org.jquantlib.math.matrixutilities.internal.DirectMatrixAddress

Copyright © 2018 www.massapicom. 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.