23 #if ! defined (octave_ov_base_diag_h)
24 #define octave_ov_base_diag_h 1
26 #include "octave-config.h"
44 template <
typename DMT,
typename MT>
70 const std::list<octave_value_list>& idx);
73 const std::list<octave_value_list>& idx,
int)
77 bool resize_ok =
false);
80 const std::list<octave_value_list>& idx,
88 {
return to_dense ().
reshape (new_dims); }
94 || (vec.
xelem (0) == 0 && vec.
xelem (1) == 1)))
97 return to_dense ().
permute (vec, inv);
107 {
return matrix_type (); }
112 {
return to_dense ().
sort (dim,
mode); }
115 {
return to_dense ().
sort (sidx, dim,
mode); }
118 {
return to_dense ().is_sorted (
mode); }
124 {
return to_dense ().is_sorted_rows (
mode); }
138 double double_value (
bool =
false)
const;
140 float float_value (
bool =
false)
const;
143 {
return double_value (frc_str_conv); }
147 Matrix matrix_value (
bool =
false)
const;
149 FloatMatrix float_matrix_value (
bool =
false)
const;
151 Complex complex_value (
bool =
false)
const;
163 boolNDArray bool_array_value (
bool warn =
false)
const;
167 NDArray array_value (
bool =
false)
const;
199 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
201 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
203 bool save_ascii (std::ostream& os);
205 bool load_ascii (std::istream&
is);
211 mxArray *as_mxArray (
void)
const;
213 bool print_as_scalar (
void)
const;
215 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
217 void print_info (std::ostream& os,
const std::string& prefix)
const;
228 typename DMT::element_type&)
const = 0;
int64NDArray int64_array_value(void) const
bool is_true(const std::string &s)
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
uint64NDArray uint64_array_value(void) const
octave_value reshape(const dim_vector &dv) const
octave_value permute(const Array< int > &vec, bool inv=false) const
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
Sort by rows returns only indices.
octave_value squeeze(void) const
int32NDArray int32_array_value(void) const
octave_idx_type numel(void) const
Number of elements in the array.
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
dim_vector dims(void) 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
bool is_diag_matrix(void) const
size_t byte_size(void) const
octave::mach_info::float_format flt_fmt
octave_idx_type nnz(void) const
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
octave_value any(int dim=0) const
sortmode is_sorted(sortmode mode=UNSORTED) const
bool is_numeric_type(void) const
nd deftypefn *octave_map m
uint16NDArray uint16_array_value(void) const
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
octave_value all(int dim=0) const
int16NDArray int16_array_value(void) const
uint8NDArray uint8_array_value(void) const
bool is_defined(void) const
T & xelem(octave_idx_type n)
bool is_matrix_type(void) const
octave_value any(int dim=0) const
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
double scalar_value(bool frc_str_conv=false) const
MatrixType matrix_type(const MatrixType &) const
int8NDArray int8_array_value(void) const
idx subsasgn(val, idx, 0) esult
octave_base_diag(const DMT &m)
bool is_constant(void) const
std::complex< float > FloatComplex
MatrixType matrix_type(void) const
octave_value reshape(const dim_vector &new_dims) const
std::complex< double > Complex
write the output to stdout if nargout is
octave_base_diag(const octave_base_diag &m)
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 sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_value full_value(void) const
uint32NDArray uint32_array_value(void) const
octave_value all(int dim=0) const