Module openj9.cuda
Package com.ibm.cuda

Class Dim3


  • public final class Dim3
    extends Object
    The Dim3 class represents the dimensions of a cube.
    See Also:
    CudaGrid
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int x
      The size of this cube in the x dimension.
      int y
      The size of this cube in the y dimension.
      int z
      The size of this cube in the z dimension.
    • Constructor Summary

      Constructors 
      Constructor Description
      Dim3​(int x)
      Creates a cube of dimension (x,1,1).
      Dim3​(int x, int y)
      Creates a cube of dimension (x,y,1).
      Dim3​(int x, int y, int z)
      Creates a cube of dimension (x,y,z).
    • Field Detail

      • x

        public int x
        The size of this cube in the x dimension.
      • y

        public int y
        The size of this cube in the y dimension.
      • z

        public int z
        The size of this cube in the z dimension.
    • Constructor Detail

      • Dim3

        public Dim3​(int x)
        Creates a cube of dimension (x,1,1).
        Parameters:
        x - the x dimension
      • Dim3

        public Dim3​(int x,
                    int y)
        Creates a cube of dimension (x,y,1).
        Parameters:
        x - the x dimension
        y - the y dimension
      • Dim3

        public Dim3​(int x,
                    int y,
                    int z)
        Creates a cube of dimension (x,y,z).
        Parameters:
        x - the x dimension
        y - the y dimension
        z - the z dimension