Main Page   Class Hierarchy   Compound List   File List   Contact   Download   Symbolic Constraints   Examples  

SCIL::row Class Reference

Rows.

#include <row.h>

List of all members.

Public Member Functions

 row ()
 Creates a row with no non-zero entry.
 row (double d)
 Creates the row d.
 row (var v)
 Creates the row $ 1 \cdot v $.
 row (std::list< row_entry > &L)
 Creates the row $ \sum_{re \in L} re $.
row operator* (double d)
 Creates the row $ d \cdot r $.
polynomial operator* (const polynomial &p)
 Creates the polynomial $ pol \cdot p$.
polynomial operator* (const var &v)
 Creates the polynomial $ pol \cdot v$.
polynomial operator* (const monomial &m)
 Creates the polynomial $ pol \cdot m$.
polynomial operator+ (const polynomial &p)
 Creates the polynomial $ pol + p$.
polynomial operator- (const polynomial &p)
 Creates the polynomial $ pol - p $.
row operator- (const var &v)
 Creates the row $ r - v$.
row operator+ (const row &r1)
 Creates the row $ r + r1 $.
row operator+ (const var &v)
 Creates the row $ r + row(v) $.
row operator+ (double d)
 Creates the row $ r + row(d) $.
row operator- (const row &r1)
 Creates the row $ r - r1 $.
rowoperator+= (const var &v)
 Adds v to the row.
rowoperator-= (const var &v)
 Substracts v from the row.
rowoperator+= (const row_entry &r)
 Adds r to the row.
rowoperator+= (const row &r1)
 Adds r1 to the row.
rowoperator-= (const row &r1)
 Substracts r1 from the row.
cons_objoperator== (row r1)
 Creates the basic constraint $ r = r1 $.
cons_objoperator<= (row r1)
 Creates the basic constraint $ r \le r1 $.
cons_objoperator>= (row r1)
 Creates the basic constraint $ r \ge r1 $.
void normalize (bool clean=false)
 Normalizes the row.
std::list< row_entry >
::const_iterator 
begin () const
 Returns const_iterator to first item of NZ.
std::list< row_entry >
::const_iterator 
end () const
 Returns const_iterator past the last item of NZ.
std::list< row_entry >::iterator begin ()
 Returns iterator pointing to first item of NZ.
std::list< row_entry >::iterator end ()
 Returns iterator pointig past the end of NZ.
int size () const
 Returns the number of entries in the column.

Friends

std::ostream & operator<< (std::ostream &o, const row &)
 Add all row entries in the row to the output stream.

Detailed Description

Definition at line 15 of file row.h.


Member Function Documentation

void row::normalize ( bool  clean = false  ) 

The documentation for this class was generated from the following files:
Generated on Mon Mar 28 22:03:53 2011 for SCIL by  doxygen 1.6.3