#include <string>
#include <stdexcept>
#include <sstream>
#include <vector>
#include <cstdio>
#include <typeinfo>
#include <iostream>
#include <zlib.h>
#include <map>
#include <memory>
#include <stdint.h>
#include <numeric>
Go to the source code of this file.
|
char | cnpy::BigEndianTest () |
|
char | cnpy::map_type (const std::type_info &t) |
|
template<typename T > |
std::vector< char > | cnpy::create_npy_header (const std::vector< size_t > &shape) |
|
void | cnpy::parse_npy_header (FILE *fp, size_t &word_size, std::vector< size_t > &shape, bool &fortran_order) |
|
void | cnpy::parse_npy_header (unsigned char *buffer, size_t &word_size, std::vector< size_t > &shape, bool &fortran_order) |
|
void | cnpy::parse_zip_footer (FILE *fp, uint16_t &nrecs, size_t &global_header_size, size_t &global_header_offset) |
|
npz_t | cnpy::npz_load (std::string fname) |
|
NpyArray | cnpy::npz_load (std::string fname, std::string varname) |
|
NpyArray | cnpy::npy_load (std::string fname) |
|
template<typename T > |
std::vector< char > & | cnpy::operator+= (std::vector< char > &lhs, const T rhs) |
|
template<> |
std::vector< char > & | cnpy::operator+= (std::vector< char > &lhs, const std::string rhs) |
|
template<> |
std::vector< char > & | cnpy::operator+= (std::vector< char > &lhs, const char *rhs) |
|
template<typename T > |
void | cnpy::npy_save (std::string fname, const T *data, const std::vector< size_t > shape, std::string mode="w") |
|
template<typename T > |
void | cnpy::npz_save (std::string zipname, std::string fname, const T *data, const std::vector< size_t > &shape, std::string mode="w") |
|
template<typename T > |
void | cnpy::npy_save (std::string fname, const std::vector< T > data, std::string mode="w") |
|
template<typename T > |
void | cnpy::npz_save (std::string zipname, std::string fname, const std::vector< T > data, std::string mode="w") |
|