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

Function dif

src/isomodel/SimModel.cpp:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 return vs;
175 }
176 Vector dif(const Vector& v1, const Vector& v2) {
177 assert(v1.size() == v2.size());
178 Vector vd = Vector(v1.size());
179 for (size_t i = 0; i < v1.size(); i++) {
180 vd[i] = v1[i] - v2[i];
181 }
182 return vd;
183 }
184 Vector dif(const Vector& v1, const double v2) {
185 Vector vd = Vector(v1.size());
186 for (size_t i = 0; i < v1.size(); i++) {

Callers 4

ventilationCalcMethod · 0.85
heatingAndCoolingMethod · 0.85
heatedWaterMethod · 0.85
testGenericFunctionsFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

testGenericFunctionsFunction · 0.68