6.34 ABA_ROW Class Reference

class refines its base class ABA_SPARVEC for the representation of constraints in the row format

#include <row.h>

Inheritance diagram for ABA_ROW::


PIC


Public Member Functions

Protected Attributes

Friends

6.34.1 Detailed Description

class refines its base class ABA_SPARVEC for the representation of constraints in the row format

Definition at line 48 of file row.h.

6.34.2 Constructor & Destructor Documentation

6.34.2.1 ABA_ROW::ABA_ROW (ABA_GLOBAL * glob, int nnz, const ABA_ARRAY< int > & s, const ABA_ARRAY< double > & c, const ABA_CSENSE sense, double r)

A constructor.

Parameters:

glob
A pointer to the corresponding global object.
nnz
The number of nonzero elements of the row.
s
The array storing the nonzero elements.
c
The array storing the nonzero coefficients of the elements of s.
sense
The sense of the row.
r
The right hand side of the row.

6.34.2.2 ABA_ROW::ABA_ROW (ABA_GLOBAL * glob, int nnz, const ABA_ARRAY< int > & s, const ABA_ARRAY< double > & c, const ABA_CSENSE::SENSE sense, double r)

This is an equivalent constructor using ABA_CSENSE::SENSE instead of an object of the class SENSE to initialize the sense of the constraint.

6.34.2.3 ABA_ROW::ABA_ROW (ABA_GLOBAL * glob, int nnz, int * s, double * c, ABA_CSENSE::SENSE sense, double r)

This is also an equivalent constructor except that s and c are C-style arrays.

6.34.2.4 ABA_ROW::ABA_ROW (ABA_GLOBAL * glob, int size)

A constructor without initialization of the nonzeros of the row.

Parameters:

glob
A pointer to the corresponding global object.
size
The maximal numbers of nonzeros.

6.34.2.5 ABA_ROW::~ABA_ROW ()

The destructor.

6.34.3 Member Function Documentation

6.34.3.1 double ABA_ROW::rhs () const [inline]

Returns:

The right hand side stored in the row format.

Definition at line 190 of file row.h.

6.34.3.2 void ABA_ROW::rhs (double r) [inline]

This version of rhs() sets the right hand side of the row.

Parameters:

r
The new value of the right hand side.

Definition at line 195 of file row.h.

6.34.3.3 ABA_CSENSE * ABA_ROW::sense () [inline]

Returns:

A pointer to the sense of the row.

Definition at line 200 of file row.h.

6.34.3.4 void ABA_ROW::sense (ABA_CSENSE & s) [inline]

This version of sense() sets the sense of the row.

Parameters:

s
The new sense of the row.

Definition at line 205 of file row.h.

6.34.3.5 void ABA_ROW::sense (ABA_CSENSE::SENSE s) [inline]

And another version of sense() to set the sense of the row.

Parameters:

s
The new sense of the row.

Definition at line 210 of file row.h.

6.34.3.6 void ABA_ROW::copy (const ABA_ROW & row)

Behaves like an assignment operator, however, the maximal number of the elements of this row only has to be at least the number of nonzeros of row.

Parameters:

row
The row that is copied.

6.34.3.7 void ABA_ROW::delInd (ABA_BUFFER< int > & buf, double rhsDelta)

Removes the indices listed in buf from the support of the row and subtracts rhsDelta from its right hand side.

Parameters:

buf
The components being removed from the row.
rhsDelta
The correction of the right hand side of the row.

6.34.4 Friends And Related Function Documentation

6.34.4.1 ostream& operator<< (ostream & out, const ABA_ROW & rhs) [friend]

The output operator writes the row on an output stream in format like { -2.5 x1 + 3 x3 <= 7}.

Only variables with nonzero coefficients are output. The output operator does neither output a ’+’ before the first coefficient of a row, if it is positive, nor outputs coefficients with absolute value 1.

Returns:

A reference to the output stream.

Parameters:

out
The output stream.
rhs
The row being output.

6.34.5 Member Data Documentation

6.34.5.1 ABA_CSENSE ABA_ROW::sense_ [protected]

The sense of the row.

Definition at line 182 of file row.h.

6.34.5.2 double ABA_ROW::rhs_ [protected]

The right hand side of the row.

Definition at line 186 of file row.h.

The documentation for this class was generated from the following file: