MCPcopy Create free account
hub / github.com/numpy/numpy / allocateRows

Method allocateRows

tools/swig/test/Array2.cxx:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void Array2::allocateRows()
153{
154 _rows = new Array1[_nrows];
155 for (int i=0; i < _nrows; ++i)
156 {
157 _rows[i].resize(_ncols, &_buffer[i*_ncols]);
158 }
159}
160
161void Array2::deallocateMemory()
162{

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected