Class DefaultSparseShortMatrix

    • Constructor Detail

      • DefaultSparseShortMatrix

        public DefaultSparseShortMatrix​(Matrix m)
      • DefaultSparseShortMatrix

        public DefaultSparseShortMatrix​(Matrix m,
                                        int maximumNumberOfEntries)
      • DefaultSparseShortMatrix

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

      • getShort

        public short getShort​(long... coordinates)
        Description copied from interface: ShortMatrix
        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:
        getShort in interface ShortMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a short representation of the entry @
      • setShort

        public void setShort​(short value,
                             long... coordinates)
        Description copied from interface: ShortMatrix
        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:
        setShort in interface ShortMatrix
        Parameters:
        value - short value
        coordinates - location of the entry @
      • 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 @