标签: c++ numpy
我想在c ++中将5-Dim向量保存到.npy文件中。我已经将它转换为PyArrayObject:
PyArrayObject* numpyArray1 = (PyArrayObject*)PyArray_SimpleNewFromData(5, Dims1, NPY_FLOAT, t1.data());
如何将其保存为.npy文件?