FORM 4.3
optimization Class Reference

Public Member Functions

bool operator< (const optimization &a) const
 

Data Fields

int type
 
int arg1
 
int arg2
 
int improve
 
vector< WORD > coeff
 
vector< int > eqnidxs
 

Detailed Description

class Optimization

Description

This object represents an optimization. Its type is a number in the range 0 to 5. Depending on this type, the variables arg1, arg2 and coeff indicate:

type==0 : optimization of the form x[arg1] ^ arg2 (coeff=empty) type==1 : optimization of the form x[arg1] * x[arg2] (coeff=empty) type==2 : optimization of the form x[arg1] * coeff (arg2=0) type==3 : optimization of the form x[arg1] + coeff (arg2=0) type==4 : optimization of the form x[arg1] + x[arg2] (coeff=empty) type==5 : optimization of the form x[arg1] - x[arg2] (coeff=empty)

Here, "x[arg]" represents a symbol (if positive) or an extrasymbol (if negative). The represented symbol's id is ABS(x[arg])-1.

"eqns" is a list of equation, where this optimization can be performed.

"improve" is the total improvement of this optimization.

Definition at line 2623 of file optimize.cc.

Member Function Documentation

◆ operator<()

bool operator< ( const optimization & a) const
inline

Definition at line 2629 of file optimize.cc.

Field Documentation

◆ type

int type

Definition at line 2625 of file optimize.cc.

◆ arg1

int arg1

Definition at line 2625 of file optimize.cc.

◆ arg2

int arg2

Definition at line 2625 of file optimize.cc.

◆ improve

int improve

Definition at line 2625 of file optimize.cc.

◆ coeff

vector<WORD> coeff

Definition at line 2626 of file optimize.cc.

◆ eqnidxs

vector<int> eqnidxs

Definition at line 2627 of file optimize.cc.


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