26 #if ! defined (octave_ov_base_sparse_h)
27 #define octave_ov_base_sparse_h 1
29 #include "octave-config.h"
95 const std::list<octave_value_list>& idx);
98 const std::list<octave_value_list>& idx,
int)
102 const std::list<octave_value_list>& idx,
119 bool resize_ok =
false);
167 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
169 void print_info (std::ostream& os,
const std::string& prefix)
const;
171 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
SparseBoolMatrix reshape(const dim_vector &new_dims) const
SparseBoolMatrix permute(const Array< octave_idx_type > &vec, bool inv=false) const
SparseBoolMatrix diag(octave_idx_type k=0) const
SparseBoolMatrix squeeze(void) const
SparseBoolMatrix all(int dim=-1) const
boolMatrix matrix_value(void) const
SparseBoolMatrix any(int dim=-1) const
octave_idx_type ndims(void) const
Sparse< T > sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_idx_type * mex_get_ir(void) const
octave_idx_type nnz(void) const
Actual number of nonzero terms.
octave_idx_type nzmax(void) const
Amount of storage for nonzero elements.
void resize(octave_idx_type r, octave_idx_type c)
size_t byte_size(void) const
dim_vector dims(void) const
void * mex_get_data(void) const
octave_idx_type * mex_get_jc(void) const
Vector representing the dimensions (size) of an Array.
octave_idx_type safe_numel(void) const
The following function will throw a std::bad_alloc () exception if the requested size is larger than ...
bool print_as_scalar(void) const
virtual octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
octave_value diag(octave_idx_type k=0) const
octave_value permute(const Array< int > &vec, bool inv=false) const
bool is_matrix_type(void) const
bool is_defined(void) const
~octave_base_sparse(void)=default
bool issparse(void) const
octave_idx_type * mex_get_ir(void) const
octave_value squeeze(void) const
octave_idx_type nnz(void) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
bool isnumeric(void) const
octave_idx_type nzmax(void) const
bool load_ascii(std::istream &is)
void * mex_get_data(void) const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
MatrixType matrix_type(void) const
octave_value reshape(const dim_vector &new_dims) const
virtual void assign(const std::string &, const octave_value &)
bool save_ascii(std::ostream &os)
octave_value all(int dim=0) const
octave_value fast_elem_extract(octave_idx_type n) const
octave_idx_type numel(void) const
octave_base_sparse(const T &a, const MatrixType &t)
octave_value subsasgn(const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
octave_base_sparse(const T &a)
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_base_sparse(const octave_base_sparse &a)
octave_value full_value(void) const
size_t byte_size(void) const
octave_idx_type * mex_get_jc(void) const
void delete_elements(const octave_value_list &idx)
dim_vector dims(void) const
bool is_constant(void) const
octave_value any(int dim=0) const
sortmode issorted(sortmode mode=UNSORTED) const
MatrixType matrix_type(const MatrixType &_typ) const
octave_value resize(const dim_vector &dv, bool=false) const
void print_info(std::ostream &os, const std::string &prefix) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
virtual octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
virtual octave_value diag(octave_idx_type k=0) const
virtual void assign(const std::string &, const octave_value &)
octave_value map(unary_mapper_t umap) const
sortmode issorted(sortmode mode=UNSORTED) const
bool is_true(const std::string &s)
static float_display_format get_edit_display_format(const octave_value &val)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))