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

#include "ov-base-mat.h"

Inheritance diagram for octave_base_matrix< MT >:
octave_base_value octave_base_int_matrix< intNDArray< octave_uint64 > > octave_uint64_matrix

Public Types

typedef MT object_type
 
- 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
}
 

Public Member Functions

 octave_base_matrix ()
 
 octave_base_matrix (const MT &m, const MatrixType &t=MatrixType())
 
 octave_base_matrix (const octave_base_matrix &m)
 
 ~octave_base_matrix ()
 
octave_value all (int dim=0) const
 
octave_value any (int dim=0) const
 
void assign (const octave_value_list &idx, const MT &rhs)
 
void assign (const octave_value_list &idx, typename MT::element_type rhs)
 
virtual void assign (const std::string &, const octave_value &)
 
std::size_t byte_size () const
 
void delete_elements (const octave_value_list &idx)
 
octave_value diag (octave_idx_type k=0) const
 
octave_value diag (octave_idx_type m, octave_idx_type n) const
 
dim_vector dims () const
 
octave_value do_index_op (const octave_value_list &idx, bool resize_ok=false)
 
std::string edit_display (const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
 
octave_value fast_elem_extract (octave_idx_type n) const
 
bool fast_elem_insert (octave_idx_type n, const octave_value &x)
 
octave_value full_value () const
 
float_display_format get_edit_display_format () const
 
bool is_constant () const
 
bool is_defined () const
 
bool is_full_num_matrix () const
 
bool is_matrix_type () const
 
sortmode is_sorted_rows (sortmode mode=UNSORTED) const
 
bool is_true () const
 
bool isnumeric () const
 
sortmode issorted (sortmode mode=UNSORTED) const
 
MT & matrix_ref ()
 
const MT & matrix_ref () const
 
MatrixType matrix_type () const
 
MatrixType matrix_type (const MatrixType &_typ) const
 
void maybe_economize ()
 
const void * mex_get_data () const
 
int ndims () const
 
octave_idx_type nnz () const
 
octave_idx_type numel () const
 
octave_value permute (const Array< int > &vec, bool inv=false) const
 
void print (std::ostream &os, bool pr_as_read_syntax=false)
 
bool print_as_scalar () const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
octave_value reshape (const dim_vector &new_dims) const
 
octave_value resize (const dim_vector &dv, bool fill=false) const
 
void short_disp (std::ostream &os) const
 
octave_value_list simple_subsref (char type, octave_value_list &idx, int nargout)
 
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 mode=ASCENDING) const
 
octave_value squeeze () const
 
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)
 
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)
 
- Public Member Functions inherited from octave_base_value
 octave_base_value ()
 
 octave_base_value (const octave_base_value &)
 
virtual ~octave_base_value ()=default
 
virtual NDArray array_value (bool=false) const
 
virtual octave_value as_double () const
 
virtual octave_value as_double_or_copy ()
 
virtual octave_value as_int16 () const
 
virtual octave_value as_int32 () const
 
virtual octave_value as_int64 () const
 
virtual octave_value as_int8 () const
 
virtual mxArrayas_mxArray (bool interleaved) const
 
virtual octave_value as_single () const
 
virtual octave_value as_uint16 () const
 
virtual octave_value as_uint32 () const
 
virtual octave_value as_uint64 () const
 
virtual octave_value as_uint8 () const
 
virtual void assign (const std::string &, const octave_value &)
 
virtual boolNDArray bool_array_value (bool=false) const
 
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 builtin_type_t builtin_type () const
 
virtual void call_object_destructor ()
 
virtual Cell cell_value () const
 
virtual Array< std::string > cellstr_value () const
 
virtual charNDArray char_array_value (bool=false) const
 
virtual charMatrix char_matrix_value (bool force=false) const
 
virtual std::string class_name () const
 
virtual octave_classdefclassdef_object_value (bool silent=false)
 
virtual octave_base_valueclone () const
 
octave_idx_type columns () const
 
virtual ComplexNDArray complex_array_value (bool=false) const
 
virtual ComplexDiagMatrix complex_diag_matrix_value (bool=false) const
 
virtual ComplexMatrix complex_matrix_value (bool=false) const
 
virtual Complex complex_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 octave_value convert_to_str_internal (bool pad, bool force, char type) const
 
virtual DiagMatrix diag_matrix_value (bool=false) const
 
virtual double double_value (bool=false) const
 
virtual octave_value dump () const
 
virtual octave_base_valueempty_clone () const
 
virtual void erase_subfunctions ()
 
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 FloatNDArray float_array_value (bool=false) const
 
virtual FloatComplexNDArray float_complex_array_value (bool=false) const
 
virtual FloatComplexDiagMatrix float_complex_diag_matrix_value (bool=false) const
 
virtual FloatComplexMatrix float_complex_matrix_value (bool=false) const
 
virtual FloatComplex float_complex_value (bool=false) const
 
virtual FloatDiagMatrix float_diag_matrix_value (bool=false) const
 
virtual FloatMatrix float_matrix_value (bool=false) const
 
virtual float float_scalar_value (bool frc_str_conv=false) const
 
virtual float float_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::idx_vector index_vector (bool require_integers=false) const
 
virtual int16NDArray int16_array_value () const
 
virtual octave_int16 int16_scalar_value () const
 
virtual int32NDArray int32_array_value () const
 
virtual octave_int32 int32_scalar_value () const
 
virtual int64NDArray int64_array_value () const
 
virtual octave_int64 int64_scalar_value () const
 
virtual int64_t int64_value (bool=false, bool=false) const
 
virtual int8NDArray int8_array_value () 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_double_type () 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_int16_type () const
 
virtual bool is_int32_type () const
 
virtual bool is_int64_type () const
 
virtual bool is_int8_type () const
 
virtual bool is_legacy_object () const
 
virtual bool is_magic_colon () const
 
virtual bool is_magic_int () 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_range () const
 
virtual bool is_real_matrix () const
 
virtual bool is_real_scalar () const
 
virtual bool is_scalar_type () const
 
virtual bool is_single_type () const
 
virtual bool is_sq_string () const
 
virtual bool is_storable () const
 
virtual bool is_string () const
 
virtual bool is_uint16_type () const
 
virtual bool is_uint32_type () const
 
virtual bool is_uint64_type () const
 
virtual bool is_uint8_type () 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 isfloat () const
 
virtual bool isinteger () const
 
virtual bool isjava () const
 
virtual bool islocked () const
 
virtual bool islogical () const
 
virtual bool isnull () const
 
virtual bool isobject () const
 
virtual bool isreal () const
 
virtual bool issparse () const
 
virtual bool isstruct () const
 
virtual octave_value_list list_value () const
 
virtual bool load_ascii (std::istream &is)
 
virtual bool load_binary (std::istream &is, bool swap, octave::mach_info::float_format fmt)
 
virtual bool load_hdf5 (octave_hdf5_id loc_id, const char *name)
 
virtual void lock ()
 
virtual long int long_value (bool=false, bool=false) const
 
virtual octave_base_valuemake_storable_value ()
 
virtual octave_value map (unary_mapper_t) const
 
virtual string_vector map_keys () const
 
virtual octave_map map_value () const
 
virtual Matrix matrix_value (bool=false) const
 
virtual void maybe_call_dtor ()
 
virtual const octave_idx_typemex_get_ir () const
 
virtual const octave_idx_typemex_get_jc () 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_conversion_function () 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_name_tag (std::ostream &os, const std::string &name) const
 
virtual void print_raw (std::ostream &os, bool pr_as_read_syntax=false) const
 
virtual void print_with_name (std::ostream &output_buf, const std::string &name, bool print_padding=true)
 
virtual octave::range< double > range_value () const
 
octave_idx_type rows () const
 
virtual bool save_ascii (std::ostream &os)
 
virtual bool save_binary (std::ostream &os, bool save_as_floats)
 
virtual bool save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats)
 
virtual octave_scalar_map scalar_map_value () const
 
virtual double scalar_value (bool frc_str_conv=false) 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 Matrix size ()
 
virtual SparseBoolMatrix sparse_bool_matrix_value (bool=false) const
 
virtual SparseComplexMatrix sparse_complex_matrix_value (bool=false) const
 
virtual SparseMatrix sparse_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 subsref (const std::string &type, const std::list< octave_value_list > &idx, bool auto_add)
 
virtual octave_base_valuetry_narrowing_conversion ()
 
virtual int type_id () const
 
virtual std::string type_name () const
 
virtual uint16NDArray uint16_array_value () const
 
virtual octave_uint16 uint16_scalar_value () const
 
virtual uint32NDArray uint32_array_value () const
 
virtual octave_uint32 uint32_scalar_value () const
 
virtual uint64NDArray uint64_array_value () const
 
virtual octave_uint64 uint64_scalar_value () const
 
virtual uint64_t uint64_value (bool=false, bool=false) const
 
virtual uint8NDArray uint8_array_value () 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 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
 
virtual octave_idx_type xnumel (const octave_value_list &)
 
virtual std::string xstring_value () const
 

Protected Member Functions

void clear_cached_info () const
 
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
 
MT m_matrix
 
MatrixTypem_typ
 
- Protected Attributes inherited from octave_base_value
octave::refcount< octave_idx_type > & count
 
octave::refcount< octave_idx_typem_count
 

Additional Inherited Members

- 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 ()
 
- Static Protected Member Functions inherited from octave_base_value
static const char * get_umap_name (unary_mapper_t)
 

Detailed Description

template<typename MT>
class octave_base_matrix< MT >

Definition at line 48 of file ov-base-mat.h.

Member Typedef Documentation

◆ object_type

template<typename MT >
typedef MT octave_base_matrix< MT >::object_type

Definition at line 54 of file ov-base-mat.h.

Constructor & Destructor Documentation

◆ octave_base_matrix() [1/3]

template<typename MT >
octave_base_matrix< MT >::octave_base_matrix ( )
inline

Definition at line 56 of file ov-base-mat.h.

◆ octave_base_matrix() [2/3]

template<typename MT >
octave_base_matrix< MT >::octave_base_matrix ( const MT &  m,
const MatrixType t = MatrixType () 
)
inline

Definition at line 59 of file ov-base-mat.h.

References octave_base_value::resize().

◆ octave_base_matrix() [3/3]

template<typename MT >
octave_base_matrix< MT >::octave_base_matrix ( const octave_base_matrix< MT > &  m)
inline

Definition at line 67 of file ov-base-mat.h.

◆ ~octave_base_matrix()

template<typename MT >
octave_base_matrix< MT >::~octave_base_matrix ( )
inline

Definition at line 74 of file ov-base-mat.h.

Member Function Documentation

◆ all()

template<typename MT >
octave_value octave_base_matrix< MT >::all ( int  dim = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 136 of file ov-base-mat.h.

References octave_value::all().

◆ any()

template<typename MT >
octave_value octave_base_matrix< MT >::any ( int  dim = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 137 of file ov-base-mat.h.

References octave_value::any().

◆ assign() [1/3]

template<typename MT >
void octave_base_matrix< MT >::assign ( const octave_value_list idx,
const MT &  rhs 
)

Definition at line 248 of file ov-base-mat.cc.

References octave_value_list::length(), and panic_impossible.

◆ assign() [2/3]

template<typename MT >
void octave_base_matrix< MT >::assign ( const octave_value_list idx,
typename MT::element_type  rhs 
)

Definition at line 319 of file ov-base-mat.cc.

References octave_value_list::length(), n, panic_impossible, and dim_vector::redim().

◆ assign() [3/3]

template<typename MT >
virtual void octave_base_value::assign
inline

Definition at line 354 of file ov-base.h.

Referenced by octave_cell::assign(), and octave_cell::subsasgn().

◆ byte_size()

template<typename MT >
std::size_t octave_base_matrix< MT >::byte_size ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 76 of file ov-base-mat.h.

◆ clear_cached_info()

template<typename MT >
void octave_base_matrix< MT >::clear_cached_info ( ) const
inlineprotected

Definition at line 222 of file ov-base-mat.h.

◆ delete_elements()

template<typename MT >
void octave_base_matrix< MT >::delete_elements ( const octave_value_list idx)

Definition at line 416 of file ov-base-mat.cc.

References len, octave_value_list::length(), and ra_idx.

Referenced by octave_cell::delete_elements(), and octave_cell::subsasgn().

◆ diag() [1/2]

template<typename MT >
octave_value octave_base_matrix< MT >::diag ( octave_idx_type  k = 0) const
inlinevirtual

◆ diag() [2/2]

template<typename MT >
octave_value octave_base_matrix< MT >::diag ( octave_idx_type  m,
octave_idx_type  n 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 145 of file ov-base-mat.h.

References m, n, and octave_value().

◆ dims()

template<typename MT >
dim_vector octave_base_matrix< MT >::dims ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 120 of file ov-base-mat.h.

◆ do_index_op()

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

Reimplemented from octave_base_value.

Definition at line 156 of file ov-base-mat.cc.

References octave_value_list::length().

◆ edit_display()

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

Reimplemented from octave_base_value.

Reimplemented in octave_base_int_matrix< intNDArray< octave_uint64 > >.

Definition at line 556 of file ov-base-mat.cc.

References octave_print_internal().

◆ fast_elem_extract()

template<typename MT >
octave_value octave_base_matrix< MT >::fast_elem_extract ( octave_idx_type  n) const
virtual

Reimplemented from octave_base_value.

Definition at line 567 of file ov-base-mat.cc.

References n, and octave_value().

◆ fast_elem_insert()

template<typename MT >
bool octave_base_matrix< MT >::fast_elem_insert ( octave_idx_type  n,
const octave_value x 
)
virtual

Reimplemented from octave_base_value.

Definition at line 577 of file ov-base-mat.cc.

References btyp_unknown, n, and x.

◆ full_value()

template<typename MT >
octave_value octave_base_matrix< MT >::full_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 80 of file ov-base-mat.h.

◆ get_edit_display_format()

template<typename MT >
float_display_format octave_base_matrix< MT >::get_edit_display_format
virtual

Reimplemented from octave_base_value.

Definition at line 549 of file ov-base-mat.cc.

References make_format().

◆ is_constant()

template<typename MT >
bool octave_base_matrix< MT >::is_constant ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 171 of file ov-base-mat.h.

◆ is_defined()

template<typename MT >
bool octave_base_matrix< MT >::is_defined ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 169 of file ov-base-mat.h.

◆ is_full_num_matrix()

template<typename MT >
bool octave_base_matrix< MT >::is_full_num_matrix ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 165 of file ov-base-mat.h.

◆ is_matrix_type()

template<typename MT >
bool octave_base_matrix< MT >::is_matrix_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 163 of file ov-base-mat.h.

◆ is_sorted_rows()

template<typename MT >
sortmode octave_base_matrix< MT >::is_sorted_rows ( sortmode  mode = UNSORTED) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 160 of file ov-base-mat.h.

Referenced by octave_matrix::is_sorted_rows().

◆ is_true()

template<typename MT >
bool octave_base_matrix< MT >::is_true
virtual

◆ isnumeric()

template<typename MT >
bool octave_base_matrix< MT >::isnumeric ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 167 of file ov-base-mat.h.

◆ issorted()

template<typename MT >
sortmode octave_base_matrix< MT >::issorted ( sortmode  mode = UNSORTED) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 154 of file ov-base-mat.h.

Referenced by octave_matrix::issorted().

◆ matrix_ref() [1/2]

template<typename MT >
MT& octave_base_matrix< MT >::matrix_ref ( )
inline

Definition at line 190 of file ov-base-mat.h.

◆ matrix_ref() [2/2]

template<typename MT >
const MT& octave_base_matrix< MT >::matrix_ref ( ) const
inline

Definition at line 196 of file ov-base-mat.h.

◆ matrix_type() [1/2]

template<typename MT >
MatrixType octave_base_matrix< MT >::matrix_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 139 of file ov-base-mat.h.

◆ matrix_type() [2/2]

template<typename MT >
MatrixType octave_base_matrix< MT >::matrix_type ( const MatrixType _typ) const
virtual

Reimplemented from octave_base_value.

Definition at line 310 of file ov-base-mat.cc.

◆ maybe_economize()

template<typename MT >
void octave_base_matrix< MT >::maybe_economize ( )
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 82 of file ov-base-mat.h.

◆ mex_get_data()

template<typename MT >
const void* octave_base_matrix< MT >::mex_get_data ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 209 of file ov-base-mat.h.

◆ ndims()

template<typename MT >
int octave_base_matrix< MT >::ndims ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 124 of file ov-base-mat.h.

◆ nnz()

template<typename MT >
octave_idx_type octave_base_matrix< MT >::nnz ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 126 of file ov-base-mat.h.

◆ numel()

template<typename MT >
octave_idx_type octave_base_matrix< MT >::numel ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 122 of file ov-base-mat.h.

◆ permute()

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

Reimplemented from octave_base_value.

Definition at line 131 of file ov-base-mat.h.

◆ print()

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

Reimplemented from octave_base_value.

Definition at line 481 of file ov-base-mat.cc.

◆ print_as_scalar()

template<typename MT >
bool octave_base_matrix< MT >::print_as_scalar
virtual

Reimplemented from octave_base_value.

Definition at line 472 of file ov-base-mat.cc.

References dim_vector::all_ones(), and dim_vector::any_zero().

◆ print_info()

template<typename MT >
void octave_base_matrix< MT >::print_info ( std::ostream &  os,
const std::string &  prefix 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 489 of file ov-base-mat.cc.

◆ reshape()

template<typename MT >
octave_value octave_base_matrix< MT >::reshape ( const dim_vector new_dims) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 128 of file ov-base-mat.h.

Referenced by octave_matrix::reshape().

◆ resize()

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

Reimplemented from octave_base_value.

Definition at line 433 of file ov-base-mat.cc.

◆ set_idx_cache()

template<typename MT >
octave::idx_vector octave_base_matrix< MT >::set_idx_cache ( const octave::idx_vector idx) const
inlineprotected

Definition at line 215 of file ov-base-mat.h.

◆ short_disp()

template<typename MT >
void octave_base_matrix< MT >::short_disp ( std::ostream &  os) const
virtual

Reimplemented from octave_base_value.

Definition at line 497 of file ov-base-mat.cc.

References octave_print_internal().

◆ simple_subsref()

template<typename MT >
octave_value_list octave_base_matrix< MT >::simple_subsref ( char  type,
octave_value_list idx,
int  nargout 
)
virtual

Reimplemented from octave_base_value.

Definition at line 46 of file ov-base-mat.cc.

References error(), and panic_impossible.

◆ sort() [1/2]

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

Reimplemented from octave_base_value.

Definition at line 150 of file ov-base-mat.h.

References octave_value().

◆ sort() [2/2]

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

Reimplemented from octave_base_value.

Definition at line 148 of file ov-base-mat.h.

References octave_value().

Referenced by octave_matrix::sort().

◆ sort_rows_idx()

template<typename MT >
Array<octave_idx_type> octave_base_matrix< MT >::sort_rows_idx ( sortmode  mode = ASCENDING) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 157 of file ov-base-mat.h.

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

Referenced by octave_matrix::sort_rows_idx().

◆ squeeze()

template<typename MT >
octave_value octave_base_matrix< MT >::squeeze ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 78 of file ov-base-mat.h.

Referenced by octave_matrix::squeeze().

◆ subsasgn()

template<typename MT >
octave_value octave_base_matrix< MT >::subsasgn ( const std::string &  type,
const std::list< octave_value_list > &  idx,
const octave_value rhs 
)
virtual

Reimplemented from octave_base_value.

Definition at line 97 of file ov-base-mat.cc.

◆ subsref() [1/5]

template<typename MT >
octave_value octave_base_value::subsref

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

◆ subsref() [2/5]

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

Reimplemented from octave_base_value.

Definition at line 69 of file ov-base-mat.cc.

References error(), and panic_impossible.

◆ subsref() [3/5]

template<typename MT >
octave_value octave_base_value::subsref

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

◆ subsref() [4/5]

template<typename MT >
octave_value_list octave_base_value::subsref

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

◆ subsref() [5/5]

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

Reimplemented from octave_base_value.

Definition at line 95 of file ov-base-mat.h.

Member Data Documentation

◆ m_idx_cache

template<typename MT >
octave::idx_vector* octave_base_matrix< MT >::m_idx_cache
mutableprotected

Definition at line 229 of file ov-base-mat.h.

◆ m_matrix

template<typename MT >
MT octave_base_matrix< MT >::m_matrix
protected

Definition at line 213 of file ov-base-mat.h.

◆ m_typ

template<typename MT >
MatrixType* octave_base_matrix< MT >::m_typ
mutableprotected

Definition at line 228 of file ov-base-mat.h.


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