Package org.jquantlib.math.matrixutilities.internal

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


     *
     * @see Address.Flags
     */
    public Array(final double[] array, final int size, final Set<Address.Flags> flags) {
        super(1, size, null);
        this.addr = new DirectArrayRowAddress(this.$, 0, null, 0, size-1, flags, true, 1, size);
        System.arraycopy(array, 0, $, 0, this.size());
    }
View Full Code Here


     *
     * @see Address.Flags
     */
    public Array(final Array array, final Set<Address.Flags> flags) {
        super(1, array.size(), null);
        this.addr = new DirectArrayRowAddress(this.$, 0, null, 0, array.size(), array.flags(), true, 1, array.size());
        if (array.addr.isContiguous()) {
            final int begin = array.addr.col0()+(addr.isFortran() ? 1 : 0);
            System.arraycopy(array.$, begin, $, 0, this.size());
        } else {
            for (int i=0; i<array.size(); i++) {
View Full Code Here

    @Override
    public Array clone() {
        //XXX return new Array(this, this.flags());
        final Array clone = (Array) super.clone();
        clone.$ = new double[this.size()];
        clone.addr = new DirectArrayRowAddress(clone.$, 0, null, 0, this.size(), this.flags(), true, 1, this.size());
        if (this.addr.isContiguous()) {
            final int begin = this.addr.col0()+(addr.isFortran() ? 1 : 0);
            System.arraycopy(this.$, begin, clone.$, 0, this.size());
        } else {
            for (int i=0; i<this.size(); i++) {
View Full Code Here

            final int col1,
            final int rows, final int cols) {
            super(1,
                  col1-col0,
                  data,
                  new DirectArrayRowAddress(data, row0, chain, col0, col1, null, true, rows, cols));
        }
View Full Code Here

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

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

     *
     * @see Address.Flags
     */
    public Array(final double[] array, final Set<Address.Flags> flags) {
        super(1, array.length, null);
        this.addr = new DirectArrayRowAddress(this.$, 0, null, 0, array.length-1, flags, true, 1, array.length);
        System.arraycopy(array, 0, $, 0, this.size());
    }
View Full Code Here

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

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

     *
     * @see Address.Flags
     */
    public Array(final double[] array, final Set<Address.Flags> flags) {
        super(1, array.length, null);
        this.addr = new DirectArrayRowAddress(this.$, 0, null, 0, array.length-1, flags, true, 1, array.length);
        System.arraycopy(array, 0, $, 0, this.size());
    }
View Full Code Here

TOP

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

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.