2 #ifndef vnl_matlab_read_h_ 3 #define vnl_matlab_read_h_ 19 # include <vcl_msvc_warnings.h> 22 #include "vnl/vnl_export.h" 54 explicit operator bool ()
const;
55 bool operator!()
const;
58 bool is_single()
const;
59 bool is_rowwise()
const;
60 bool is_bigendian()
const;
61 long rows()
const {
return hdr.rows; }
62 long cols()
const {
return hdr.cols; }
64 char const *
name()
const {
return varname; }
70 #define fsm_declare_methods(T) \ 72 bool type_chck(T &); \ 74 bool read_data(T &); \ 75 bool read_data(T *); \ 76 bool read_data(T * const *) // no ; here, please. 81 #undef fsm_declare_methods 92 #endif // vnl_matlab_read_h_
#define fsm_declare_methods(T)
char const * name() const
VNL_EXPORT void vnl_matlab_read_data(std::istream &s, T *ptr, unsigned n)
MATLAB stores its data as a real block followed by an imaginary block.
An ordinary mathematical matrix.
Mathematical vector class, templated by type of element.
VNL_EXPORT bool vnl_matlab_read_or_die(std::istream &, vnl_vector< T > &, char const *name=nullptr)
Attempt to read vector or matrix.