mathcomp.la
Class IndexToInteger

java.lang.Object
  extended by mathcomp.la.IndexToInteger

public class IndexToInteger
extends java.lang.Object

This class is used for exporting our la classes to external tools like JMP, UMFPACK, and SuperLU. It uses the Index.iterator() to fix one Enumeration of the index set.

Author:
pht

Constructor Summary
IndexToInteger(Index index)
           
 
Method Summary
 Index getIndex()
           
 int getInt(java.lang.Object key)
          Gives the int for key.
 java.lang.Object getKey(int i)
          Gives the key for i.
 java.util.Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexToInteger

public IndexToInteger(Index index)
Method Detail

getInt

public int getInt(java.lang.Object key)
Gives the int for key.

Parameters:
key -
Returns:
the int for key

getKey

public java.lang.Object getKey(int i)
Gives the key for i.

Parameters:
i -
Returns:
the key for i

iterator

public java.util.Iterator iterator()

size

public int size()

getIndex

public Index getIndex()