A type to represent a weight at a certain level. More...
#include <minimize_constraint.h>
Public Member Functions | |
LevelWeight (uint32 l, weight_t w) | |
Public Attributes | |
uint32 | level: 31 |
uint32 | next: 1 |
weight_t | weight |
A type to represent a weight at a certain level.
Objects of this type are used to create sparse vectors of weights. E.g. a weight vector (w1, w2, w3) is represented as [<L1,1,w1><L3,1,w2><L5,0,w3>], where each <level, next, weight>-tuple is an object of type LevelWeight.
Definition at line 67 of file minimize_constraint.h.
Clasp::SharedMinimizeData::LevelWeight::LevelWeight | ( | uint32 | l, |
weight_t | w | ||
) | [inline] |
Definition at line 68 of file minimize_constraint.h.
The level of this weight.
Definition at line 69 of file minimize_constraint.h.
Does this weight belong to a sparse vector of weights?
Definition at line 70 of file minimize_constraint.h.
The weight at this level.
Definition at line 71 of file minimize_constraint.h.