Navigation

Operators and Keywords

Function List:

C++ API

octave_base_matrix< MT > Class Template Reference

#include <ov-base-mat.h>

Inherits octave_base_value.

Collaboration diagram for octave_base_matrix< MT >:

List of all members.


Public Member Functions

 octave_base_matrix (void)
 octave_base_matrix (const MT &m, const MatrixType &t=MatrixType())
 octave_base_matrix (const octave_base_matrix &m)
 ~octave_base_matrix (void)
octave_base_valueclone (void) const
octave_base_valueempty_clone (void) const
size_t byte_size (void) const
octave_value squeeze (void) const
octave_value full_value (void) const
void maybe_economize (void)
octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx)
octave_value_list subsref (const std::string &type, const std::list< octave_value_list > &idx, int)
octave_value subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
octave_value do_index_op (const octave_value_list &idx, bool resize_ok=false)
void assign (const octave_value_list &idx, const MT &rhs)
void assign (const octave_value_list &idx, typename MT::element_type rhs)
void delete_elements (const octave_value_list &idx)
dim_vector dims (void) const
octave_idx_type numel (void) const
octave_idx_type nnz (void) const
octave_value reshape (const dim_vector &new_dims) const
octave_value permute (const Array< int > &vec, bool inv=false) const
octave_value resize (const dim_vector &dv, bool fill=false) const
octave_value all (int dim=0) const
octave_value any (int dim=0) const
MatrixType matrix_type (void) const
MatrixType matrix_type (const MatrixType &_typ) const
octave_value diag (octave_idx_type k=0) const
octave_value sort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_value sort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
sortmode is_sorted (sortmode mode=UNSORTED) const
Array< octave_idx_typesort_rows_idx (sortmode mode=ASCENDING) const
sortmode is_sorted_rows (sortmode mode=UNSORTED) const
bool is_matrix_type (void) const
bool is_numeric_type (void) const
bool is_defined (void) const
bool is_constant (void) const
bool is_true (void) const
bool print_as_scalar (void) const
void print (std::ostream &os, bool pr_as_read_syntax=false) const
void print_info (std::ostream &os, const std::string &prefix) const
MT & matrix_ref (void)

Protected Member Functions

idx_vector set_idx_cache (const idx_vector &idx) const
void clear_cached_info (void) const

Protected Attributes

MT matrix
MatrixTypetyp
idx_vectoridx_cache

template<class MT>
class octave_base_matrix< MT >


Constructor & Destructor Documentation

template<class MT>
octave_base_matrix< MT >::octave_base_matrix ( void   )  [inline]

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

template<class MT>
octave_base_matrix< MT >::octave_base_matrix ( const octave_base_matrix< MT > &  m  )  [inline]

template<class MT>
octave_base_matrix< MT >::~octave_base_matrix ( void   )  [inline]


Member Function Documentation

template<class MT>
octave_value octave_base_matrix< MT >::all ( int  dim = 0  )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
octave_value octave_base_matrix< MT >::any ( int  dim = 0  )  const [inline, virtual]

Reimplemented from octave_base_value.

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

template<class MT>
void octave_base_matrix< MT >::assign ( const octave_value_list idx,
const MT &  rhs 
) [inline]

Reimplemented in octave_cell.

template<class MT>
size_t octave_base_matrix< MT >::byte_size ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
void octave_base_matrix< MT >::clear_cached_info ( void   )  const [inline, protected]

template<class MT >
void octave_base_matrix< MT >::delete_elements ( const octave_value_list idx  )  [inline]

Reimplemented in octave_cell.

template<class MT>
octave_value octave_base_matrix< MT >::diag ( octave_idx_type  k = 0  )  const [inline, virtual]

template<class MT>
dim_vector octave_base_matrix< MT >::dims ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT >
octave_value octave_base_matrix< MT >::do_index_op ( const octave_value_list idx,
bool  resize_ok = false 
) [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.

template<class MT>
octave_value octave_base_matrix< MT >::full_value ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
bool octave_base_matrix< MT >::is_constant ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
bool octave_base_matrix< MT >::is_defined ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
bool octave_base_matrix< MT >::is_matrix_type ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell, and octave_char_matrix_str.

template<class MT>
bool octave_base_matrix< MT >::is_numeric_type ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell, and octave_char_matrix_str.

template<class MT>
sortmode octave_base_matrix< MT >::is_sorted ( sortmode  mode = UNSORTED  )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
sortmode octave_base_matrix< MT >::is_sorted_rows ( sortmode  mode = UNSORTED  )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT >
bool octave_base_matrix< MT >::is_true ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
MT& octave_base_matrix< MT >::matrix_ref ( void   )  [inline]

template<class MT >
MatrixType octave_base_matrix< MT >::matrix_type ( const MatrixType _typ  )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
MatrixType octave_base_matrix< MT >::matrix_type ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
void octave_base_matrix< MT >::maybe_economize ( void   )  [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
octave_idx_type octave_base_matrix< MT >::nnz ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
octave_idx_type octave_base_matrix< MT >::numel ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
octave_value octave_base_matrix< MT >::permute ( const Array< int > &  vec,
bool  inv = false 
) const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.

template<class MT >
void octave_base_matrix< MT >::print ( std::ostream os,
bool  pr_as_read_syntax = false 
) const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT >
bool octave_base_matrix< MT >::print_as_scalar ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell, and octave_char_matrix_str.

template<class MT >
void octave_base_matrix< MT >::print_info ( std::ostream os,
const std::string prefix 
) const [inline, virtual]

Reimplemented from octave_base_value.

template<class MT>
octave_value octave_base_matrix< MT >::reshape ( const dim_vector new_dims  )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.

template<class MT >
octave_value octave_base_matrix< MT >::resize ( const dim_vector dv,
bool  fill = false 
) const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.

template<class MT>
idx_vector octave_base_matrix< MT >::set_idx_cache ( const idx_vector idx  )  const [inline, protected]

template<class MT>
octave_value octave_base_matrix< MT >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const [inline, virtual]

template<class MT>
octave_value octave_base_matrix< MT >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const [inline, virtual]

template<class MT>
Array<octave_idx_type> octave_base_matrix< MT >::sort_rows_idx ( sortmode  mode = ASCENDING  )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
octave_value octave_base_matrix< MT >::squeeze ( void   )  const [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.

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

Reimplemented from octave_base_value.

Reimplemented in octave_cell.

template<class MT>
octave_value_list octave_base_matrix< MT >::subsref ( const std::string type,
const std::list< octave_value_list > &  idx,
int   
) [inline, virtual]

Reimplemented from octave_base_value.

Reimplemented in octave_cell, and octave_cell.

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

Reimplemented from octave_base_value.

Reimplemented in octave_cell.


Member Data Documentation

template<class MT>
idx_vector* octave_base_matrix< MT >::idx_cache [mutable, protected]

template<class MT>
MT octave_base_matrix< MT >::matrix [protected]

template<class MT>
MatrixType* octave_base_matrix< MT >::typ [mutable, protected]


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