26 #if ! defined (octave_ov_re_mat_h)
27 #define octave_ov_re_mat_h 1
29 #include "octave-config.h"
85 bool zero_based =
false,
bool cache_index =
false)
89 if (zero_based && cache_index)
96 set_idx_cache (cache);
104 type_conv_info numeric_demotion_function ()
const;
110 return m_idx_cache ? *m_idx_cache
148 double double_value (
bool =
false)
const;
150 float float_value (
bool =
false)
const;
153 {
return double_value (frc_str_conv); }
155 Matrix matrix_value (
bool =
false)
const;
157 FloatMatrix float_matrix_value (
bool =
false)
const;
159 Complex complex_value (
bool =
false)
const;
171 boolNDArray bool_array_value (
bool warn =
false)
const;
221 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
223 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
225 bool save_ascii (std::ostream& os);
227 bool load_ascii (std::istream& is);
229 bool save_binary (std::ostream& os,
bool save_as_floats);
231 bool load_binary (std::istream& is,
bool swap,
234 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
238 int write (octave::stream& os,
int block_size,
241 {
return os.write (m_matrix, block_size, output_type, skip, flt_fmt); }
243 mxArray * as_mxArray (
bool interleaved)
const;
Vector representing the dimensions (size) of an Array.
octave_matrix(const NDArray &nda, const octave::idx_vector &cache)
octave_matrix(const NDArray &nda)
octave_matrix(const Matrix &m, const MatrixType &t)
uint8NDArray uint8_array_value() const
octave_base_value * empty_clone() const
octave_matrix(const RowVector &v)
builtin_type_t builtin_type() const
octave_matrix(const Array< octave_idx_type > &idx, bool zero_based=false, bool cache_index=false)
int8NDArray int8_array_value() const
uint32NDArray uint32_array_value() const
int64NDArray int64_array_value() const
double scalar_value(bool frc_str_conv=false) const
octave::idx_vector index_vector(bool=false) const
octave_matrix(const ColumnVector &v)
bool is_double_type() const
int write(octave::stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
uint16NDArray uint16_array_value() const
octave_matrix(const Array< double > &m)
uint64NDArray uint64_array_value() const
int16NDArray int16_array_value() const
octave_matrix(const Matrix &m)
octave_matrix(const octave_matrix &m)
bool is_real_matrix() const
octave_base_value * clone() const
int32NDArray int32_array_value() const
octave_matrix(const DiagMatrix &d)
FloatNDArray float_array_value(bool=false) const
NDArray array_value(bool=false) const
octave::idx_vector idx_vector
intNDArray< octave_int16 > int16NDArray
intNDArray< octave_int32 > int32NDArray
intNDArray< octave_int64 > int64NDArray
intNDArray< octave_int8 > int8NDArray
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
std::complex< double > Complex
std::complex< float > FloatComplex
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
intNDArray< octave_uint16 > uint16NDArray
intNDArray< octave_uint32 > uint32NDArray
intNDArray< octave_uint64 > uint64NDArray
intNDArray< octave_uint8 > uint8NDArray