Class DefaultSparseCharMatrix

    • Constructor Detail

      • DefaultSparseCharMatrix

        public DefaultSparseCharMatrix​(Matrix m)
      • DefaultSparseCharMatrix

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

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

      • getChar

        public char getChar​(long... coordinates)
        Description copied from interface: CharMatrix
        Returns a char representation of an entry in the matrix. The stored value will be converted to a char as good as possible.
        Specified by:
        getChar in interface CharMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a char representation of the entry @
      • setChar

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