Class ScratchNDArray

    • Constructor Detail

      • ScratchNDArray

        public ScratchNDArray​(ArrayDescription template)
        Constructs a scratch array with shape, type and bad value handling characteristics copied from a template ArrayDescription. The nature of the backing store is chosen automatically based on how large the requested array will be.
        Parameters:
        template - NDArray
      • ScratchNDArray

        public ScratchNDArray​(OrderedNDShape shape,
                              Type type,
                              BadHandler badHandler)
        Constructs a scratch array with shape, type and bad value handling supplied explicitly. The nature of the backing store is chosen automatically based on how large the requested array will be.
        Parameters:
        shape - shape of the new array
        type - primitive data type of the new array
        badHandler - bad value handler to use for the new array
      • ScratchNDArray

        public ScratchNDArray​(OrderedNDShape shape,
                              Type type,
                              BadHandler badHandler,
                              ScratchNDArray.BackingStore bstore)
        Constructs a scratch array with shape, type, bad value handling and backing store type supplied explicitly.
        Parameters:
        shape - shape of the new array
        type - primitive data type of the new array
        badHandler - bad value handler to use for the new array
        bstore - indicates what method should be used to implement the backing store of the array