Class RangeHelper


  • class RangeHelper
    extends java.lang.Object
    Range helper methods.
    Since:
    1.11.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int MAX_LOCAL_SIZE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RangeHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.aparapi.Range create​(int size)
      Creates a one-dimensional range with the maximum local size.
      static com.aparapi.Range create2D​(int width, int height)
      Creates a two-dimensional range with the maximum local sizes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RangeHelper

        private RangeHelper()
    • Method Detail

      • create

        public static com.aparapi.Range create​(int size)
        Creates a one-dimensional range with the maximum local size.
        Parameters:
        size - The size.
        Returns:
        The range.
      • create2D

        public static com.aparapi.Range create2D​(int width,
                                                 int height)
        Creates a two-dimensional range with the maximum local sizes.
        Parameters:
        width - Size of the first dimension.
        height - Size of the second dimension.
        Returns:
        The range.