MCPcopy Create free account
hub / github.com/Gecode/gecode / init

Method init

gecode/iter/ranges-scale.hpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125 template<class Val, class UnsVal, class I>
126 inline void
127 ScaleUp<Val,UnsVal,I>::init(I& i0, int a0) {
128 i = i0; a = a0;
129 if (i()) {
130 cur = static_cast<Val>(a) * static_cast<Val>(i.min());
131 end = static_cast<Val>(a) * static_cast<Val>(i.max());
132 } else {
133 cur = 1;
134 end = 0;
135 }
136 }
137
138 template<class Val, class UnsVal, class I>
139 inline

Callers

nothing calls this directly

Calls 3

iFunction · 0.70
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected