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

Function vectorInit

src/isomodel/SimModel.cpp:71–75  ·  view source on GitHub ↗

* Initializes a vector to the specified value */

Source from the content-addressed store, hash-verified

69 * Initializes a vector to the specified value
70 */
71 void vectorInit(Vector& vec, double val) {
72 for (unsigned int i = 0; i < vec.size(); i++) {
73 vec[i] = val;
74 }
75 }
76
77 /**
78 * Initializes a vector to 0

Callers 2

zeroFunction · 0.85
oneFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected