Class AbstractIntMatrix

    • Constructor Detail

      • AbstractIntMatrix

        public AbstractIntMatrix​(long... size)
    • Method Detail

      • getObject

        public final java.lang.Integer getObject​(long... coordinates)
        Specified by:
        getObject in interface GenericMatrixMultiD<java.lang.Integer>
      • getAsInt

        public final int getAsInt​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns an int representation of an entry in the matrix. The stored value will be converted to an int as good as possible.
        Specified by:
        getAsInt in interface GettersAndSetters
        Overrides:
        getAsInt in class AbstractMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        an int representation of the entry @
      • setAsInt

        public final void setAsInt​(int value,
                                   long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to an int value. If the matrix cannot store int values, the value will be represented as good as possible.
        Specified by:
        setAsInt in interface GettersAndSetters
        Overrides:
        setAsInt in class AbstractMatrix
        Parameters:
        value - int value
        coordinates - location of the entry @
      • getAsDouble

        public final double getAsDouble​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
        Specified by:
        getAsDouble in interface GettersAndSetters
        Overrides:
        getAsDouble in class AbstractMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a double representation of the entry @
      • setAsDouble

        public final void setAsDouble​(double value,
                                      long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a double value. If the matrix cannot store double values, the value will be represented as good as possible.
        Specified by:
        setAsDouble in interface GettersAndSetters
        Overrides:
        setAsDouble in class AbstractMatrix
        Parameters:
        value - double value
        coordinates - location of the entry @