MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / allocateMemory

Method allocateMemory

src/nlr/DeepPolyElement.cpp:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void DeepPolyElement::allocateMemory()
118{
119 freeMemoryIfNeeded();
120
121 unsigned size = getSize();
122 _lb = new double[size];
123 _ub = new double[size];
124
125 std::fill_n( _lb, size, FloatUtils::negativeInfinity() );
126 std::fill_n( _ub, size, FloatUtils::infinity() );
127}
128
129void DeepPolyElement::freeMemoryIfNeeded()
130{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected