24 #if ! defined (octave_ov_base_mat_h)
25 #define octave_ov_base_mat_h 1
27 #include "octave-config.h"
47 template <
typename MT>
58 typ (
t.is_known () ? new
MatrixType (
t) : 0), idx_cache ()
67 idx_cache (m.idx_cache ? new
idx_vector (*m.idx_cache) : 0)
81 const std::list<octave_value_list>& idx);
84 const std::list<octave_value_list>& idx,
int)
88 const std::list<octave_value_list>& idx,
92 bool resize_ok =
false);
95 {
return do_index_op (idx); }
119 {
return MT (
matrix.reshape (new_dims)); }
122 {
return MT (
matrix.permute (vec, inv)); }
163 bool print_as_scalar (
void)
const;
165 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
167 void print_info (std::ostream& os,
const std::string& prefix)
const;
169 void short_disp (std::ostream& os)
const;
173 clear_cached_info ();
202 delete idx_cache; idx_cache = 0;
octave_value all(int dim=0) const
bool is_true(const std::string &s)
octave_value squeeze(void) const
sortmode is_sorted(sortmode mode=UNSORTED) const
size_t byte_size(void) 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
void maybe_economize(void)
virtual void assign(const std::string &, const octave_value &)
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
octave_value permute(const Array< int > &vec, bool inv=false) 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_idx_type numel(void) const
octave_value diag(octave_idx_type k=0) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
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_constant(void) const
bool is_matrix_type(void) const
~octave_base_matrix(void)
MatrixType matrix_type(void) const
const MT & matrix_ref(void) const
octave_base_matrix(const octave_base_matrix &m)
nd deftypefn *octave_map m
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
void clear_cached_info(void) const
idx_vector set_idx_cache(const idx_vector &idx) const
octave_value reshape(const dim_vector &new_dims) const
octave_base_matrix(const MT &m, const MatrixType &t=MatrixType())
dim_vector dims(void) const
bool is_numeric_type(void) const
octave_idx_type nnz(void) const
idx subsasgn(val, idx, 0) esult
octave_value_list do_multi_index_op(int, const octave_value_list &idx)
octave_value any(int dim=0) const
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
octave_value diag(octave_idx_type m, octave_idx_type n) 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 full_value(void) const
tree_walker & operator=(const tree_walker &)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))
bool is_defined(void) const