26 #if ! defined (octave_ov_re_sparse_h)
27 #define octave_ov_re_sparse_h 1
29 #include "octave-config.h"
100 bool isreal (
void)
const {
return true; }
106 double double_value (
bool =
false)
const;
109 {
return double_value (frc_str_conv); }
111 Matrix matrix_value (
bool =
false)
const;
113 Complex complex_value (
bool =
false)
const;
115 boolNDArray bool_array_value (
bool warn =
false)
const;
133 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
138 int write (octave::stream& os,
int block_size,
141 {
return os.write (matrix, block_size, output_type, skip, flt_fmt); }
144 bool save_binary (std::ostream& os,
bool save_as_floats);
146 bool load_binary (std::istream& is,
bool swap,
149 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
153 mxArray * as_mxArray (
bool interleaved)
const;
octave_sparse_matrix(const Sparse< double > &m)
octave_sparse_matrix(const SparseMatrix &m)
bool is_real_matrix(void) const
octave_sparse_matrix(const Matrix &m)
octave_sparse_matrix(const Sparse< double > &m, const MatrixType &t)
octave_sparse_matrix(const MSparse< double > &m)
octave_sparse_matrix(const NDArray &m)
~octave_sparse_matrix(void)=default
octave_sparse_matrix(const octave_sparse_matrix &m)
octave_base_value * empty_clone(void) const
SparseMatrix sparse_matrix_value(bool=false) const
octave_sparse_matrix(void)
octave_sparse_matrix(const SparseMatrix &m, const MatrixType &t)
bool is_double_type(void) const
double scalar_value(bool frc_str_conv=false) const
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
octave_value map(double(*fcn)(double)) const
builtin_type_t builtin_type(void) const
octave_sparse_matrix(const MSparse< double > &m, const MatrixType &t)
octave_base_value * clone(void) const
Array< octave_value > array_value(void) const
octave::idx_vector idx_vector
class OCTAVE_API SparseComplexMatrix
std::complex< double > Complex
static double as_double(OCTAVE_TIME_T sec, long usec)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA