com.ibm.layout

Class LongArray2D



  • public abstract class LongArray2D
    extends LayoutType
    2D array of primtive long.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected long dim1 
      protected long dim2 
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected LongArray2D(long dim1, long dim2) 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract long at(long i, long j)
      Get an array element
      long dim1()
      Get the length of 1st dimension
      long dim2()
      Get the length of 2nd dimension
      abstract void put(long i, long j, long value)
      Set an array element
      long sizeof()
      Get the data size required for an array of a given size
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • dim1

        protected final long dim1
      • dim2

        protected final long dim2
    • Constructor Detail

      • LongArray2D

        protected LongArray2D(long dim1,
                              long dim2)
    • Method Detail

      • at

        public abstract long at(long i,
                                long j)
        Get an array element
        Parameters:
        i - index in 1st dim
        j - index in 2nd dim
        Returns:
        value of the array element
      • dim1

        public final long dim1()
        Get the length of 1st dimension
        Returns:
        number of elements in 1st dimension.
      • dim2

        public final long dim2()
        Get the length of 2nd dimension
        Returns:
        number of elements in 2nd dimension.
      • put

        public abstract void put(long i,
                                 long j,
                                 long value)
        Set an array element
        Parameters:
        i - index in 1st dim
        j - index in 2nd dim
        value - new value of the array element
      • sizeof

        public long sizeof()
        Get the data size required for an array of a given size
        Specified by:
        sizeof in class LayoutType
        Parameters:
        dim1 - length of 1st dim
        dim2 - length of 2nd dim
        Returns:
        data size in bytes
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
Technology preview - internal use for evaluation purposes only
© Copyright 2014, 2015 IBM Corporation.