mathcomp.la
Class MapVector

java.lang.Object
  extended by mathcomp.la.Vector
      extended by mathcomp.la.MapVector

public class MapVector
extends Vector

Author:
pht

Method Summary
 Vector copy()
          Creates a copy of this vector.
 double get(java.lang.Object i)
          Returns the value in the row i.
 Index getIndex()
           
 void set(java.lang.Object i, double x)
          Sets the value at i to x.
 java.lang.String toString()
           
 
Methods inherited from class mathcomp.la.Vector
add, add, addScaled, copyFrom, normL2, normMax, scale, scalProd
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIndex

public Index getIndex()
Specified by:
getIndex in class Vector

get

public double get(java.lang.Object i)
Description copied from class: Vector
Returns the value in the row i.

Specified by:
get in class Vector
Parameters:
i - index of the row
Returns:
value at i

set

public void set(java.lang.Object i,
                double x)
Description copied from class: Vector
Sets the value at i to x.

Specified by:
set in class Vector
Parameters:
i - index of the row
x - value to set

copy

public Vector copy()
Description copied from class: Vector
Creates a copy of this vector.

Specified by:
copy in class Vector
Returns:
a copy of this vector

toString

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