Examples of MatrixOffset


Examples of org.jquantlib.math.matrixutilities.internal.Address.MatrixAddress.MatrixOffset

        final double[] data = new double[size];
        if (m.addr.isContiguous()) {
            System.arraycopy(m.$, 0, data, 0, size);
        } else {
            //FIXME: this code is probably wrong
            final MatrixOffset offset = m.addr.offset();
            final int cols = m.cols();
            for (int row=0; row<m.rows(); row++) {
                System.arraycopy(m.$, offset.op(), data, row*cols, cols);
                offset.nextRow();
            }
        }
        return data;
    }
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.