类 IndexConstant

  • 所有已实现的接口:
    java.lang.Cloneable

    public class IndexConstant
    extends Index
    An Index into an Array that always returns 0. It can have any shape, so it allows you to create a constant Array of any shape.
    作者:
    caron
    • 构造器详细资料

      • IndexConstant

        protected IndexConstant​(int rank)
      • IndexConstant

        protected IndexConstant​(int[] shape)
      • IndexConstant

        protected IndexConstant​(int[] shape,
                                int[] stride)
    • 方法详细资料

      • currentElement

        public int currentElement()
        always return 0
        覆盖:
        currentElement 在类中 Index
        返回:
        the current element's index into the 1D backing array.