Lines Matching refs:fname
90 npz_t npz_load(std::string fname);
91 NpyArray npz_load(std::string fname, std::string varname);
92 NpyArray npy_load(std::string fname);
111 int npy_save(std::string fname, const T* data, const std::vector<size_t> shape, std::string mode = …
113 std::ofstream ofs(fname, std::ios::out);
122 fp = fopen(fname.c_str(), "r+b");
133 …std::cout << "libnpy error: " << fname << " has word size " << word_size << " but npy_save appendi…
138 …std::cout << "libnpy error: npy_save attempting to append misdimensioned data to " << fname << "\n…
144 … std::cout << "libnpy error: npy_save attempting to append misshaped data to " << fname << "\n";
150 fp = fopen(fname.c_str(), "wb");
166 void npz_save(std::string zipname, std::string fname, const T* data, const std::vector<size_t>& sha…
170 fname += ".npy";
225 local_header += (uint16_t)fname.size(); // fname length
227 local_header += fname;
240 global_header += fname;
266 void npy_save(std::string fname, const std::vector<T> data, std::string mode = "w")
270 npy_save(fname, &data[0], shape, mode);
274 void npz_save(std::string zipname, std::string fname, const std::vector<T> data, std::string mode =…
278 npz_save(zipname, fname, &data[0], shape, mode);