Class AbstractNDArrayView<T,​T2 extends Number>

    • Constructor Detail

      • AbstractNDArrayView

        public AbstractNDArrayView()
    • Method Detail

      • getNamePrefix

        public String getNamePrefix()
        Description copied from interface: NDArray
        Returns a string that identifies the implementation behind this current object. The output of the toString() function starts with this string.
        Returns:
        a string that identifies the implementation
      • dtype

        public Class<?> dtype()
        Description copied from interface: NDArray
        Returns the type of values returned by get method. Possible values: Float.class, Double.class, Complex.class Byte.class, Short.class, Integer.class, Long.class.
        Returns:
        the type of values returned by get method.
      • dtype2

        public Class<?> dtype2()
      • dataTypeAsString

        public String dataTypeAsString()
        Description copied from interface: NDArray
        Returns a String representation of element type.
        Returns:
        "Byte", "Short", "Integer", "Long", "Float", "Double", "Complex Float", or "Complex Double" depending on the type of array
      • similar

        public NDArray<T> similar()
        Description copied from interface: NDArray
        Returns a new array of the same shape as this NDArray filled with zeros.
        Specified by:
        similar in interface NDArray<T>
        Overrides:
        similar in class AbstractNDArray<T,​T2 extends Number>
        Returns:
        a new array of the same shape as this NDArray filled with zeros.
      • linearIndexToViewIndices

        public int[] linearIndexToViewIndices​(int linearIndex)
      • equals

        public boolean equals​(Object obj)
        Description copied from interface: NDArray
        Compares the specified object with this NDArray for equality. Two arrays are equal, if they are both real or both complex, and they are element-wise equal. If the specified object is not NDArray then the function returns false.
        Specified by:
        equals in interface NDArray<T>
        Overrides:
        equals in class AbstractNDArray<T,​T2 extends Number>
        Parameters:
        obj - Object to be compared for equality
        Returns:
        true if the specified object equals with this NDArray
      • hashCode

        public int hashCode()
        Description copied from interface: NDArray
        This method is unsupported because NDArrays should not be used as keys in hash-based collections.
        Specified by:
        hashCode in interface NDArray<T>
        Overrides:
        hashCode in class AbstractNDArray<T,​T2 extends Number>
        Returns:
        always throws UnsupportedOperationsException