26 #if ! defined (octave_data_conv_h)
27 #define octave_data_conv_h 1
29 #include "octave-config.h"
68 static size_t data_type_size (data_type dt);
70 static data_type string_to_data_type (
const std::string& s);
72 static void string_to_data_type (
const std::string& s,
int& block_size,
73 data_type& input_type,
74 data_type& output_type);
76 static void string_to_data_type (
const std::string& s,
int& block_size,
77 data_type& output_type);
79 static std::string data_type_as_string (data_type dt);
100 extern OCTAVE_API
void
106 extern OCTAVE_API
void
112 extern OCTAVE_API
void
118 extern OCTAVE_API
void
122 extern OCTAVE_API
void
126 extern OCTAVE_API
void
130 extern OCTAVE_API
void
134 template <
typename T>
bool is_equivalent_type< octave_uint8 >(oct_data_conv::data_type t)
OCTAVE_API void write_floats(std::ostream &os, const float *data, save_type type, octave_idx_type len)
OCTAVE_API void do_double_format_conversion(void *data, octave_idx_type len, octave::mach_info::float_format from_fmt, octave::mach_info::float_format to_fmt=octave::mach_info::native_float_format())
bool is_equivalent_type< float >(oct_data_conv::data_type t)
bool is_equivalent_type< int16_t >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_int64 >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_int8 >(oct_data_conv::data_type t)
bool is_equivalent_type(oct_data_conv::data_type)
OCTAVE_API void read_doubles(std::istream &is, double *data, save_type type, octave_idx_type len, bool swap, octave::mach_info::float_format fmt)
bool is_equivalent_type< double >(oct_data_conv::data_type t)
OCTAVE_API void do_float_format_conversion(void *data, octave_idx_type len, octave::mach_info::float_format from_fmt, octave::mach_info::float_format to_fmt=octave::mach_info::native_float_format())
bool is_equivalent_type< uint16_t >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_uint32 >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_int16 >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_uint64 >(oct_data_conv::data_type t)
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, octave::mach_info::float_format fmt)
bool is_equivalent_type< int64_t >(oct_data_conv::data_type t)
bool is_equivalent_type< int32_t >(oct_data_conv::data_type t)
bool is_equivalent_type< octave_uint16 >(oct_data_conv::data_type t)
bool is_equivalent_type< uint32_t >(oct_data_conv::data_type t)
bool is_equivalent_type< uint64_t >(oct_data_conv::data_type t)
bool is_equivalent_type< int8_t >(oct_data_conv::data_type t)
bool is_equivalent_type< uint8_t >(oct_data_conv::data_type t)
OCTAVE_API void write_doubles(std::ostream &os, const double *data, save_type type, octave_idx_type len)
float_format native_float_format(void)