MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / build

Method build

src/CPnumerics.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool SplineClass::build() {
162 if (Nconstraints == 4) {
163 std::vector<double> abcd = CoolProp::linsolve(A, B);
164 a = abcd[0];
165 b = abcd[1];
166 c = abcd[2];
167 d = abcd[3];
168 return true;
169 } else {
170 throw CoolProp::ValueError(format("Number of constraints[%d] is not equal to 4", Nconstraints));
171 }
172}
173bool SplineClass::add_value_constraint(double x, double y) {
174 int i = Nconstraints;
175 if (i == 4) return false;

Callers

nothing calls this directly

Calls 2

linsolveFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected