Class AbstractShortMatrix

    • Constructor Detail

      • AbstractShortMatrix

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

      • getNumber

        public java.lang.Short getNumber​(long... coordinates)
        Description copied from interface: NumberMatrixMultiD
        Returns a Number representation of an entry in the matrix. The stored value will be converted to a Number as good as possible.
        Specified by:
        getNumber in interface NumberMatrixMultiD<java.lang.Short>
        Parameters:
        coordinates - location of the entry
        Returns:
        a Number representation of the entry @
      • setNumber

        public void setNumber​(java.lang.Short value,
                              long... coordinates)
        Description copied from interface: NumberMatrixMultiD
        Sets an entry in the matrix to a Number value. If the matrix cannot store Number values, the value will be represented as good as possible.
        Specified by:
        setNumber in interface NumberMatrixMultiD<java.lang.Short>
        Parameters:
        value - Number value
        coordinates - location of the entry @
      • getObject

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

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

        public final void setAsShort​(short value,
                                     long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a short value. If the matrix cannot store short values, the value will be represented as good as possible.
        Specified by:
        setAsShort in interface GettersAndSetters
        Overrides:
        setAsShort in class AbstractMatrix
        Parameters:
        value - short 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 @