Package stallone.ints

Examples of stallone.ints.PrimitiveIntArray


            if (i % nskip == 0)
            {
                res[k++] = c;
            }
        }
        return (new PrimitiveIntArray(res));
    }
View Full Code Here


    }

    public DoubleArrayView(IDoubleArray _data, int[] rowIndexes, int[] colIndexes)
    {
        this.data = _data;
        this.map = ArrayIndexMap.createMap(data, new PrimitiveIntArray(rowIndexes), new PrimitiveIntArray(colIndexes));
    }
View Full Code Here

    }

    public DoubleArrayView(IDoubleArray _data, int[] indexes)
    {
        this.data = _data;
        this.map = ArrayIndexMap.createMap(data, new PrimitiveIntArray(indexes));
    }
View Full Code Here

    //
    // ***********************************************************************

    public IIntArray array(int size)
    {
        return (new PrimitiveIntArray(new int[size]));
    }
View Full Code Here

        return (new PrimitiveIntArray(new int[size]));
    }

    public IIntArray array(int size, int value)
    {
        return (new PrimitiveIntArray(PrimitiveIntTools.createInitialized(size, value)));
    }
View Full Code Here

        return (new PrimitiveIntArray(PrimitiveIntTools.createInitialized(size, value)));
    }

    public IIntArray array(IIntArray arr)
    {
        return (new PrimitiveIntArray(arr.getArray()));
    }
View Full Code Here

     * Convenience constructor for primitive arrays
     */
    public IIntArray arrayFrom(int d)
    {
        int[] arr = PrimitiveIntTools.getIntArray(d);
        return (new PrimitiveIntArray(arr));
    }
View Full Code Here

     * (this one is necessary because it does not overlap with create(double[])
     */
    public IIntArray arrayFrom(int d1, int... d2)
    {
        int[] arr = PrimitiveIntTools.concat(PrimitiveIntTools.getIntArray(d1),d2);
        return (new PrimitiveIntArray(arr));
    }
View Full Code Here

    /**
     * Convenience constructor for primitive arrays
     */
    public IIntArray arrayFrom(int[] arr)
    {
        return (new PrimitiveIntArray(arr));
    }
View Full Code Here


    public IIntArray arrayFrom(double[] a)
    {
        int[] res = PrimitiveIntTools.from(a);
        return (new PrimitiveIntArray(res));
    }
View Full Code Here

TOP

Related Classes of stallone.ints.PrimitiveIntArray

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.