| 312 | } |
| 313 | |
| 314 | inline unsigned int getNumElements(Header& header) |
| 315 | { |
| 316 | unsigned int numEls = 1; |
| 317 | for (auto dim: header.m_Shape) |
| 318 | { |
| 319 | numEls *= dim; |
| 320 | } |
| 321 | |
| 322 | return numEls; |
| 323 | } |
| 324 | |
| 325 | // Material in WriteToNumpyFile() has been reused from https://github.com/llohse/libnpy/blob/master/include/npy.hpp |
| 326 | // Please see write_header() in the above file for more details. |
no outgoing calls
no test coverage detected