23 #if ! defined (octave_ov_lazy_idx_h)
24 #define octave_ov_lazy_idx_h 1
26 #include "octave-config.h"
54 type_conv_info numeric_conversion_function (
void)
const;
79 const std::list<octave_value_list>& idx)
80 {
return make_value ().
subsref (type, idx); }
83 const std::list<octave_value_list>& idx,
int)
87 bool resize_ok =
false)
88 {
return make_value ().
do_index_op (idx, resize_ok); }
101 {
return make_value ().
resize (dv, fill); }
130 {
return make_value ().is_true (); }
133 {
return make_value ().print_as_scalar (); }
135 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
136 { make_value ().print (os, pr_as_read_syntax); }
139 { make_value ().print_info (os, prefix); }
141 #define FORWARD_VALUE_QUERY(TYPE, NAME) \
142 TYPE NAME (void) const \
144 return make_value ().NAME (); \
156 #define FORWARD_VALUE_QUERY1(TYPE, NAME) \
157 TYPE NAME (bool flag = false) const \
159 return make_value ().NAME (flag); \
182 return make_value ().
diag (k);
190 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const
192 return make_value ().print_raw (os, pr_as_read_syntax);
195 bool save_ascii (std::ostream& os);
197 bool load_ascii (std::istream&
is);
201 bool load_binary (std::istream&
is,
bool swap,
208 return make_value ().write (os, block_size, output_type, skip, flt_fmt);
215 return make_value ().mex_get_data ();
220 return make_value ().as_mxArray ();
225 return make_value ().
map (umap);
232 if (
value.is_undefined ())
240 if (
value.is_undefined ())
bool is_numeric_type(void) const
bool is_matrix_type(void) const
octave_lazy_index(const idx_vector &idx)
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
void print(std::ostream &os, bool pr_as_read_syntax=false)
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
octave_value & make_value(void)
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_value convert_to_str_internal(bool pad, bool force, char type) const
octave_base_value * clone(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
octave_value diag(octave_idx_type k=0) const
mxArray * as_mxArray(void) const
octave_value map(octave_base_value::unary_mapper_t umap) const
octave::mach_info::float_format flt_fmt
octave_value resize(const dim_vector &dv, bool fill=false) const
bool is_real_type(void) const
octave_value any(int dim=0) const
octave_value convert_to_str_internal(bool pad, bool force, char type) const
bool is_constant(void) const
bool is_float_type(void) const
#define FORWARD_VALUE_QUERY1(TYPE, NAME)
octave_value resize(const dim_vector &dv, bool fill=false) const
MatrixType matrix_type(void) const
void * mex_get_data(void) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_value any(int dim=0) const
octave_lazy_index(const octave_lazy_index &i)
int write(octave_stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
idx_vector index_vector(bool=false) const
const octave_value & make_value(void) const
#define FORWARD_VALUE_QUERY(TYPE, NAME)
bool is_defined(void) const
bool is_double_type(void) const
octave_value all(int dim=0) const
octave_value full_value(void) const
bool print_as_scalar(void) const
octave_idx_type numel(void) const
bool is_real_matrix(void) const
octave_value map(unary_mapper_t umap) const
octave_value all(int dim=0) const
T::size_type numel(const T &str)
=val(i)}if ode{val(i)}occurs in table i
octave_idx_type nnz(void) const
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by nd tex zero divided by nd ifnottex and any operation involving another NaN value(5+NaN).Note that NaN always compares not equal to NaN(NaN!
octave_base_value * empty_clone(void) const
std::complex< float > FloatComplex
MatrixType matrix_type(const MatrixType &_typ) const
std::complex< double > Complex
size_t byte_size(void) const
write the output to stdout if nargout is
dim_vector dims(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
void print_info(std::ostream &os, const std::string &prefix) const
builtin_type_t builtin_type(void) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)