#include <trws_decomposition.hxx>
Public Types | |
typedef Decomposition< GM > | parent |
typedef parent::IndexType | IndexType |
typedef parent::LabelType | LabelType |
typedef parent::IndexList | IndexList |
typedef parent::SubVariable | SubVariable |
typedef parent::SubVariableListType | SubVariableListType |
Public Member Functions | |
GridDecomposition (const GM &gm, IndexType numSubModels=0) | |
numSubModels - ESTIMATED number of submodels to optimize memory allocation | |
IndexType | xsize () const |
IndexType | ysize () const |
Protected Member Functions | |
void | _computeGridSizes () |
void | _CheckGridModel () |
void | _initDecompositionLists () |
IndexType | _xysize () const |
IndexType | _pwrowsize () const |
IndexType | _pwIndexRow (IndexType x, IndexType y) const |
> returns an index of a row pairwise factor places to the right to var (x,y) | |
IndexType | _pwIndexCol (IndexType x, IndexType y) const |
> returns an index of a row pairwise factor places to the right to var (x,y) | |
IndexType | _varIndex (IndexType x, IndexType y) const |
> returns an index of a column pairwise factor places to the down to var (x,y) | |
void | _getRow (IndexType y, IndexList *plist) const |
> returns indexes of variables in the row <y> | |
void | _getCol (IndexType x, IndexList *plist) const |
> returns indexes of variables in the row <y> | |
void | _getPWRow (IndexType y, IndexList *plist) const |
> returns indexes of variables in the column <y> | |
void | _getPWCol (IndexType x, IndexList *plist) const |
> return indexes of pairwise factors in the row <y> |
Definition at line 88 of file trws_decomposition.hxx.
typedef parent::IndexList trws_base::GridDecomposition< GM >::IndexList |
Reimplemented from trws_base::Decomposition< GM >.
Definition at line 94 of file trws_decomposition.hxx.
typedef parent::IndexType trws_base::GridDecomposition< GM >::IndexType |
Reimplemented from trws_base::Decomposition< GM >.
Definition at line 92 of file trws_decomposition.hxx.
typedef parent::LabelType trws_base::GridDecomposition< GM >::LabelType |
Reimplemented from trws_base::Decomposition< GM >.
Definition at line 93 of file trws_decomposition.hxx.
typedef Decomposition<GM> trws_base::GridDecomposition< GM >::parent |
Definition at line 91 of file trws_decomposition.hxx.
typedef parent::SubVariable trws_base::GridDecomposition< GM >::SubVariable |
Reimplemented from trws_base::Decomposition< GM >.
Definition at line 95 of file trws_decomposition.hxx.
typedef parent::SubVariableListType trws_base::GridDecomposition< GM >::SubVariableListType |
Reimplemented from trws_base::Decomposition< GM >.
Definition at line 96 of file trws_decomposition.hxx.
trws_base::GridDecomposition< GM >::GridDecomposition | ( | const GM & | gm, | |
IndexType | numSubModels = 0 | |||
) | [inline] |
numSubModels - ESTIMATED number of submodels to optimize memory allocation
Definition at line 181 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_CheckGridModel | ( | ) | [inline, protected] |
Definition at line 231 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_computeGridSizes | ( | ) | [inline, protected] |
Definition at line 198 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_getCol | ( | IndexType | x, | |
IndexList * | plist | |||
) | const [inline, protected] |
> returns indexes of variables in the row <y>
> returns indexes of variables in the column <y>
Definition at line 427 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_getPWCol | ( | IndexType | x, | |
IndexList * | plist | |||
) | const [inline, protected] |
> return indexes of pairwise factors in the row <y>
> return indexes of pairwise factors in the column <x>
Definition at line 451 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_getPWRow | ( | IndexType | y, | |
IndexList * | plist | |||
) | const [inline, protected] |
> returns indexes of variables in the column <y>
> return indexes of pairwise factors in the row <y>
Definition at line 437 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_getRow | ( | IndexType | y, | |
IndexList * | plist | |||
) | const [inline, protected] |
> returns indexes of variables in the row <y>
Definition at line 417 of file trws_decomposition.hxx.
void trws_base::GridDecomposition< GM >::_initDecompositionLists | ( | ) | [inline, protected] |
Definition at line 259 of file trws_decomposition.hxx.
GridDecomposition< GM >::IndexType trws_base::GridDecomposition< GM >::_pwIndexCol | ( | IndexType | x, | |
IndexType | y | |||
) | const [inline, protected] |
> returns an index of a row pairwise factor places to the right to var (x,y)
> returns an index of a column pairwise factor places to the down to var (x,y)
Definition at line 409 of file trws_decomposition.hxx.
GridDecomposition< GM >::IndexType trws_base::GridDecomposition< GM >::_pwIndexRow | ( | IndexType | x, | |
IndexType | y | |||
) | const [inline, protected] |
> returns an index of a row pairwise factor places to the right to var (x,y)
Definition at line 400 of file trws_decomposition.hxx.
IndexType trws_base::GridDecomposition< GM >::_pwrowsize | ( | ) | const [inline, protected] |
Definition at line 109 of file trws_decomposition.hxx.
IndexType trws_base::GridDecomposition< GM >::_varIndex | ( | IndexType | x, | |
IndexType | y | |||
) | const [inline, protected] |
> returns an index of a column pairwise factor places to the down to var (x,y)
Definition at line 112 of file trws_decomposition.hxx.
IndexType trws_base::GridDecomposition< GM >::_xysize | ( | ) | const [inline, protected] |
Definition at line 108 of file trws_decomposition.hxx.
IndexType trws_base::GridDecomposition< GM >::xsize | ( | ) | const [inline] |
Definition at line 99 of file trws_decomposition.hxx.
IndexType trws_base::GridDecomposition< GM >::ysize | ( | ) | const [inline] |
Definition at line 100 of file trws_decomposition.hxx.