#include <iostream>
#include <fstream>
#include <vector>
#include <cassert>
#include <complex>
#include <typeinfo>
#include <string>
#include <stdint.h>
#include "global.h"
#include "../utility/print_function.hpp"
Go to the source code of this file.
|
char | cnpy2::BigEndianTest () |
|
void | cnpy2::change_shape_in_header (const string &filename, const size_t data_len, const size_t numcols) |
| Change shape in numpy header. More...
|
|
bool | cnpy2::is_valid_numpy_file (FILE *fp) |
| Check if a numpy file is sane or not. More...
|
|
char | cnpy2::map_type (const std::type_info &t) |
|
void | cnpy2::parse_header (FILE *fp, string &header) |
| Parser header from a numpy file. Store it in vector. More...
|
|
template<typename T > |
void | cnpy2::save_numpy (const string &outfile, const vector< double > &vec, vector< string > colnames, const string openmode, const char version= '1') |
|
void | cnpy2::split (vector< string > &strs, string &input, const string &pat) |
|
template<typename T > |
void | cnpy2::write_header (FILE *fp, const vector< string > &colnames, vector< unsigned int >shape, char version) |
|