24 #if ! defined (octave_ov_base_sparse_h) 25 #define octave_ov_base_sparse_h 1 27 #include "octave-config.h" 88 const std::list<octave_value_list>& idx);
91 const std::list<octave_value_list>& idx,
int)
95 const std::list<octave_value_list>& idx,
112 bool resize_ok =
false);
115 {
return T (
matrix.reshape (new_dims)); }
118 {
return T (
matrix.permute (vec, inv)); }
153 OCTAVE_DEPRECATED (4.4,
"use 'nzmax' instead")
158 void print (std::ostream&
os,
bool pr_as_read_syntax =
false);
162 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false)
const;
octave_value diag(octave_idx_type k=0) const
octave_value squeeze(void) const
octave_base_sparse(const octave_base_sparse &a)
characters Given a string matrix
octave_idx_type nnz(void) const
octave_value reshape(const dim_vector &new_dims) const
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
idx subsref(val, idx) esult
virtual void assign(const std::string &, const octave_value &)
dim_vector dims(void) const
bool load_ascii(std::istream &is)
bool is_defined(void) const
octave_base_sparse(const T &a)
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
~octave_base_sparse(void)=default
octave_base_sparse(const T &a, const MatrixType &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
bool is_matrix_type(void) const
octave_idx_type * mex_get_ir(void) const
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
void assign(const octave_value_list &idx, const SparseBoolMatrix &rhs)
octave_value resize(const dim_vector &dv, bool=false) const
bool issparse(void) const
void * mex_get_data(void) const
octave_value permute(const Array< int > &vec, bool inv=false) const
sortmode issorted(sortmode mode=UNSORTED) const
MatrixType matrix_type(const MatrixType &_typ) const
bool is_true(const std::string &s)
void print_info(std::ostream &os, const std::string &prefix) const
MatrixType matrix_type(void) const
size_t byte_size(void) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
bool isnumeric(void) const
bool save_ascii(std::ostream &os)
void delete_elements(const octave_value_list &idx)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
octave_value all(int dim=0) const
bool print_as_scalar(void) const
octave_idx_type numel(void) const
octave_idx_type * mex_get_jc(void) const
octave_idx_type nzmax(void) const
idx subsasgn(val, idx, 0) esult
octave_value full_value(void) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_value fast_elem_extract(octave_idx_type n) const
bool is_constant(void) const
write the output to stdout if nargout is
sortmode issorted(sortmode mode=UNSORTED) const
Vector representing the dimensions (size) of an Array.
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
octave_value any(int dim=0) const
octave_idx_type capacity(void) const
static float_display_format get_edit_display_format(const octave_value &val)