#include <cnpy.h>
Public Member Functions | |
NpyArray (const std::vector< size_t > &_shape, size_t _word_size, bool _fortran_order) | |
NpyArray () | |
template<typename T > | |
T * | data () |
template<typename T > | |
const T * | data () const |
template<typename T > | |
std::vector< T > | as_vec () const |
size_t | num_bytes () const |
Public Attributes | |
std::shared_ptr< std::vector< char > > | data_holder |
std::vector< size_t > | shape |
size_t | word_size |
bool | fortran_order |
size_t | num_vals |
|
inline |
|
inline |
|
inline |
std::shared_ptr<std::vector<char> > cnpy::NpyArray::data_holder |
std::vector<size_t> cnpy::NpyArray::shape |