Class UIntIndexer

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected UIntIndexer​(long[] sizes, long[] strides)  
      protected UIntIndexer​(Index index)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static UIntIndexer create​(int[] array)
      Returns new UIntArrayIndexer(array)
      static UIntIndexer create​(int[] array, long... sizes)
      Returns new UIntArrayIndexer(array, sizes)
      static UIntIndexer create​(int[] array, long[] sizes, long[] strides)
      Returns new UIntArrayIndexer(array, sizes, strides)
      static UIntIndexer create​(int[] array, Index index)
      Returns new UIntArrayIndexer(array, index)
      static UIntIndexer create​(java.nio.IntBuffer buffer)
      Returns new UIntBufferIndexer(buffer)
      static UIntIndexer create​(java.nio.IntBuffer buffer, long... sizes)
      Returns new UIntBufferIndexer(buffer, sizes)
      static UIntIndexer create​(java.nio.IntBuffer buffer, long[] sizes, long[] strides)
      Returns new UIntBufferIndexer(buffer, sizes, strides)
      static UIntIndexer create​(java.nio.IntBuffer buffer, Index index)
      Returns new UIntBufferIndexer(buffer, index)
      static UIntIndexer create​(IntPointer pointer)
      Returns new UIntRawIndexer(pointer)
      static UIntIndexer create​(IntPointer pointer, long... sizes)
      Returns new UIntRawIndexer(pointer, sizes)
      static UIntIndexer create​(IntPointer pointer, long[] sizes, long[] strides)
      Returns new UIntRawIndexer(pointer, sizes, strides)
      static UIntIndexer create​(IntPointer pointer, long[] sizes, long[] strides, boolean direct)
      Returns create(pointer, Index.create(sizes, strides), direct)
      static UIntIndexer create​(IntPointer pointer, Index index)
      Returns new UIntRawIndexer(pointer, index)
      static UIntIndexer create​(IntPointer pointer, Index index, boolean direct)
      Creates a int indexer to access efficiently the data of a pointer.
      abstract long get​(long i)
      Returns array/buffer[index(i)]
      abstract long get​(long... indices)
      Returns array/buffer[index(indices)]
      UIntIndexer get​(long[] indices, long[] n)
      Returns this where n = array/buffer[index(indices)]
      abstract UIntIndexer get​(long[] indices, long[] n, int offset, int length)
      Returns this where n[offset:offset + length] = array/buffer[index(indices)]
      abstract long get​(long i, long j)
      Returns array/buffer[index(i, j)]
      UIntIndexer get​(long i, long[] n)
      Returns this where n = array/buffer[index(i)]
      abstract UIntIndexer get​(long i, long[] n, int offset, int length)
      Returns this where n[offset:offset + length] = array/buffer[index(i)]
      abstract long get​(long i, long j, long k)
      Returns array/buffer[index(i, j, k)]
      UIntIndexer get​(long i, long j, long[] n)
      Returns this where n = array/buffer[index(i, j)]
      abstract UIntIndexer get​(long i, long j, long[] n, int offset, int length)
      Returns this where n[offset:offset + length] = array/buffer[index(i, j)]
      double getDouble​(long... indices)
      Calls get(int...indices) and returns the value as a double.
      abstract UIntIndexer put​(long[] indices, long n)
      Returns this where array/buffer[index(indices)] = n
      UIntIndexer put​(long[] indices, long... n)
      Returns this where array/buffer[index(indices)] = n
      abstract UIntIndexer put​(long[] indices, long[] n, int offset, int length)
      Returns this where array/buffer[index(indices)] = n[offset:offset + length]
      abstract UIntIndexer put​(long i, long n)
      Returns this where array/buffer[index(i)] = n
      UIntIndexer put​(long i, long... n)
      Returns this where array/buffer[index(i)] = n
      abstract UIntIndexer put​(long i, long[] n, int offset, int length)
      Returns this where array/buffer[index(i)] = n[offset:offset + length]
      abstract UIntIndexer put​(long i, long j, long n)
      Returns this where array/buffer[index(i, j)] = n
      UIntIndexer put​(long i, long j, long... n)
      Returns this where array/buffer[index(i, j)] = n
      abstract UIntIndexer put​(long i, long j, long[] n, int offset, int length)
      Returns this where array/buffer[index(i, j)] = n[offset:offset + length]
      abstract UIntIndexer put​(long i, long j, long k, long n)
      Returns this where array/buffer[index(i, j, k)] = n
      UIntIndexer putDouble​(long[] indices, double n)
      Casts value to primitive type and calls put(long[] indices, <type> value).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • VALUE_BYTES

        public static final int VALUE_BYTES
        The number of bytes used to represent an int.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UIntIndexer

        protected UIntIndexer​(Index index)
      • UIntIndexer

        protected UIntIndexer​(long[] sizes,
                              long[] strides)
    • Method Detail

      • create

        public static UIntIndexer create​(int[] array)
        Returns new UIntArrayIndexer(array)
      • create

        public static UIntIndexer create​(java.nio.IntBuffer buffer)
        Returns new UIntBufferIndexer(buffer)
      • create

        public static UIntIndexer create​(int[] array,
                                         Index index)
        Returns new UIntArrayIndexer(array, index)
      • create

        public static UIntIndexer create​(java.nio.IntBuffer buffer,
                                         Index index)
        Returns new UIntBufferIndexer(buffer, index)
      • create

        public static UIntIndexer create​(int[] array,
                                         long... sizes)
        Returns new UIntArrayIndexer(array, sizes)
      • create

        public static UIntIndexer create​(java.nio.IntBuffer buffer,
                                         long... sizes)
        Returns new UIntBufferIndexer(buffer, sizes)
      • create

        public static UIntIndexer create​(IntPointer pointer,
                                         long... sizes)
        Returns new UIntRawIndexer(pointer, sizes)
      • create

        public static UIntIndexer create​(int[] array,
                                         long[] sizes,
                                         long[] strides)
        Returns new UIntArrayIndexer(array, sizes, strides)
      • create

        public static UIntIndexer create​(java.nio.IntBuffer buffer,
                                         long[] sizes,
                                         long[] strides)
        Returns new UIntBufferIndexer(buffer, sizes, strides)
      • create

        public static UIntIndexer create​(IntPointer pointer,
                                         long[] sizes,
                                         long[] strides)
        Returns new UIntRawIndexer(pointer, sizes, strides)
      • create

        public static UIntIndexer create​(IntPointer pointer,
                                         long[] sizes,
                                         long[] strides,
                                         boolean direct)
        Returns create(pointer, Index.create(sizes, strides), direct)
      • create

        public static UIntIndexer create​(IntPointer pointer,
                                         Index index,
                                         boolean direct)
        Creates a int indexer to access efficiently the data of a pointer.
        Parameters:
        pointer - data to access via a buffer or to copy to an array
        index - to use
        direct - true to use a direct buffer, see Indexer for details
        Returns:
        the new int indexer backed by the raw memory interface, a buffer, or an array
      • get

        public abstract long get​(long i)
        Returns array/buffer[index(i)]
      • get

        public UIntIndexer get​(long i,
                               long[] n)
        Returns this where n = array/buffer[index(i)]
      • get

        public abstract UIntIndexer get​(long i,
                                        long[] n,
                                        int offset,
                                        int length)
        Returns this where n[offset:offset + length] = array/buffer[index(i)]
      • get

        public abstract long get​(long i,
                                 long j)
        Returns array/buffer[index(i, j)]
      • get

        public UIntIndexer get​(long i,
                               long j,
                               long[] n)
        Returns this where n = array/buffer[index(i, j)]
      • get

        public abstract UIntIndexer get​(long i,
                                        long j,
                                        long[] n,
                                        int offset,
                                        int length)
        Returns this where n[offset:offset + length] = array/buffer[index(i, j)]
      • get

        public abstract long get​(long i,
                                 long j,
                                 long k)
        Returns array/buffer[index(i, j, k)]
      • get

        public abstract long get​(long... indices)
        Returns array/buffer[index(indices)]
      • get

        public UIntIndexer get​(long[] indices,
                               long[] n)
        Returns this where n = array/buffer[index(indices)]
      • get

        public abstract UIntIndexer get​(long[] indices,
                                        long[] n,
                                        int offset,
                                        int length)
        Returns this where n[offset:offset + length] = array/buffer[index(indices)]
      • put

        public abstract UIntIndexer put​(long i,
                                        long n)
        Returns this where array/buffer[index(i)] = n
      • put

        public UIntIndexer put​(long i,
                               long... n)
        Returns this where array/buffer[index(i)] = n
      • put

        public abstract UIntIndexer put​(long i,
                                        long[] n,
                                        int offset,
                                        int length)
        Returns this where array/buffer[index(i)] = n[offset:offset + length]
      • put

        public abstract UIntIndexer put​(long i,
                                        long j,
                                        long n)
        Returns this where array/buffer[index(i, j)] = n
      • put

        public UIntIndexer put​(long i,
                               long j,
                               long... n)
        Returns this where array/buffer[index(i, j)] = n
      • put

        public abstract UIntIndexer put​(long i,
                                        long j,
                                        long[] n,
                                        int offset,
                                        int length)
        Returns this where array/buffer[index(i, j)] = n[offset:offset + length]
      • put

        public abstract UIntIndexer put​(long i,
                                        long j,
                                        long k,
                                        long n)
        Returns this where array/buffer[index(i, j, k)] = n
      • put

        public abstract UIntIndexer put​(long[] indices,
                                        long n)
        Returns this where array/buffer[index(indices)] = n
      • put

        public UIntIndexer put​(long[] indices,
                               long... n)
        Returns this where array/buffer[index(indices)] = n
      • put

        public abstract UIntIndexer put​(long[] indices,
                                        long[] n,
                                        int offset,
                                        int length)
        Returns this where array/buffer[index(indices)] = n[offset:offset + length]
      • getDouble

        public double getDouble​(long... indices)
        Description copied from class: Indexer
        Calls get(int...indices) and returns the value as a double.
        Specified by:
        getDouble in class Indexer
      • putDouble

        public UIntIndexer putDouble​(long[] indices,
                                     double n)
        Description copied from class: Indexer
        Casts value to primitive type and calls put(long[] indices, <type> value).
        Specified by:
        putDouble in class Indexer