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;
72 bool isreal (
void)
const {
return true; }
76 bool isfloat (
void)
const {
return true; }
79 const std::list<octave_value_list>& 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);
203 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false)
const 205 return make_value ().print_raw (
os, pr_as_read_syntax);
208 bool save_ascii (std::ostream&
os);
210 bool load_ascii (std::istream&
is);
214 bool load_binary (std::istream&
is,
bool swap,
221 return make_value ().write (
os, block_size, output_type, skip,
flt_fmt);
228 return make_value ().mex_get_data ();
233 return make_value ().as_mxArray ();
238 return make_value ().
map (umap);
245 if (
value.is_undefined ())
253 if (
value.is_undefined ())
octave_value map(octave_base_value::unary_mapper_t umap) const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) 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)
MatrixType matrix_type(void) const
octave_base_value * clone(void) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
bool print_as_scalar(void) const
bool isnumeric(void) const
octave_value & make_value(void)
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
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
const octave_value & make_value(void) const
idx subsref(val, idx) esult
dim_vector dims(void) const
octave_value full_value(void) const
octave_value all(int dim=0) const
mxArray * as_mxArray(void) const
octave::mach_info::float_format flt_fmt
bool is_defined(void) const
octave_value convert_to_str_internal(bool pad, bool force, char type) const
#define FORWARD_VALUE_QUERY1(TYPE, NAME)
octave_value resize(const dim_vector &dv, bool fill=false) const
static double as_double(time_t sec, long usec)
builtin_type_t builtin_type(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
size_t byte_size(void) const
octave_value all(int dim=0) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
void * mex_get_data(void) const
octave_lazy_index(const octave_lazy_index &i)
octave_value any(int dim=0) const
octave_value convert_to_str_internal(bool pad, bool force, char type) const
bool is_double_type(void) const
bool is_real_matrix(void) const
#define FORWARD_VALUE_QUERY(TYPE, NAME)
octave_value map(unary_mapper_t umap) const
octave_base_value * empty_clone(void) const
bool is_matrix_type(void) const
octave_idx_type numel(void) const
octave_value diag(octave_idx_type k=0) const
T::size_type numel(const T &str)
MatrixType matrix_type(const MatrixType &_typ) const
idx_vector index_vector(bool=false) const
void print_info(std::ostream &os, const std::string &prefix) const
bool is_constant(void) const
octave_value any(int dim=0) const
std::complex< float > FloatComplex
octave_idx_type nnz(void) const
std::complex< double > Complex
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
nd group nd example For each display the value
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
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)