Class IndexingUtils

java.lang.Object
dev.zarr.zarrjava.utils.IndexingUtils

public class IndexingUtils extends Object
  • Constructor Details

    • IndexingUtils

      public IndexingUtils()
  • Method Details

    • computeChunkCoords

      public static long[][] computeChunkCoords(long[] arrayShape, int[] chunkShape)
    • computeChunkCoords

      public static long[][] computeChunkCoords(int[] arrayShape, int[] chunkShape)
    • computeChunkCoords

      public static long[][] computeChunkCoords(long[] arrayShape, int[] chunkShape, long[] selOffset, int[] selShape)
    • computeProjection

      public static IndexingUtils.ChunkProjection computeProjection(long[] chunkCoords, int[] arrayShape, int[] chunkShape)
    • computeProjection

      public static IndexingUtils.ChunkProjection computeProjection(long[] chunkCoords, long[] arrayShape, int[] chunkShape)
    • computeProjection

      public static IndexingUtils.ChunkProjection computeProjection(long[] chunkCoords, long[] arrayShape, int[] chunkShape, long[] selOffset, int[] selShape)
    • cOrderIndex

      public static long cOrderIndex(long[] chunkCoords, long[] arrayShape)
    • fOrderIndex

      public static long fOrderIndex(long[] chunkCoords, long[] arrayShape)
    • isFullChunk

      public static boolean isFullChunk(int[] selOffset, int[] selShape, int[] chunkShape)
    • isSingleFullChunk

      public static boolean isSingleFullChunk(long[] selOffset, int[] selShape, int[] chunkShape)
    • computeSingleChunkCoords

      public static long[] computeSingleChunkCoords(long[] selOffset, int[] chunkShape)