SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse
Class Coordinates

java.lang.Object
  extended by com.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.Coordinates

public final class Coordinates
extends java.lang.Object

This class represents the coordinates (i, j) of a matrix element, where i and j are the row-index and column-index of the element, respectively.


Field Summary
 int i
          the row index
 int j
          the column index
 
Constructor Summary
Coordinates(int i, int j)
          Construct a matrix coordinate specifying an entry location.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

public final int i
the row index


j

public final int j
the column index

Constructor Detail

Coordinates

public Coordinates(int i,
                   int j)
Construct a matrix coordinate specifying an entry location.

Parameters:
i - the row index
j - the column index
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.