24 #if ! defined (octave_ov_base_sparse_h)
25 #define octave_ov_base_sparse_h 1
27 #include "octave-config.h"
90 const std::list<octave_value_list>& idx);
93 const std::list<octave_value_list>& idx,
int)
97 const std::list<octave_value_list>& idx,
114 bool resize_ok =
false);
117 {
return T (
matrix.reshape (new_dims)); }
120 {
return T (
matrix.permute (vec, inv)); }
155 OCTAVE_DEPRECATED (
"use 'nzmax' instead")
160 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
164 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
bool is_true(const std::string &s)
octave_value diag(octave_idx_type k=0) const
octave_base_sparse(const octave_base_sparse &a)
octave_value all(int dim=0) const
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) 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
idx subsref(val, idx) esult
virtual void assign(const std::string &, const octave_value &)
bool load_ascii(std::istream &is)
MatrixType matrix_type(const MatrixType &_typ) const
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the then the first element defines the pivoting tolerance for the unsymmetric the values defined such that for full matrix
octave_base_sparse(const T &a)
bool is_constant(void) const
size_t byte_size(void) const
octave_base_sparse(const T &a, const MatrixType &t)
bool print_as_scalar(void) const
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
octave_idx_type nzmax(void) const
sortmode is_sorted(sortmode mode=UNSORTED) 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
sortmode is_sorted(sortmode mode=UNSORTED) const
void assign(const octave_value_list &idx, const SparseBoolMatrix &rhs)
octave_idx_type numel(void) const
bool is_defined(void) const
octave_value squeeze(void) const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
void print_info(std::ostream &os, const std::string &prefix) const
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 save_ascii(std::ostream &os)
void delete_elements(const octave_value_list &idx)
octave_value fast_elem_extract(octave_idx_type n) const
octave_value resize(const dim_vector &dv, bool=false) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
~octave_base_sparse(void)
octave_idx_type capacity(void) const
octave_value reshape(const dim_vector &new_dims) const
MatrixType matrix_type(void) const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
idx subsasgn(val, idx, 0) esult
void * mex_get_data(void) const
bool is_numeric_type(void) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
bool is_sparse_type(void) const
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_value any(int dim=0) const
bool is_matrix_type(void) const
octave_value full_value(void) const
write the output to stdout if nargout is
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_idx_type * mex_get_jc(void) const
dim_vector dims(void) const
octave_idx_type nnz(void) const
octave_idx_type * mex_get_ir(void) const
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))