23 #if ! defined (octave_ov_perm_h) 24 #define octave_ov_perm_h 1 26 #include "octave-config.h" 49 type_conv_info numeric_conversion_function (
void)
const;
60 const std::list<octave_value_list>& idx);
63 const std::list<octave_value_list>& idx,
int)
67 bool resize_ok =
false);
74 {
return to_dense ().
reshape (new_dims); }
77 {
return to_dense ().
permute (vec, inv); }
80 {
return to_dense ().
resize (
dv, fill); }
87 {
return matrix_type (); }
90 {
return to_dense () .
diag (
k); }
93 {
return to_dense ().
sort (dim,
mode); }
96 {
return to_dense ().
sort (sidx, dim,
mode); }
99 {
return to_dense ().issorted (
mode); }
105 {
return to_dense ().is_sorted_rows (
mode); }
121 bool isreal (
void)
const {
return true; }
129 double double_value (
bool =
false)
const;
131 float float_value (
bool =
false)
const;
134 {
return double_value (frc_str_conv); }
136 idx_vector index_vector (
bool require_integers =
false)
const;
141 Matrix matrix_value (
bool =
false)
const;
143 FloatMatrix float_matrix_value (
bool =
false)
const;
145 Complex complex_value (
bool =
false)
const;
157 boolNDArray bool_array_value (
bool warn =
false)
const;
161 NDArray array_value (
bool =
false)
const;
195 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
210 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false)
const;
217 bool save_ascii (std::ostream&
os);
219 bool load_ascii (std::istream&
is);
223 bool load_binary (std::istream&
is,
bool swap,
230 mxArray * as_mxArray (
void)
const;
232 bool print_as_scalar (
void)
const;
234 void print (std::ostream&
os,
bool pr_as_read_syntax =
false);
236 void print_info (std::ostream&
os,
const std::string& prefix)
const;
238 void short_disp (std::ostream&
os)
const;
241 {
return to_dense ().
map (umap); }
octave_value full_value(void) const
octave_value map(octave_base_value::unary_mapper_t umap) const
uint8NDArray uint8_array_value(void) const
PermMatrix perm_matrix_value(void) const
bool is_matrix_type(void) const
characters Given a string matrix
uint32NDArray uint32_array_value(void) const
int64NDArray int64_array_value(void) const
bool is_defined(void) const
uint64NDArray uint64_array_value(void) const
sortmode is_sorted_rows(sortmode mode=UNSORTED) 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
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
bool is_double_type(void) const
octave_base_value * empty_clone(void) const
octave_value squeeze(void) const
octave_value all(int dim=0) const
MatrixType matrix_type(const MatrixType &) const
double scalar_value(bool frc_str_conv=false) const
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
Sort by rows returns only indices.
octave_value permute(const Array< int > &vec, bool inv=false) const
octave::mach_info::float_format flt_fmt
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_perm_matrix(const PermMatrix &p)
octave_value map(unary_mapper_t umap) const
size_t byte_size(void) const
int32NDArray int32_array_value(void) const
MatrixType matrix_type(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
bool is_perm_matrix(void) const
static double as_double(time_t sec, long usec)
octave_base_value * clone(void) const
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_idx_type nnz(void) const
sortmode issorted(sortmode mode=UNSORTED) const
octave_value reshape(const dim_vector &new_dims) const
octave_value any(int dim=0) const
dim_vector dims(void) const
octave_value permute(const Array< int > &vec, bool inv=false) const
bool is_true(const std::string &s)
octave_value any(int dim=0) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
int8NDArray int8_array_value(void) const
octave_value diag(octave_idx_type k=0) const
octave_value reshape(const dim_vector &dv) const
octave_value diag(octave_idx_type k=0) const
bool is_constant(void) const
int16NDArray int16_array_value(void) const
bool is_real_matrix(void) const
octave_value all(int dim=0) const
builtin_type_t builtin_type(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
std::complex< float > FloatComplex
std::complex< double > Complex
write the output to stdout if nargout is
bool isnumeric(void) 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
Array< octave_idx_type > sort_rows_idx(sortmode mode=ASCENDING) const
uint16NDArray uint16_array_value(void) const
static float_display_format get_edit_display_format(const octave_value &val)