23 #if !defined (octave_data_conv_h)
24 #define octave_data_conv_h 1
65 static size_t data_type_size (data_type dt);
67 static data_type string_to_data_type (
const std::string& s);
69 static void string_to_data_type (
const std::string& s,
int& block_size,
70 data_type& input_type,
71 data_type& output_type);
73 static void string_to_data_type (
const std::string& s,
int& block_size,
74 data_type& output_type);
76 static std::string data_type_as_string (data_type dt);
97 extern OCTAVE_API
void
103 extern OCTAVE_API
void
109 extern OCTAVE_API
void
115 extern OCTAVE_API
void
119 extern OCTAVE_API
void
123 extern OCTAVE_API
void
127 extern OCTAVE_API
void
131 template <
typename T>
bool is_equivalent_type< int64_t >(oct_data_conv::data_type t)
bool is_equivalent_type(oct_data_conv::data_type)
bool is_equivalent_type< octave_int32 >(oct_data_conv::data_type t)
OCTAVE_API void read_floats(std::istream &is, float *data, save_type type, octave_idx_type len, bool swap, oct_mach_info::float_format fmt)
bool is_equivalent_type< int8_t >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_int16 >(oct_data_conv::data_type t)
bool is_equivalent_type< int16_t >(oct_data_conv::data_type t)
OCTAVE_API void write_floats(std::ostream &os, const float *data, save_type type, octave_idx_type len)
bool is_equivalent_type< uint8_t >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_uint32 >(oct_data_conv::data_type t)
bool is_equivalent_type< float >(oct_data_conv::data_type t)
bool is_equivalent_type< uint64_t >(oct_data_conv::data_type t)
bool is_equivalent_type< int32_t >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_int8 >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_int64 >(oct_data_conv::data_type t)
OCTAVE_API void do_float_format_conversion(void *data, octave_idx_type len, oct_mach_info::float_format from_fmt, oct_mach_info::float_format to_fmt=oct_mach_info::native_float_format())
OCTAVE_API void write_doubles(std::ostream &os, const double *data, save_type type, octave_idx_type len)
static float_format native_float_format(void)
bool is_equivalent_type< octave_uint64 >(oct_data_conv::data_type t)
OCTAVE_API void read_doubles(std::istream &is, double *data, save_type type, octave_idx_type len, bool swap, oct_mach_info::float_format fmt)
bool is_equivalent_type< double >(oct_data_conv::data_type t)
bool is_equivalent_type< uint16_t >(oct_data_conv::data_type t)
OCTAVE_API void do_double_format_conversion(void *data, octave_idx_type len, oct_mach_info::float_format from_fmt, oct_mach_info::float_format to_fmt=oct_mach_info::native_float_format())
bool is_equivalent_type< octave_uint16 >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_uint8 >(oct_data_conv::data_type t)
bool is_equivalent_type< uint32_t >(oct_data_conv::data_type t)