Classes | |
| struct | NpyArray |
Typedefs | |
| using | npz_t = std::map< std::string, NpyArray > |
Functions | |
| char | BigEndianTest () |
| char | map_type (const std::type_info &t) |
| template<typename T > | |
| std::vector< char > | create_npy_header (const std::vector< size_t > &shape) |
| void | parse_npy_header (FILE *fp, size_t &word_size, std::vector< size_t > &shape, bool &fortran_order) |
| void | parse_npy_header (unsigned char *buffer, size_t &word_size, std::vector< size_t > &shape, bool &fortran_order) |
| void | parse_zip_footer (FILE *fp, uint16_t &nrecs, size_t &global_header_size, size_t &global_header_offset) |
| npz_t | npz_load (std::string fname) |
| NpyArray | npz_load (std::string fname, std::string varname) |
| NpyArray | npy_load (std::string fname) |
| template<typename T > | |
| std::vector< char > & | operator+= (std::vector< char > &lhs, const T rhs) |
| template<> | |
| std::vector< char > & | operator+= (std::vector< char > &lhs, const std::string rhs) |
| template<> | |
| std::vector< char > & | operator+= (std::vector< char > &lhs, const char *rhs) |
| template<typename T > | |
| void | npy_save (std::string fname, const T *data, const std::vector< size_t > shape, std::string mode="w") |
| template<typename T > | |
| void | 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 | npy_save (std::string fname, const std::vector< T > data, std::string mode="w") |
| template<typename T > | |
| void | npz_save (std::string zipname, std::string fname, const std::vector< T > data, std::string mode="w") |
| using cnpy::npz_t = typedef std::map<std::string, NpyArray> |
| std::vector< char > cnpy::create_npy_header | ( | const std::vector< size_t > & | shape | ) |
| cnpy::NpyArray cnpy::npy_load | ( | std::string | fname | ) |
| void cnpy::npy_save | ( | std::string | fname, |
| const T * | data, | ||
| const std::vector< size_t > | shape, | ||
| std::string | mode = "w" |
||
| ) |
Definition at line 88 of file cnpy.h.
| void cnpy::npy_save | ( | std::string | fname, |
| const std::vector< T > | data, | ||
| std::string | mode = "w" |
||
| ) |
Definition at line 228 of file cnpy.h.
| cnpy::npz_t cnpy::npz_load | ( | std::string | fname | ) |
Definition at line 246 of file cnpy.cxx.
| cnpy::NpyArray cnpy::npz_load | ( | std::string | fname, |
| std::string | varname | ||
| ) |
Definition at line 295 of file cnpy.cxx.
| void cnpy::npz_save | ( | std::string | zipname, |
| std::string | fname, | ||
| const T * | data, | ||
| const std::vector< size_t > & | shape, | ||
| std::string | mode = "w" |
||
| ) |
Definition at line 138 of file cnpy.h.
| void cnpy::npz_save | ( | std::string | zipname, |
| std::string | fname, | ||
| const std::vector< T > | data, | ||
| std::string | mode = "w" |
||
| ) |
Definition at line 234 of file cnpy.h.
| std::vector<char>& cnpy::operator+= | ( | std::vector< char > & | lhs, |
| const T | rhs | ||
| ) |
Definition at line 75 of file cnpy.h.
| std::vector< char > & cnpy::operator+= | ( | std::vector< char > & | lhs, |
| const std::string | rhs | ||
| ) |
| std::vector< char > & cnpy::operator+= | ( | std::vector< char > & | lhs, |
| const char * | rhs | ||
| ) |
Definition at line 53 of file cnpy.cxx.
| void cnpy::parse_npy_header | ( | FILE * | fp, |
| size_t & | word_size, | ||
| std::vector< size_t > & | shape, | ||
| bool & | fortran_order | ||
| ) |
Definition at line 107 of file cnpy.cxx.
| void cnpy::parse_npy_header | ( | unsigned char * | buffer, |
| size_t & | word_size, | ||
| std::vector< size_t > & | shape, | ||
| bool & | fortran_order | ||
| ) |
Definition at line 63 of file cnpy.cxx.
1.8.11