23 #if ! defined (octave_data_conv_h) 24 #define octave_data_conv_h 1 26 #include "octave-config.h" 67 static size_t data_type_size (data_type dt);
69 static data_type string_to_data_type (
const std::string&
s);
71 static void string_to_data_type (
const std::string&
s,
int& block_size,
72 data_type& input_type,
73 data_type& output_type);
75 static void string_to_data_type (
const std::string&
s,
int& block_size,
76 data_type& output_type);
78 static std::string data_type_as_string (data_type dt);
99 extern OCTAVE_API
void 105 extern OCTAVE_API
void 111 extern OCTAVE_API
void 117 extern OCTAVE_API
void 121 extern OCTAVE_API
void 125 extern OCTAVE_API
void 129 extern OCTAVE_API
void 133 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)
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_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
OCTAVE_API void write_floats(std::ostream &os, const float *data, save_type type, octave_idx_type len)
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< 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)
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< uint64_t >(oct_data_conv::data_type t)
float_format native_float_format(void)
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< 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 write_doubles(std::ostream &os, const double *data, save_type type, octave_idx_type len)
bool is_equivalent_type< octave_uint64 >(oct_data_conv::data_type t)
bool is_equivalent_type< double >(oct_data_conv::data_type t)
bool is_equivalent_type< uint16_t >(oct_data_conv::data_type t)
write the output to stdout if nargout is
bool is_equivalent_type< octave_uint16 >(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)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
bool is_equivalent_type< octave_uint8 >(oct_data_conv::data_type t)
bool is_equivalent_type< uint32_t >(oct_data_conv::data_type t)