JMSLTM Numerical Library 6.1

com.imsl.io
Class MPSReader.Row

java.lang.Object
  extended by com.imsl.io.MPSReader.Row
All Implemented Interfaces:
Serializable
Enclosing class:
MPSReader

public class MPSReader.Row
extends Object
implements Serializable

A row either in the constraint matrix or a free row.

See Also:
Serialized Form

Method Summary
 double[] getCoefficients()
          Returns the coeffients of this row as a dense array.
 String getName()
          Returns the name of this row.
 int getNumberOfNonZeros()
          Returns the number of nonzero elements in this row.
 Iterator iterator()
          Returns an iterator over the elements in this row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCoefficients

public double[] getCoefficients()
Returns the coeffients of this row as a dense array.


getName

public String getName()
Returns the name of this row.


getNumberOfNonZeros

public int getNumberOfNonZeros()
Returns the number of nonzero elements in this row.


iterator

public Iterator iterator()
Returns an iterator over the elements in this row. This is used to retrieve the coeffients in a sparse form.


JMSLTM Numerical Library 6.1

Copyright © 1970-2010 Visual Numerics, Inc.
Built July 30 2010.