MCPcopy Create free account
hub / github.com/PSOPT/psopt / allocR

Method allocR

snopt-interface/src/snoptProblem.cpp:77–83  ·  view source on GitHub ↗

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

Source from the content-addressed store, hash-verified

75
76/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
77void snoptProblem::allocR(int alenrw) {
78 // Reset work array lengths.
79 // Allocate new memory for work arrays.
80 assert(alenrw >= 500);
81 lenrw = alenrw;
82 rw = new double[lenrw];
83}
84
85/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
86void snoptProblem::reallocI(int aleniw) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected