GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ov_range< T > Class Template Reference

#include "ov-range.h"

Inheritance diagram for ov_range< T >:
octave_base_value

Public Member Functions

 ov_range ()
 
 ov_range (const octave::range< T > &r)
 
 ov_range (const octave::range< T > &r, const octave::idx_vector &cache)
 
 ov_range (const ov_range< T > &r)
 
 ~ov_range ()
 
octave_value all (int dim=0) const
 
octave_value any (int dim=0) const
 
NDArray array_value (bool=false) const
 
octave_value as_double () const
 
octave_value as_int16 () const
 
octave_value as_int32 () const
 
octave_value as_int64 () const
 
octave_value as_int8 () const
 
mxArrayas_mxArray (bool interleaved) const
 
octave_value as_single () const
 
octave_value as_trivial_range ()
 
octave_value as_trivial_range ()
 
octave_value as_uint16 () const
 
octave_value as_uint32 () const
 
octave_value as_uint64 () const
 
octave_value as_uint8 () const
 
boolNDArray bool_array_value (bool warn=false) const
 
builtin_type_t builtin_type () const
 
std::size_t byte_size () const
 
charNDArray char_array_value (bool=false) const
 
std::string class_name () const
 
octave_base_valueclone () const
 
ComplexNDArray complex_array_value (bool=false) const
 
ComplexMatrix complex_matrix_value (bool=false) const
 
Complex complex_value (bool=false) const
 
octave_value convert_to_str_internal (bool pad, bool force, char type) const
 
bool could_be_trivial_range ()
 
bool could_be_trivial_range ()
 
octave_value diag (octave_idx_type k) const
 
octave_value diag (octave_idx_type k) const
 
octave_value diag (octave_idx_type k=0) const
 
octave_value diag (octave_idx_type nr, octave_idx_type nc) const
 
octave_value diag (octave_idx_type nr, octave_idx_type nc) const
 
octave_value diag (octave_idx_type nr, octave_idx_type nc) const
 
dim_vector dims () const
 
octave_value do_index_op (const octave_value_list &idx, bool resize_ok=false)
 
double double_value (bool=false) const
 
std::string edit_display (const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
 
octave_base_valueempty_clone () const
 
octave_value fast_elem_extract (octave_idx_type n) const
 
FloatNDArray float_array_value (bool=false) const
 
FloatComplexNDArray float_complex_array_value (bool=false) const
 
FloatComplexMatrix float_complex_matrix_value (bool=false) const
 
FloatComplex float_complex_value (bool=false) const
 
FloatMatrix float_matrix_value (bool=false) const
 
float float_scalar_value (bool frc_str_conv=false) const
 
float float_value (bool=false) const
 
octave_value full_value () const
 
float_display_format get_edit_display_format () const
 
octave::idx_vector index_vector (bool require_integers) const
 
octave::idx_vector index_vector (bool require_integers) const
 
octave::idx_vector index_vector (bool require_integers=false) const
 
int16NDArray int16_array_value () const
 
int32NDArray int32_array_value () const
 
int64NDArray int64_array_value () const
 
int8NDArray int8_array_value () const
 
bool is_constant () const
 
bool is_defined () const
 
bool is_double_type () const
 
bool is_int16_type () const
 
bool is_int32_type () const
 
bool is_int64_type () const
 
bool is_int8_type () const
 
bool is_range () const
 
bool is_single_type () const
 
sortmode is_sorted_rows (sortmode mode=UNSORTED) const
 
bool is_storable () const
 
bool is_true () const
 
bool is_uint16_type () const
 
bool is_uint32_type () const
 
bool is_uint64_type () const
 
bool is_uint8_type () const
 
bool isfloat () const
 
bool isinteger () const
 
bool isnumeric () const
 
bool isreal () const
 
sortmode issorted (sortmode mode=UNSORTED) const
 
bool load_ascii (std::istream &is)
 
bool load_binary (std::istream &is, bool swap, octave::mach_info::float_format fmt)
 
bool load_hdf5 (octave_hdf5_id loc_id, const char *name)
 
octave_value map (unary_mapper_t umap) const
 
Matrix matrix_value (bool=false) const
 
octave_idx_type nnz () const
 
octave_idx_type nnz () const
 
octave_idx_type nnz () const
 
octave_idx_type numel () const
 
type_conv_info numeric_conversion_function () const
 
ov_rangeoperator= (const ov_range &)=delete
 
octave_value permute (const Array< int > &vec, bool inv=false) const
 
void print (std::ostream &os, bool pr_as_read_syntax=false)
 
bool print_name_tag (std::ostream &os, const std::string &name) const
 
void print_raw (std::ostream &os, bool pr_as_read_syntax) const
 
void print_raw (std::ostream &os, bool pr_as_read_syntax) const
 
void print_raw (std::ostream &os, bool pr_as_read_syntax=false) const
 
octave::range< double > range_value () const
 
octave::range< double > range_value () const
 
octave::range< double > range_value () const
 
Array< T > raw_array_value () const
 
void register_type ()
 
void register_type ()
 
void register_type (octave::type_info &)
 
void register_type (octave::type_info &ti)
 
octave_value reshape (const dim_vector &new_dims) const
 
octave_value resize (const dim_vector &dv, bool fill=false) const
 
bool save_ascii (std::ostream &os)
 
bool save_binary (std::ostream &os, bool save_as_floats)
 
bool save_hdf5 (octave_hdf5_id loc_id, const char *name, bool flag)
 
double scalar_value (bool frc_str_conv=false) const
 
void short_disp (std::ostream &os) const
 
octave_value sort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
octave_value sort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
Array< octave_idx_typesort_rows_idx (sortmode) const
 
SparseComplexMatrix sparse_complex_matrix_value (bool=false) const
 
SparseMatrix sparse_matrix_value (bool=false) const
 
octave_value squeeze () const
 
virtual octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx)
 
octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx)
 
virtual octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx, bool auto_add)
 
virtual octave_value_list subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout)
 
octave_value_list subsref (const std::string &type, const std::list< octave_value_list > &idx, int)
 
octave_base_valuetry_narrowing_conversion ()
 
int type_id () const
 
std::string type_name () const
 
uint16NDArray uint16_array_value () const
 
uint32NDArray uint32_array_value () const
 
uint64NDArray uint64_array_value () const
 
uint8NDArray uint8_array_value () const
 
octave_value vm_extract_forloop_value (octave_idx_type idx)
 
octave_value vm_extract_forloop_value (octave_idx_type n)
 
bool vm_need_storable_call () const
 
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
 
- Public Member Functions inherited from octave_base_value
 octave_base_value ()
 
 octave_base_value (const octave_base_value &)
 
virtual ~octave_base_value ()=default
 
virtual octave_value as_double_or_copy ()
 
virtual void assign (const std::string &, const octave_value &)
 
virtual boolMatrix bool_matrix_value (bool=false) const
 
virtual bool bool_value (bool=false) const
 
virtual void break_closure_cycles (const std::shared_ptr< octave::stack_frame > &)
 
virtual void call_object_destructor ()
 
virtual Cell cell_value () const
 
virtual Array< std::string > cellstr_value () const
 
virtual charMatrix char_matrix_value (bool force=false) const
 
virtual octave_classdefclassdef_object_value (bool silent=false)
 
octave_idx_type columns () const
 
virtual ComplexDiagMatrix complex_diag_matrix_value (bool=false) const
 
virtual void convert_to_row_or_column_vector ()
 
virtual octave_value convert_to_str (bool pad=false, bool force=false, char type='\'') const
 
virtual DiagMatrix diag_matrix_value (bool=false) const
 
virtual octave_value dump () const
 
virtual void erase_subfunctions ()
 
virtual bool fast_elem_insert (octave_idx_type n, const octave_value &x)
 
virtual bool fast_elem_insert_self (void *where, builtin_type_t btyp) const
 
virtual octave_fcn_handlefcn_handle_value (bool silent=false)
 
virtual octave_base_valuefind_parent_class (const std::string &)
 
virtual FloatComplexDiagMatrix float_complex_diag_matrix_value (bool=false) const
 
virtual FloatDiagMatrix float_diag_matrix_value (bool=false) const
 
virtual octave_functionfunction_value (bool silent=false)
 
virtual octave_functionget_cached_fcn (const octave_value_list &)
 
virtual octave_functionget_cached_fcn (void *, void *)
 
virtual bool has_function_cache () const
 
virtual octave_int16 int16_scalar_value () const
 
virtual octave_int32 int32_scalar_value () const
 
virtual octave_int64 int64_scalar_value () const
 
virtual int64_t int64_value (bool=false, bool=false) const
 
virtual octave_int8 int8_scalar_value () const
 
virtual int int_value (bool=false, bool=false) const
 
virtual bool is_all_va_args () const
 
virtual bool is_anonymous_function () const
 
virtual bool is_bool_matrix () const
 
virtual bool is_bool_scalar () const
 
virtual bool is_builtin_function () const
 
virtual bool is_char_matrix () const
 
virtual bool is_classdef_meta () const
 
virtual bool is_classdef_object () const
 
virtual bool is_classdef_superclass_ref () const
 
virtual bool is_complex_matrix () const
 
virtual bool is_complex_scalar () const
 
virtual bool is_cs_list () const
 
virtual bool is_diag_matrix () const
 
virtual bool is_dld_function () const
 
virtual bool is_full_num_matrix () const
 
virtual bool is_function () const
 
virtual bool is_function_cache () const
 
virtual bool is_function_handle () const
 
virtual bool is_inline_function () const
 
virtual bool is_instance_of (const std::string &) const
 
virtual bool is_legacy_object () const
 
virtual bool is_magic_colon () const
 
virtual bool is_magic_int () const
 
virtual bool is_matrix_type () const
 
virtual bool is_maybe_function () const
 
virtual bool is_mex_function () const
 
virtual bool is_package () const
 
virtual bool is_perm_matrix () const
 
virtual bool is_real_matrix () const
 
virtual bool is_real_scalar () const
 
virtual bool is_scalar_type () const
 
virtual bool is_sq_string () const
 
virtual bool is_string () const
 
virtual bool is_user_code () const
 
virtual bool is_user_function () const
 
virtual bool is_user_script () const
 
bool is_zero_by_zero () const
 
virtual bool iscell () const
 
virtual bool iscellstr () const
 
virtual bool iscomplex () const
 
bool isempty () const
 
virtual bool isfield (const std::string &) const
 
virtual bool isjava () const
 
virtual bool islocked () const
 
virtual bool islogical () const
 
virtual bool isnull () const
 
virtual bool isobject () const
 
virtual bool issparse () const
 
virtual bool isstruct () const
 
virtual octave_value_list list_value () const
 
virtual void lock ()
 
virtual long int long_value (bool=false, bool=false) const
 
virtual octave_base_valuemake_storable_value ()
 
virtual string_vector map_keys () const
 
virtual octave_map map_value () const
 
virtual MatrixType matrix_type () const
 
virtual MatrixType matrix_type (const MatrixType &typ) const
 
virtual void maybe_call_dtor ()
 
virtual void maybe_economize ()
 
virtual const void * mex_get_data () const
 
virtual const octave_idx_typemex_get_ir () const
 
virtual const octave_idx_typemex_get_jc () const
 
virtual int ndims () const
 
virtual octave_idx_type nfields () const
 
virtual int nint_value (bool=false) const
 
virtual std::size_t nparents () const
 
virtual type_conv_info numeric_demotion_function () const
 
virtual octave_idx_type nzmax () const
 
virtual std::list< std::string > parent_class_name_list () const
 
virtual string_vector parent_class_names () const
 
virtual PermMatrix perm_matrix_value () const
 
virtual bool print_as_scalar () const
 
virtual void print_info (std::ostream &os, const std::string &prefix) const
 
virtual void print_with_name (std::ostream &output_buf, const std::string &name, bool print_padding=true)
 
octave_idx_type rows () const
 
virtual octave_scalar_map scalar_map_value () const
 
virtual short int short_value (bool=false, bool=false) const
 
virtual octave_value simple_subsasgn (char type, octave_value_list &idx, const octave_value &rhs)
 
virtual octave_value_list simple_subsref (char type, octave_value_list &idx, int nargout)
 
virtual Matrix size ()
 
virtual SparseBoolMatrix sparse_bool_matrix_value (bool=false) const
 
virtual octave_value storable_value ()
 
virtual std::string string_value (bool force=false) const
 
virtual string_vector string_vector_value (bool pad=false) const
 
virtual octave_value subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
 
virtual octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx, bool auto_add)
 
virtual octave_uint16 uint16_scalar_value () const
 
virtual octave_uint32 uint32_scalar_value () const
 
virtual octave_uint64 uint64_scalar_value () const
 
virtual uint64_t uint64_value (bool=false, bool=false) const
 
virtual octave_uint8 uint8_scalar_value () const
 
virtual unsigned int uint_value (bool=false, bool=false) const
 
virtual unsigned long int ulong_value (bool=false, bool=false) const
 
virtual octave_value undef_subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
 
virtual octave_base_valueunique_clone ()
 
virtual octave_base_valueunique_parent_class (const std::string &)
 
virtual void unlock ()
 
virtual octave_user_codeuser_code_value (bool silent=false)
 
virtual octave_user_functionuser_function_value (bool silent=false)
 
virtual octave_user_scriptuser_script_value (bool silent=false)
 
virtual unsigned short int ushort_value (bool=false, bool=false) const
 
virtual octave_idx_type xnumel (const octave_value_list &)
 
virtual std::string xstring_value () const
 

Static Public Member Functions

static void register_type ()
 
static void register_type (octave::type_info &)
 
static std::string static_class_name ()
 
static int static_type_id ()
 
static std::string static_type_name ()
 
- Static Public Member Functions inherited from octave_base_value
static void register_type ()
 
static void register_type (octave::type_info &)
 
static std::string static_class_name ()
 
static int static_type_id ()
 
static std::string static_type_name ()
 

Protected Member Functions

void clear_cached_info () const
 
octave_hdf5_id hdf5_save_type
 
octave::idx_vector set_idx_cache (const octave::idx_vector &idx) const
 
- Protected Member Functions inherited from octave_base_value
int current_print_indent_level () const
 
void decrement_indent_level () const
 
void increment_indent_level () const
 
void indent (std::ostream &os) const
 
void newline (std::ostream &os) const
 
octave_value numeric_assign (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
 
void reset () const
 
void reset_indent_level () const
 
void warn_load (const char *type) const
 
void warn_save (const char *type) const
 

Protected Attributes

octave::idx_vectorm_idx_cache
 
octave::range< T > m_range
 
- Protected Attributes inherited from octave_base_value
octave::refcount< octave_idx_type > & count
 
octave::refcount< octave_idx_typem_count
 

Static Protected Attributes

static octave_hdf5_id hdf5_save_type
 

Additional Inherited Members

- Public Types inherited from octave_base_value
typedef octave_base_value *(* type_conv_fcn) (const octave_base_value &)
 
enum  unary_mapper_t {
  umap_abs , umap_acos , umap_acosh , umap_angle ,
  umap_arg , umap_asin , umap_asinh , umap_atan ,
  umap_atanh , umap_cbrt , umap_ceil , umap_conj ,
  umap_cos , umap_cosh , umap_erf , umap_erfinv ,
  umap_erfcinv , umap_erfc , umap_erfcx , umap_erfi ,
  umap_dawson , umap_exp , umap_expm1 , umap_isfinite ,
  umap_fix , umap_floor , umap_gamma , umap_imag ,
  umap_isinf , umap_isna , umap_isnan , umap_lgamma ,
  umap_log , umap_log2 , umap_log10 , umap_log1p ,
  umap_real , umap_round , umap_roundb , umap_signum ,
  umap_sin , umap_sinh , umap_sqrt , umap_tan ,
  umap_tanh , umap_xisalnum , umap_xisalpha , umap_xisascii ,
  umap_xiscntrl , umap_xisdigit , umap_xisgraph , umap_xislower ,
  umap_xisprint , umap_xispunct , umap_xisspace , umap_xisupper ,
  umap_xisxdigit , umap_xsignbit , umap_xtolower , umap_xtoupper ,
  umap_unknown , num_unary_mappers = umap_unknown
}
 
- Static Protected Member Functions inherited from octave_base_value
static const char * get_umap_name (unary_mapper_t)
 

Detailed Description

template<typename T>
class ov_range< T >

Definition at line 96 of file ov-range.h.

Constructor & Destructor Documentation

◆ ov_range() [1/4]

template<typename T >
ov_range< T >::ov_range ( )
inline

Definition at line 101 of file ov-range.h.

◆ ov_range() [2/4]

template<typename T >
ov_range< T >::ov_range ( const octave::range< T > &  r)
inline

Definition at line 104 of file ov-range.h.

References error(), and numel().

◆ ov_range() [3/4]

template<typename T >
ov_range< T >::ov_range ( const ov_range< T > &  r)
inline

Definition at line 111 of file ov-range.h.

◆ ov_range() [4/4]

template<typename T >
ov_range< T >::ov_range ( const octave::range< T > &  r,
const octave::idx_vector cache 
)
inline

Definition at line 117 of file ov-range.h.

◆ ~ov_range()

template<typename T >
ov_range< T >::~ov_range ( )
inline

Definition at line 126 of file ov-range.h.

Member Function Documentation

◆ all()

template<typename T >
octave_value ov_range< T >::all ( int  dim = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 252 of file ov-range.h.

References m.

◆ any()

template<typename T >
octave_value ov_range< T >::any ( int  dim = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 262 of file ov-range.h.

References m.

◆ array_value()

template<typename T >
NDArray ov_range< T >::array_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 343 of file ov-range.h.

◆ as_double()

template<typename T >
octave_value ov_range< T >::as_double
virtual

Reimplemented from octave_base_value.

Definition at line 344 of file ov-range.cc.

◆ as_int16()

template<typename T >
octave_value ov_range< T >::as_int16
virtual

Reimplemented from octave_base_value.

Definition at line 365 of file ov-range.cc.

◆ as_int32()

template<typename T >
octave_value ov_range< T >::as_int32
virtual

Reimplemented from octave_base_value.

Definition at line 372 of file ov-range.cc.

◆ as_int64()

template<typename T >
octave_value ov_range< T >::as_int64
virtual

Reimplemented from octave_base_value.

Definition at line 379 of file ov-range.cc.

◆ as_int8()

template<typename T >
octave_value ov_range< T >::as_int8
virtual

Reimplemented from octave_base_value.

Definition at line 358 of file ov-range.cc.

◆ as_mxArray()

template<typename T >
mxArray * ov_range< T >::as_mxArray ( bool  interleaved) const
virtual

Reimplemented from octave_base_value.

Definition at line 960 of file ov-range.cc.

References Array< T, Alloc >::data(), mxArray::get_data(), mxREAL, and numel().

◆ as_single()

template<typename T >
octave_value ov_range< T >::as_single
virtual

Reimplemented from octave_base_value.

Definition at line 351 of file ov-range.cc.

◆ as_trivial_range() [1/2]

octave_value ov_range< double >::as_trivial_range ( )

Definition at line 1044 of file ov-range.cc.

References octave_value().

◆ as_trivial_range() [2/2]

template<typename T >
octave_value ov_range< T >::as_trivial_range

Definition at line 1037 of file ov-range.cc.

References error().

◆ as_uint16()

template<typename T >
octave_value ov_range< T >::as_uint16
virtual

Reimplemented from octave_base_value.

Definition at line 393 of file ov-range.cc.

◆ as_uint32()

template<typename T >
octave_value ov_range< T >::as_uint32
virtual

Reimplemented from octave_base_value.

Definition at line 400 of file ov-range.cc.

◆ as_uint64()

template<typename T >
octave_value ov_range< T >::as_uint64
virtual

Reimplemented from octave_base_value.

Definition at line 407 of file ov-range.cc.

◆ as_uint8()

template<typename T >
octave_value ov_range< T >::as_uint8
virtual

Reimplemented from octave_base_value.

Definition at line 386 of file ov-range.cc.

◆ bool_array_value()

template<typename T >
boolNDArray ov_range< T >::bool_array_value ( bool  warn = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 301 of file ov-range.cc.

References Array< T, Alloc >::test_all(), and warn_logical_conversion().

◆ builtin_type()

template<typename T >
builtin_type_t ov_range< T >::builtin_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 146 of file ov-range.h.

◆ byte_size()

template<typename T >
std::size_t ov_range< T >::byte_size ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 190 of file ov-range.h.

◆ char_array_value()

template<typename T >
charNDArray ov_range< T >::char_array_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 250 of file ov-range.cc.

References Array< T, Alloc >::elem(), and numel().

◆ class_name()

template<typename T >
std::string ov_range< T >::class_name ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 526 of file ov-range.h.

◆ clear_cached_info()

template<typename T >
void ov_range< T >::clear_cached_info ( ) const
inlineprotected

Definition at line 517 of file ov-range.h.

◆ clone()

template<typename T >
octave_base_value* ov_range< T >::clone ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 128 of file ov-range.h.

◆ complex_array_value()

template<typename T >
ComplexNDArray ov_range< T >::complex_array_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 425 of file ov-range.h.

◆ complex_matrix_value()

template<typename T >
ComplexMatrix ov_range< T >::complex_matrix_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 415 of file ov-range.h.

◆ complex_value()

template<typename T >
Complex ov_range< T >::complex_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 265 of file ov-range.cc.

References err_invalid_conversion(), numel(), and warn_implicit_conversion().

◆ convert_to_str_internal()

template<typename T >
octave_value ov_range< T >::convert_to_str_internal ( bool  pad,
bool  force,
char  type 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 334 of file ov-range.cc.

References octave_value::convert_to_str().

◆ could_be_trivial_range() [1/2]

bool ov_range< double >::could_be_trivial_range ( )

Definition at line 990 of file ov-range.cc.

References isnan(), max(), min(), and n.

◆ could_be_trivial_range() [2/2]

template<typename T >
bool ov_range< T >::could_be_trivial_range

Definition at line 986 of file ov-range.cc.

◆ diag() [1/6]

octave_value ov_range< double >::diag ( octave_idx_type  k) const
virtual

Reimplemented from octave_base_value.

Definition at line 1115 of file ov-range.cc.

◆ diag() [2/6]

octave_value ov_range< double >::diag ( octave_idx_type  k) const
virtual

Reimplemented from octave_base_value.

◆ diag() [3/6]

template<typename T >
octave_value ov_range< T >::diag ( octave_idx_type  k = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 272 of file ov-range.h.

References octave_value::diag().

◆ diag() [4/6]

octave_value ov_range< double >::diag ( octave_idx_type  nr,
octave_idx_type  nc 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 1127 of file ov-range.cc.

References Matrix::diag().

◆ diag() [5/6]

template<typename T >
octave_value ov_range< T >::diag ( octave_idx_type  nr,
octave_idx_type  nc 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 279 of file ov-range.h.

References m.

◆ diag() [6/6]

octave_value ov_range< double >::diag ( octave_idx_type  nr,
octave_idx_type  nc 
) const
virtual

Reimplemented from octave_base_value.

◆ dims()

template<typename T >
dim_vector ov_range< T >::dims ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 165 of file ov-range.h.

References n, and numel().

◆ do_index_op()

template<typename T >
octave_value ov_range< T >::do_index_op ( const octave_value_list idx,
bool  resize_ok = false 
)
virtual

Reimplemented from octave_base_value.

Definition at line 174 of file ov-range.cc.

References octave_value::index_op(), octave_value_list::length(), and numel().

◆ double_value()

template<typename T >
double ov_range< T >::double_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 220 of file ov-range.cc.

References err_invalid_conversion(), numel(), and warn_implicit_conversion().

◆ edit_display()

template<typename T >
std::string ov_range< T >::edit_display ( const float_display_format fmt,
octave_idx_type  i,
octave_idx_type  j 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 506 of file ov-range.cc.

References octave_print_internal().

◆ empty_clone()

template<typename T >
octave_base_value* ov_range< T >::empty_clone ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 137 of file ov-range.h.

◆ fast_elem_extract()

template<typename T >
octave_value ov_range< T >::fast_elem_extract ( octave_idx_type  n) const
virtual

Reimplemented from octave_base_value.

Definition at line 1051 of file ov-range.cc.

References n, and numel().

◆ float_array_value()

template<typename T >
FloatNDArray ov_range< T >::float_array_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 348 of file ov-range.h.

◆ float_complex_array_value()

template<typename T >
FloatComplexNDArray ov_range< T >::float_complex_array_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 430 of file ov-range.h.

◆ float_complex_matrix_value()

template<typename T >
FloatComplexMatrix ov_range< T >::float_complex_matrix_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 420 of file ov-range.h.

◆ float_complex_value()

template<typename T >
FloatComplex ov_range< T >::float_complex_value ( bool  = false) const
virtual

◆ float_matrix_value()

template<typename T >
FloatMatrix ov_range< T >::float_matrix_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 338 of file ov-range.h.

◆ float_scalar_value()

template<typename T >
float ov_range< T >::float_scalar_value ( bool  frc_str_conv = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 328 of file ov-range.h.

◆ float_value()

template<typename T >
float ov_range< T >::float_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 235 of file ov-range.cc.

References err_invalid_conversion(), numel(), and warn_implicit_conversion().

◆ full_value()

template<typename T >
octave_value ov_range< T >::full_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 204 of file ov-range.h.

◆ get_edit_display_format()

template<typename T >
float_display_format ov_range< T >::get_edit_display_format
virtual

Reimplemented from octave_base_value.

Definition at line 499 of file ov-range.cc.

References make_format().

◆ hdf5_save_type()

octave_hdf5_id ov_range< double >::hdf5_save_type
protected

Definition at line 71 of file ov-range.cc.

◆ index_vector() [1/3]

octave::idx_vector ov_range< double >::index_vector ( bool  require_integers) const
virtual

Reimplemented from octave_base_value.

Definition at line 1087 of file ov-range.cc.

References octave_value(), and warning_with_id().

◆ index_vector() [2/3]

octave::idx_vector ov_range< double >::index_vector ( bool  require_integers) const
virtual

Reimplemented from octave_base_value.

◆ index_vector() [3/3]

template<typename T >
octave::idx_vector ov_range< T >::index_vector ( bool  require_integers = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 212 of file ov-range.cc.

References octave_value::index_vector().

◆ int16_array_value()

template<typename T >
int16NDArray ov_range< T >::int16_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 364 of file ov-range.h.

◆ int32_array_value()

template<typename T >
int32NDArray ov_range< T >::int32_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 369 of file ov-range.h.

◆ int64_array_value()

template<typename T >
int64NDArray ov_range< T >::int64_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 374 of file ov-range.h.

◆ int8_array_value()

template<typename T >
int8NDArray ov_range< T >::int8_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 359 of file ov-range.h.

◆ is_constant()

template<typename T >
bool ov_range< T >::is_constant ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 210 of file ov-range.h.

◆ is_defined()

template<typename T >
bool ov_range< T >::is_defined ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 206 of file ov-range.h.

◆ is_double_type()

template<typename T >
bool ov_range< T >::is_double_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 216 of file ov-range.h.

References btyp_double.

◆ is_int16_type()

template<typename T >
bool ov_range< T >::is_int16_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 224 of file ov-range.h.

References btyp_int16.

◆ is_int32_type()

template<typename T >
bool ov_range< T >::is_int32_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 226 of file ov-range.h.

References btyp_int32.

◆ is_int64_type()

template<typename T >
bool ov_range< T >::is_int64_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 228 of file ov-range.h.

References btyp_int64.

◆ is_int8_type()

template<typename T >
bool ov_range< T >::is_int8_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 222 of file ov-range.h.

References btyp_int8.

◆ is_range()

template<typename T >
bool ov_range< T >::is_range ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 212 of file ov-range.h.

◆ is_single_type()

template<typename T >
bool ov_range< T >::is_single_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 218 of file ov-range.h.

References btyp_float.

◆ is_sorted_rows()

template<typename T >
sortmode ov_range< T >::is_sorted_rows ( sortmode  mode = UNSORTED) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 312 of file ov-range.h.

References ASCENDING, and UNSORTED.

◆ is_storable()

template<typename T >
bool ov_range< T >::is_storable ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 208 of file ov-range.h.

◆ is_true()

template<typename T >
bool ov_range< T >::is_true ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 250 of file ov-range.h.

References numel().

◆ is_uint16_type()

template<typename T >
bool ov_range< T >::is_uint16_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 232 of file ov-range.h.

References btyp_uint16.

◆ is_uint32_type()

template<typename T >
bool ov_range< T >::is_uint32_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 234 of file ov-range.h.

References btyp_uint32.

◆ is_uint64_type()

template<typename T >
bool ov_range< T >::is_uint64_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 236 of file ov-range.h.

References btyp_uint64.

◆ is_uint8_type()

template<typename T >
bool ov_range< T >::is_uint8_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 230 of file ov-range.h.

References btyp_uint8.

◆ isfloat()

template<typename T >
bool ov_range< T >::isfloat ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 220 of file ov-range.h.

References btyp_isfloat().

◆ isinteger()

template<typename T >
bool ov_range< T >::isinteger ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 238 of file ov-range.h.

References btyp_isinteger().

◆ isnumeric()

template<typename T >
bool ov_range< T >::isnumeric ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 245 of file ov-range.h.

References btyp_isnumeric().

◆ isreal()

template<typename T >
bool ov_range< T >::isreal ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 243 of file ov-range.h.

◆ issorted()

template<typename T >
sortmode ov_range< T >::issorted ( sortmode  mode = UNSORTED) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 302 of file ov-range.h.

◆ load_ascii()

template<typename T >
bool ov_range< T >::load_ascii ( std::istream &  is)
virtual

Reimplemented from octave_base_value.

Definition at line 585 of file ov-range.cc.

References xload_ascii().

◆ load_binary()

template<typename T >
bool ov_range< T >::load_binary ( std::istream &  is,
bool  swap,
octave::mach_info::float_format  fmt 
)
virtual

Reimplemented from octave_base_value.

Definition at line 696 of file ov-range.cc.

References xload_binary().

◆ load_hdf5()

template<typename T >
bool ov_range< T >::load_hdf5 ( octave_hdf5_id  loc_id,
const char *  name 
)
virtual

Reimplemented from octave_base_value.

Definition at line 916 of file ov-range.cc.

References xload_hdf5().

◆ map()

template<typename T >
octave_value ov_range< T >::map ( unary_mapper_t  umap) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 498 of file ov-range.h.

References octave_value::map().

◆ matrix_value()

template<typename T >
Matrix ov_range< T >::matrix_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 333 of file ov-range.h.

◆ nnz() [1/3]

octave_idx_type ov_range< double >::nnz ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 1103 of file ov-range.cc.

◆ nnz() [2/3]

template<typename T >
octave_idx_type ov_range< T >::nnz ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 179 of file ov-range.h.

References octave_value::nnz().

◆ nnz() [3/3]

octave_idx_type ov_range< double >::nnz ( ) const
virtual

Reimplemented from octave_base_value.

◆ numel()

template<typename T >
octave_idx_type ov_range< T >::numel ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 177 of file ov-range.h.

◆ numeric_conversion_function()

template<typename T >
octave_base_value::type_conv_info ov_range< T >::numeric_conversion_function
virtual

Reimplemented from octave_base_value.

Definition at line 102 of file ov-range.cc.

◆ operator=()

template<typename T >
ov_range& ov_range< T >::operator= ( const ov_range< T > &  )
delete

◆ permute()

template<typename T >
octave_value ov_range< T >::permute ( const Array< int > &  vec,
bool  inv = false 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 197 of file ov-range.h.

References octave_value::permute().

◆ print()

template<typename T >
void ov_range< T >::print ( std::ostream &  os,
bool  pr_as_read_syntax = false 
)
virtual

Reimplemented from octave_base_value.

Definition at line 414 of file ov-range.cc.

◆ print_name_tag()

template<typename T >
bool ov_range< T >::print_name_tag ( std::ostream &  os,
const std::string &  name 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 435 of file ov-range.cc.

References n, numel(), and Vcompact_format.

◆ print_raw() [1/3]

void ov_range< double >::print_raw ( std::ostream &  os,
bool  pr_as_read_syntax 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 1136 of file ov-range.cc.

References octave_print_internal().

◆ print_raw() [2/3]

void ov_range< double >::print_raw ( std::ostream &  os,
bool  pr_as_read_syntax 
) const
virtual

Reimplemented from octave_base_value.

◆ print_raw() [3/3]

template<typename T >
void ov_range< T >::print_raw ( std::ostream &  os,
bool  pr_as_read_syntax = false 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 422 of file ov-range.cc.

References octave_print_internal().

◆ range_value() [1/3]

octave::range< double > ov_range< double >::range_value ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 1060 of file ov-range.cc.

◆ range_value() [2/3]

template<typename T >
octave::range< double > ov_range< T >::range_value
virtual

Reimplemented from octave_base_value.

Definition at line 325 of file ov-range.cc.

References err_wrong_type_arg().

◆ range_value() [3/3]

octave::range< double > ov_range< double >::range_value ( ) const
virtual

Reimplemented from octave_base_value.

◆ raw_array_value()

template<typename T >
Array<T> ov_range< T >::raw_array_value ( ) const
inline

Definition at line 317 of file ov-range.h.

◆ register_type() [1/6]

void ov_range< double >::register_type ( )

Definition at line 85 of file ov-range.cc.

◆ register_type() [2/6]

template<typename T >
static void ov_range< T >::register_type ( )
static

◆ register_type() [3/6]

void ov_range< double >::register_type ( )

◆ register_type() [4/6]

template<typename T >
static void ov_range< T >::register_type ( octave::type_info &  )
static

◆ register_type() [5/6]

void ov_range< double >::register_type ( octave::type_info &  )

◆ register_type() [6/6]

void ov_range< double >::register_type ( octave::type_info &  ti)

Definition at line 85 of file ov-range.cc.

◆ reshape()

template<typename T >
octave_value ov_range< T >::reshape ( const dim_vector new_dims) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 192 of file ov-range.h.

References octave_value::reshape().

◆ resize()

template<typename T >
octave_value ov_range< T >::resize ( const dim_vector dv,
bool  fill = false 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 313 of file ov-range.cc.

References Array< T, Alloc >::resize().

◆ save_ascii()

template<typename T >
bool ov_range< T >::save_ascii ( std::ostream &  os)
virtual

Reimplemented from octave_base_value.

Definition at line 552 of file ov-range.cc.

References xsave_ascii().

◆ save_binary()

template<typename T >
bool ov_range< T >::save_binary ( std::ostream &  os,
bool  save_as_floats 
)
virtual

Reimplemented from octave_base_value.

Definition at line 649 of file ov-range.cc.

References xsave_binary().

◆ save_hdf5()

template<typename T >
bool ov_range< T >::save_hdf5 ( octave_hdf5_id  loc_id,
const char *  name,
bool  flag 
)
virtual

Reimplemented from octave_base_value.

Definition at line 834 of file ov-range.cc.

References xsave_hdf5().

◆ scalar_value()

template<typename T >
double ov_range< T >::scalar_value ( bool  frc_str_conv = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 323 of file ov-range.h.

◆ set_idx_cache()

template<typename T >
octave::idx_vector ov_range< T >::set_idx_cache ( const octave::idx_vector idx) const
inlineprotected

Definition at line 510 of file ov-range.h.

◆ short_disp()

template<typename T >
void ov_range< T >::short_disp ( std::ostream &  os) const
virtual

Reimplemented from octave_base_value.

Definition at line 460 of file ov-range.cc.

References len, and numel().

◆ sort() [1/2]

template<typename T >
octave_value ov_range< T >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 295 of file ov-range.h.

References Array< T, Alloc >::sort().

◆ sort() [2/2]

template<typename T >
octave_value ov_range< T >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 289 of file ov-range.h.

References Array< T, Alloc >::sort().

◆ sort_rows_idx()

template<typename T >
Array<octave_idx_type> ov_range< T >::sort_rows_idx ( sortmode  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 307 of file ov-range.h.

◆ sparse_complex_matrix_value()

template<typename T >
SparseComplexMatrix ov_range< T >::sparse_complex_matrix_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 404 of file ov-range.h.

◆ sparse_matrix_value()

template<typename T >
SparseMatrix ov_range< T >::sparse_matrix_value ( bool  = false) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 399 of file ov-range.h.

◆ squeeze()

template<typename T >
octave_value ov_range< T >::squeeze ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 202 of file ov-range.h.

◆ static_class_name()

template<typename T >
static std::string ov_range< T >::static_class_name ( )
inlinestatic

Definition at line 526 of file ov-range.h.

◆ static_type_id()

template<typename T >
static int ov_range< T >::static_type_id ( )
inlinestatic

Definition at line 526 of file ov-range.h.

◆ static_type_name()

template<typename T >
static std::string ov_range< T >::static_type_name ( )
inlinestatic

Definition at line 526 of file ov-range.h.

◆ subsref() [1/5]

template<typename T >
octave_value octave_base_value::subsref

Definition at line 335 of file ov-base.cc.

◆ subsref() [2/5]

template<typename T >
octave_value ov_range< T >::subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx 
)
virtual

Reimplemented from octave_base_value.

Definition at line 146 of file ov-range.cc.

References error(), octave_value::next_subsref(), and panic_impossible.

◆ subsref() [3/5]

template<typename T >
octave_value octave_base_value::subsref

Definition at line 344 of file ov-base.cc.

◆ subsref() [4/5]

template<typename T >
octave_value_list octave_base_value::subsref

Definition at line 339 of file ov-base.cc.

◆ subsref() [5/5]

template<typename T >
octave_value_list ov_range< T >::subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx,
int   
)
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 156 of file ov-range.h.

◆ try_narrowing_conversion()

template<typename T >
octave_base_value * ov_range< T >::try_narrowing_conversion
virtual

Reimplemented from octave_base_value.

Definition at line 112 of file ov-range.cc.

References m, and numel().

◆ type_id()

template<typename T >
int ov_range< T >::type_id ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 526 of file ov-range.h.

◆ type_name()

template<typename T >
std::string ov_range< T >::type_name ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 526 of file ov-range.h.

◆ uint16_array_value()

template<typename T >
uint16NDArray ov_range< T >::uint16_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 384 of file ov-range.h.

◆ uint32_array_value()

template<typename T >
uint32NDArray ov_range< T >::uint32_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 389 of file ov-range.h.

◆ uint64_array_value()

template<typename T >
uint64NDArray ov_range< T >::uint64_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 394 of file ov-range.h.

◆ uint8_array_value()

template<typename T >
uint8NDArray ov_range< T >::uint8_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 379 of file ov-range.h.

◆ vm_extract_forloop_value() [1/2]

template<typename T >
octave_value ov_range< T >::vm_extract_forloop_value ( octave_idx_type  idx)

Definition at line 1067 of file ov-range.cc.

References octave_value::as_double_or_copy(), octave_value_factory::make(), and n.

◆ vm_extract_forloop_value() [2/2]

octave_value ov_range< double >::vm_extract_forloop_value ( octave_idx_type  n)

Definition at line 1076 of file ov-range.cc.

References octave_value_factory::make(), and n.

◆ vm_need_storable_call()

template<typename T >
bool ov_range< T >::vm_need_storable_call ( ) const
inline

Definition at line 214 of file ov-range.h.

◆ write()

template<typename T >
int ov_range< T >::write ( octave::stream &  os,
int  block_size,
oct_data_conv::data_type  output_type,
int  skip,
octave::mach_info::float_format  flt_fmt 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 486 of file ov-range.h.

Member Data Documentation

◆ hdf5_save_type

template<typename T >
octave_hdf5_id ov_range< T >::hdf5_save_type
staticprotected

Definition at line 524 of file ov-range.h.

◆ m_idx_cache

template<typename T >
octave::idx_vector* ov_range< T >::m_idx_cache
mutableprotected

Definition at line 522 of file ov-range.h.

◆ m_range

template<typename T >
octave::range<T> ov_range< T >::m_range
protected

Definition at line 508 of file ov-range.h.


The documentation for this class was generated from the following files: