GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_perm_matrix Class Reference

#include "ov-perm.h"

Inheritance diagram for octave_perm_matrix:
octave_base_value

Public Member Functions

 octave_perm_matrix ()
 
 octave_perm_matrix (const PermMatrix &p)
 
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_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
 
virtual octave_value diag (octave_idx_type k=0) const
 
octave_value diag (octave_idx_type k=0) const
 
virtual 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)
 
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_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=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_matrix_type () const
 
bool is_perm_matrix () const
 
bool is_real_matrix () const
 
sortmode is_sorted_rows (sortmode mode=UNSORTED) const
 
bool is_true () const
 
bool isfloat () 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)
 
octave_value map (unary_mapper_t umap) const
 
MatrixType matrix_type () const
 
MatrixType matrix_type (const MatrixType &) const
 
Matrix matrix_value (bool=false) const
 
octave_idx_type nnz () const
 
type_conv_info numeric_conversion_function () const
 
PermMatrix perm_matrix_value () 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
 
void print_raw (std::ostream &os, bool pr_as_read_syntax=false) const
 
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)
 
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 mode=ASCENDING) const
 
SparseBoolMatrix sparse_bool_matrix_value (bool=false) 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
 
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 octave_value diag (octave_idx_type m, octave_idx_type n) 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 float float_scalar_value (bool frc_str_conv=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_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_range () 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 isinteger () 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 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 string_vector map_keys () const
 
virtual octave_map map_value () 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 octave_idx_type numel () 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 bool print_name_tag (std::ostream &os, const std::string &name) 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_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats)
 
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 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

virtual octave_value to_dense () 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_value m_dense_cache
 
PermMatrix m_matrix
 
- Protected Attributes inherited from octave_base_value
octave::refcount< octave_idx_type > & count
 
octave::refcount< octave_idx_typem_count
 

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

Definition at line 38 of file ov-perm.h.

Constructor & Destructor Documentation

◆ octave_perm_matrix() [1/2]

octave_perm_matrix::octave_perm_matrix ( )
inline

Definition at line 43 of file ov-perm.h.

◆ octave_perm_matrix() [2/2]

octave_perm_matrix::octave_perm_matrix ( const PermMatrix p)
inline

Definition at line 45 of file ov-perm.h.

Member Function Documentation

◆ all()

octave_value octave_perm_matrix::all ( int  dim = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 90 of file ov-perm.h.

References octave_value::all().

◆ any()

octave_value octave_perm_matrix::any ( int  dim = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 91 of file ov-perm.h.

References octave_value::any().

◆ array_value()

NDArray octave_perm_matrix::array_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

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

◆ as_double()

octave_value octave_perm_matrix::as_double ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 257 of file ov-perm.cc.

References m_matrix.

◆ as_int16()

octave_value octave_perm_matrix::as_int16 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 275 of file ov-perm.cc.

References int16_array_value().

◆ as_int32()

octave_value octave_perm_matrix::as_int32 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 281 of file ov-perm.cc.

References int32_array_value().

◆ as_int64()

octave_value octave_perm_matrix::as_int64 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 287 of file ov-perm.cc.

References int64_array_value().

◆ as_int8()

octave_value octave_perm_matrix::as_int8 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 269 of file ov-perm.cc.

References int8_array_value().

◆ as_mxArray()

mxArray * octave_perm_matrix::as_mxArray ( bool  interleaved) const
virtual

Reimplemented from octave_base_value.

Definition at line 437 of file ov-perm.cc.

References octave_value::as_mxArray(), and to_dense().

◆ as_single()

octave_value octave_perm_matrix::as_single ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 263 of file ov-perm.cc.

References float_array_value().

◆ as_uint16()

octave_value octave_perm_matrix::as_uint16 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 299 of file ov-perm.cc.

References uint16_array_value().

◆ as_uint32()

octave_value octave_perm_matrix::as_uint32 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 305 of file ov-perm.cc.

References uint32_array_value().

◆ as_uint64()

octave_value octave_perm_matrix::as_uint64 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 311 of file ov-perm.cc.

References uint64_array_value().

◆ as_uint8()

octave_value octave_perm_matrix::as_uint8 ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 293 of file ov-perm.cc.

References uint8_array_value().

◆ bool_array_value()

boolNDArray octave_perm_matrix::bool_array_value ( bool  warn = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 240 of file ov-perm.cc.

◆ builtin_type()

builtin_type_t octave_perm_matrix::builtin_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 120 of file ov-perm.h.

References btyp_double.

◆ byte_size()

std::size_t octave_perm_matrix::byte_size ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 56 of file ov-perm.h.

◆ char_array_value()

charNDArray octave_perm_matrix::char_array_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 241 of file ov-perm.cc.

◆ class_name()

std::string octave_perm_matrix::class_name ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 268 of file ov-perm.h.

◆ clone()

octave_base_value* octave_perm_matrix::clone ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 47 of file ov-perm.h.

◆ complex_array_value()

ComplexNDArray octave_perm_matrix::complex_array_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 237 of file ov-perm.cc.

◆ complex_matrix_value()

ComplexMatrix octave_perm_matrix::complex_matrix_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 232 of file ov-perm.cc.

◆ complex_value()

Complex octave_perm_matrix::complex_value ( bool  = false) const
virtual

◆ convert_to_str_internal()

octave_value octave_perm_matrix::convert_to_str_internal ( bool  pad,
bool  force,
char  type 
) const
virtual

Reimplemented from octave_base_value.

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

References octave_value::convert_to_str_internal(), and to_dense().

◆ diag() [1/3]

octave_value octave_base_value::diag

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

◆ diag() [2/3]

octave_value octave_perm_matrix::diag ( octave_idx_type  k = 0) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 102 of file ov-perm.h.

References octave_value::diag().

◆ diag() [3/3]

octave_value octave_base_value::diag

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

◆ dims()

dim_vector octave_perm_matrix::dims ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 77 of file ov-perm.h.

Referenced by is_true(), and print_as_scalar().

◆ do_index_op()

octave_value octave_perm_matrix::do_index_op ( const octave_value_list idx,
bool  resize_ok = false 
)
virtual

Reimplemented from octave_base_value.

Definition at line 72 of file ov-perm.cc.

References octave_value_list::length().

Referenced by subsref().

◆ double_value()

double octave_perm_matrix::double_value ( bool  = false) const
virtual

◆ edit_display()

std::string octave_perm_matrix::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 323 of file ov-perm.cc.

References m_matrix, and octave_print_internal().

◆ empty_clone()

octave_base_value* octave_perm_matrix::empty_clone ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 49 of file ov-perm.h.

◆ fast_elem_extract()

octave_value octave_perm_matrix::fast_elem_extract ( octave_idx_type  n) const
virtual

◆ float_array_value()

FloatNDArray octave_perm_matrix::float_array_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 236 of file ov-perm.cc.

Referenced by as_single().

◆ float_complex_array_value()

FloatComplexNDArray octave_perm_matrix::float_complex_array_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 238 of file ov-perm.cc.

◆ float_complex_matrix_value()

FloatComplexMatrix octave_perm_matrix::float_complex_matrix_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 233 of file ov-perm.cc.

◆ float_complex_value()

FloatComplex octave_perm_matrix::float_complex_value ( bool  = false) const
virtual

◆ float_matrix_value()

FloatMatrix octave_perm_matrix::float_matrix_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 231 of file ov-perm.cc.

◆ float_value()

float octave_perm_matrix::float_value ( bool  = false) const
virtual

◆ full_value()

octave_value octave_perm_matrix::full_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 60 of file ov-perm.h.

◆ get_edit_display_format()

float_display_format octave_perm_matrix::get_edit_display_format ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 317 of file ov-perm.cc.

◆ index_vector()

octave::idx_vector octave_perm_matrix::index_vector ( bool  require_integers = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 244 of file ov-perm.cc.

References index_vector().

Referenced by index_vector().

◆ int16_array_value()

int16NDArray octave_perm_matrix::int16_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 188 of file ov-perm.h.

Referenced by as_int16().

◆ int32_array_value()

int32NDArray octave_perm_matrix::int32_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 191 of file ov-perm.h.

Referenced by as_int32().

◆ int64_array_value()

int64NDArray octave_perm_matrix::int64_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 194 of file ov-perm.h.

Referenced by as_int64().

◆ int8_array_value()

int8NDArray octave_perm_matrix::int8_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 185 of file ov-perm.h.

Referenced by as_int8().

◆ is_constant()

bool octave_perm_matrix::is_constant ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 130 of file ov-perm.h.

◆ is_defined()

bool octave_perm_matrix::is_defined ( ) const
inlinevirtual

Reimplemented from octave_base_value.

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

◆ is_double_type()

bool octave_perm_matrix::is_double_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 136 of file ov-perm.h.

◆ is_matrix_type()

bool octave_perm_matrix::is_matrix_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 124 of file ov-perm.h.

◆ is_perm_matrix()

bool octave_perm_matrix::is_perm_matrix ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 122 of file ov-perm.h.

◆ is_real_matrix()

bool octave_perm_matrix::is_real_matrix ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 132 of file ov-perm.h.

◆ is_sorted_rows()

sortmode octave_perm_matrix::is_sorted_rows ( sortmode  mode = UNSORTED) const
inlinevirtual

Reimplemented from octave_base_value.

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

◆ is_true()

bool octave_perm_matrix::is_true ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 140 of file ov-perm.cc.

References dims(), octave_base_value::numel(), dim_vector::numel(), and warn_array_as_logical().

◆ isfloat()

bool octave_perm_matrix::isfloat ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 138 of file ov-perm.h.

◆ isnumeric()

bool octave_perm_matrix::isnumeric ( ) const
inlinevirtual

Reimplemented from octave_base_value.

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

◆ isreal()

bool octave_perm_matrix::isreal ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 134 of file ov-perm.h.

◆ issorted()

sortmode octave_perm_matrix::issorted ( sortmode  mode = UNSORTED) const
inlinevirtual

Reimplemented from octave_base_value.

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

◆ load_ascii()

bool octave_perm_matrix::load_ascii ( std::istream &  is)
virtual

Reimplemented from octave_base_value.

Definition at line 348 of file ov-perm.cc.

References error(), extract_keyword(), m_dense_cache, m_matrix, n, and octave_base_value::octave_value.

◆ load_binary()

bool octave_perm_matrix::load_binary ( std::istream &  is,
bool  swap,
octave::mach_info::float_format  fmt 
)
virtual

Reimplemented from octave_base_value.

Definition at line 389 of file ov-perm.cc.

References m, m_matrix, swap_bytes< 2 >(), swap_bytes< 4 >(), and swap_bytes< 8 >().

◆ map()

octave_value octave_perm_matrix::map ( unary_mapper_t  umap) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 253 of file ov-perm.h.

References octave_value::map().

◆ matrix_type() [1/2]

MatrixType octave_perm_matrix::matrix_type ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 93 of file ov-perm.h.

References MatrixType::Permuted_Diagonal.

◆ matrix_type() [2/2]

MatrixType octave_perm_matrix::matrix_type ( const MatrixType ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 94 of file ov-perm.h.

◆ matrix_value()

Matrix octave_perm_matrix::matrix_value ( bool  frc_str_conv = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 230 of file ov-perm.cc.

◆ nnz()

octave_idx_type octave_perm_matrix::nnz ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 79 of file ov-perm.h.

◆ numeric_conversion_function()

octave_base_value::type_conv_info octave_perm_matrix::numeric_conversion_function ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 493 of file ov-perm.cc.

◆ perm_matrix_value()

PermMatrix octave_perm_matrix::perm_matrix_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 151 of file ov-perm.h.

◆ permute()

octave_value octave_perm_matrix::permute ( const Array< int > &  vec,
bool  inv = false 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 84 of file ov-perm.h.

References octave_value::permute().

◆ print()

void octave_perm_matrix::print ( std::ostream &  os,
bool  pr_as_read_syntax = false 
)
virtual

Reimplemented from octave_base_value.

Definition at line 451 of file ov-perm.cc.

References octave_base_value::newline(), and print_raw().

◆ print_as_scalar()

bool octave_perm_matrix::print_as_scalar ( ) const
virtual

Reimplemented from octave_base_value.

Definition at line 443 of file ov-perm.cc.

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

◆ print_info()

void octave_perm_matrix::print_info ( std::ostream &  os,
const std::string &  prefix 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 466 of file ov-perm.cc.

References m_matrix, and PermMatrix::print_info().

◆ print_raw()

void octave_perm_matrix::print_raw ( std::ostream &  os,
bool  pr_as_read_syntax = false 
) const
virtual

Reimplemented from octave_base_value.

Definition at line 429 of file ov-perm.cc.

References octave_base_value::current_print_indent_level(), m_matrix, and octave_print_internal().

Referenced by print().

◆ register_type() [1/2]

void octave_perm_matrix::register_type ( )
static

Definition at line 482 of file ov-perm.cc.

◆ register_type() [2/2]

void octave_perm_matrix::register_type ( octave::type_info &  ti)
static

Definition at line 482 of file ov-perm.cc.

◆ reshape()

octave_value octave_perm_matrix::reshape ( const dim_vector new_dims) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 81 of file ov-perm.h.

References octave_value::reshape().

◆ resize()

octave_value octave_perm_matrix::resize ( const dim_vector dv,
bool  fill = false 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 87 of file ov-perm.h.

References octave_value::resize().

◆ save_ascii()

bool octave_perm_matrix::save_ascii ( std::ostream &  os)
virtual

Reimplemented from octave_base_value.

Definition at line 333 of file ov-perm.cc.

References PermMatrix::col_perm_vec(), m_matrix, n, Array< T, Alloc >::numel(), and PermMatrix::rows().

◆ save_binary()

bool octave_perm_matrix::save_binary ( std::ostream &  os,
bool  save_as_floats 
)
virtual

◆ scalar_value()

double octave_perm_matrix::scalar_value ( bool  frc_str_conv = false) const
inlinevirtual

Reimplemented from octave_base_value.

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

◆ short_disp()

void octave_perm_matrix::short_disp ( std::ostream &  os) const
virtual

◆ sort() [1/2]

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

Reimplemented from octave_base_value.

Definition at line 107 of file ov-perm.h.

References octave_value::sort().

◆ sort() [2/2]

octave_value octave_perm_matrix::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 105 of file ov-perm.h.

References octave_value::sort().

◆ sort_rows_idx()

Array<octave_idx_type> octave_perm_matrix::sort_rows_idx ( sortmode  mode = ASCENDING) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 114 of file ov-perm.h.

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

◆ sparse_bool_matrix_value()

SparseBoolMatrix octave_perm_matrix::sparse_bool_matrix_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 219 of file ov-perm.cc.

References m_matrix.

◆ sparse_complex_matrix_value()

SparseComplexMatrix octave_perm_matrix::sparse_complex_matrix_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 225 of file ov-perm.cc.

References sparse_matrix_value().

◆ sparse_matrix_value()

SparseMatrix octave_perm_matrix::sparse_matrix_value ( bool  = false) const
virtual

Reimplemented from octave_base_value.

Definition at line 213 of file ov-perm.cc.

References m_matrix.

Referenced by sparse_complex_matrix_value().

◆ squeeze()

octave_value octave_perm_matrix::squeeze ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 58 of file ov-perm.h.

◆ static_class_name()

static std::string octave_perm_matrix::static_class_name ( )
inlinestatic

Definition at line 268 of file ov-perm.h.

◆ static_type_id()

static int octave_perm_matrix::static_type_id ( )
inlinestatic

Definition at line 268 of file ov-perm.h.

◆ static_type_name()

static std::string octave_perm_matrix::static_type_name ( )
inlinestatic

Definition at line 268 of file ov-perm.h.

◆ subsref() [1/5]

octave_value octave_base_value::subsref

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

◆ subsref() [2/5]

octave_value octave_perm_matrix::subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx 
)
virtual

Reimplemented from octave_base_value.

Definition at line 45 of file ov-perm.cc.

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

◆ subsref() [3/5]

octave_value octave_base_value::subsref

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

◆ subsref() [4/5]

octave_value_list octave_base_value::subsref

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

◆ subsref() [5/5]

octave_value_list octave_perm_matrix::subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx,
int   
)
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 70 of file ov-perm.h.

◆ to_dense()

octave_value octave_perm_matrix::to_dense ( ) const
protectedvirtual

Definition at line 473 of file ov-perm.cc.

References octave_value::is_defined(), m_dense_cache, and m_matrix.

Referenced by as_mxArray(), convert_to_str_internal(), and write().

◆ try_narrowing_conversion()

octave_base_value * octave_perm_matrix::try_narrowing_conversion ( )
virtual

Reimplemented from octave_base_value.

Definition at line 555 of file ov-perm.cc.

References m_matrix, and PermMatrix::numel().

◆ type_id()

int octave_perm_matrix::type_id ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 268 of file ov-perm.h.

◆ type_name()

std::string octave_perm_matrix::type_name ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 268 of file ov-perm.h.

Referenced by complex_value(), double_value(), float_complex_value(), float_value(), and subsref().

◆ uint16_array_value()

uint16NDArray octave_perm_matrix::uint16_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 200 of file ov-perm.h.

Referenced by as_uint16().

◆ uint32_array_value()

uint32NDArray octave_perm_matrix::uint32_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 203 of file ov-perm.h.

Referenced by as_uint32().

◆ uint64_array_value()

uint64NDArray octave_perm_matrix::uint64_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

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

Referenced by as_uint64().

◆ uint8_array_value()

uint8NDArray octave_perm_matrix::uint8_array_value ( ) const
inlinevirtual

Reimplemented from octave_base_value.

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

Referenced by as_uint8().

◆ write()

int octave_perm_matrix::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

Reimplemented from octave_base_value.

Definition at line 458 of file ov-perm.cc.

References to_dense(), and octave_value::write().

Member Data Documentation

◆ m_dense_cache

octave_value octave_perm_matrix::m_dense_cache
mutableprotected

Definition at line 264 of file ov-perm.h.

Referenced by load_ascii(), and to_dense().

◆ m_matrix


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