Package se.hb.jcp.util
Class RealIndexedMatrix2D<V>
- java.lang.Object
-
- se.hb.jcp.util.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.SerializableReal value indexed 2D matrix.- Author:
- anders.gidenstam@hb.se
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RealIndexedMatrix2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(double row, double column)Vget(double row, double column)java.util.Set<java.lang.Double>getColumnIndices(double row)VgetLower(double row, double column)VgetOrDefault(double row, double column, V defaultValue)java.util.Set<java.lang.Double>getRowIndices()VgetUpper(double row, double column)booleanisEmpty()voidput(double row, double column, V value)intsize()java.lang.StringtoString()
-
-
-
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)
-
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:
toStringin classjava.lang.Object
-
-