MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / maximum

Function maximum

src/isomodel/SimModel.cpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 return vd;
197 }
198 double maximum(const Vector& v1) {
199 double max = -std::numeric_limits<double>::max();
200 for (size_t i = 0; i < v1.size(); i++) {
201 if (v1[i] > max) {
202 max = v1[i];
203 }
204 }
205 return max;
206 }
207 Vector maximum(const Vector& v1, const Vector& v2) {
208 assert(v1.size() == v2.size());
209 Vector vx = Vector(v1.size());

Callers 4

ventilationCalcMethod · 0.70
heatingAndCoolingMethod · 0.70
heatedWaterMethod · 0.70
testGenericFunctionsFunction · 0.50

Calls 1

sizeMethod · 0.45

Tested by 1

testGenericFunctionsFunction · 0.40