Class RealIndexedMatrix2D<V>

  • Type Parameters:
    V - the element type.
    All Implemented Interfaces:
    java.io.Serializable

    public class RealIndexedMatrix2D<V>
    extends java.lang.Object
    implements java.io.Serializable
    Real value indexed 2D matrix.
    Author:
    anders.gidenstam@hb.se
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean contains​(double row, double column)  
      V get​(double row, double column)  
      java.util.Set<java.lang.Double> getColumnIndices​(double row)  
      V getLower​(double row, double column)  
      V getOrDefault​(double row, double column, V defaultValue)  
      java.util.Set<java.lang.Double> getRowIndices()  
      V getUpper​(double row, double column)  
      boolean isEmpty()  
      void put​(double row, double column, V value)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RealIndexedMatrix2D

        public RealIndexedMatrix2D()
    • Method Detail

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • contains

        public boolean contains​(double row,
                                double column)
      • get

        public V get​(double row,
                     double column)
      • getOrDefault

        public V getOrDefault​(double row,
                              double column,
                              V defaultValue)
      • getRowIndices

        public java.util.Set<java.lang.Double> getRowIndices()
      • getColumnIndices

        public java.util.Set<java.lang.Double> getColumnIndices​(double row)
      • getLower

        public V getLower​(double row,
                          double column)
      • getUpper

        public V getUpper​(double row,
                          double column)
      • put

        public void put​(double row,
                        double column,
                        V value)
      • clear

        public void clear()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object