24 #if !defined (octave_ov_bool_mat_h)
25 #define octave_ov_bool_mat_h 1
72 set_idx_cache (cache);
86 type_conv_info numeric_conversion_function (
void)
const;
92 return idx_cache ? *idx_cache : set_idx_cache (
idx_vector (matrix));
129 double double_value (
bool =
false)
const;
131 float float_value (
bool =
false)
const;
134 {
return double_value (frc_str_conv); }
148 Complex complex_value (
bool =
false)
const;
172 retval(i) =
static_cast<char>(matrix(i));
192 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
195 void invert (
void) { matrix_ref ().invert (); }
197 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
199 bool save_ascii (std::ostream& os);
201 bool load_ascii (std::istream& is);
203 bool save_binary (std::ostream& os,
bool& save_as_floats);
205 bool load_binary (std::istream& is,
bool swap,
208 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
215 {
return os.
write (matrix, block_size, output_type, skip, flt_fmt); }
221 mxArray *as_mxArray (
void)
const;
builtin_type_t builtin_type(void) const
SparseMatrix sparse_matrix_value(bool=false) const
uint16NDArray uint16_array_value(void) const
intNDArray< octave_int64 > int64NDArray
intNDArray< octave_uint32 > uint32NDArray
bool is_bool_matrix(void) const
intNDArray< octave_uint8 > uint8NDArray
intNDArray< octave_uint16 > uint16NDArray
int16NDArray int16_array_value(void) const
octave_base_value * empty_clone(void) const
FloatMatrix float_matrix_value(bool=false) const
int32NDArray int32_array_value(void) const
intNDArray< octave_int16 > int16NDArray
FloatNDArray float_array_value(bool=false) const
double scalar_value(bool frc_str_conv=false) const
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
bool is_numeric_type(void) const
bool is_real_type(void) const
octave_value map(unary_mapper_t umap) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_bool_matrix(const boolNDArray &bm, const idx_vector &cache)
uint32NDArray uint32_array_value(void) const
intNDArray< octave_int8 > int8NDArray
void * mex_get_data(void) const
octave_bool_matrix(const octave_bool_matrix &bm)
octave_bool_matrix(const boolMatrix &bm)
~octave_bool_matrix(void)
octave_bool_matrix(const Array< bool > &bnda)
int write(octave_stream &os, int block_size, oct_data_conv::data_type output_type, int skip, oct_mach_info::float_format flt_fmt) const
static void cache(const std::string key, str_llist_type *value)
ComplexNDArray complex_array_value(bool=false) const
charNDArray char_array_value(bool=false) const
octave_base_value * clone(void) const
int64NDArray int64_array_value(void) const
intNDArray< octave_int32 > int32NDArray
FloatComplexMatrix float_complex_matrix_value(bool=false) const
octave_bool_matrix(const boolMatrix &bm, const MatrixType &t)
NDArray array_value(bool=false) const
uint64NDArray uint64_array_value(void) const
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, oct_mach_info::float_format flt_fmt)
uint8NDArray uint8_array_value(void) const
SparseBoolMatrix sparse_bool_matrix_value(bool=false) const
std::complex< float > FloatComplex
boolMatrix bool_matrix_value(bool=false) const
std::complex< double > Complex
ComplexMatrix complex_matrix_value(bool=false) const
octave_bool_matrix(const boolNDArray &bnda)
int8NDArray int8_array_value(void) const
idx_vector index_vector(bool=false) const
octave_value map(unary_mapper_t umap) const
Matrix matrix_value(bool=false) const
bool is_bool_type(void) const
FloatComplexNDArray float_complex_array_value(bool=false) const
boolNDArray bool_array_value(bool=false) const
intNDArray< octave_uint64 > uint64NDArray