#include <ov-base-mat.h>
Inherits octave_base_value.
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) | |
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 |
int | ndims (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_type > | sort_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) |
const MT & | matrix_ref (void) const |
octave_value | fast_elem_extract (octave_idx_type n) const |
bool | fast_elem_insert (octave_idx_type n, const octave_value &x) |
Protected Member Functions | |
idx_vector | set_idx_cache (const idx_vector &idx) const |
void | clear_cached_info (void) const |
Protected Attributes | |
MT | matrix |
MatrixType * | typ |
idx_vector * | idx_cache |
octave_base_matrix< MT >::octave_base_matrix | ( | void | ) | [inline] |
octave_base_matrix< MT >::octave_base_matrix | ( | const MT & | m, | |
const MatrixType & | t = MatrixType () | |||
) | [inline] |
octave_base_matrix< MT >::octave_base_matrix | ( | const octave_base_matrix< MT > & | m | ) | [inline] |
octave_base_matrix< MT >::~octave_base_matrix | ( | void | ) | [inline] |
octave_value octave_base_matrix< MT >::all | ( | int | dim = 0 |
) | const [inline, virtual] |
Reimplemented from octave_base_value.
octave_value octave_base_matrix< MT >::any | ( | int | dim = 0 |
) | const [inline, virtual] |
Reimplemented from octave_base_value.
void octave_base_matrix< MT >::assign | ( | const octave_value_list & | idx, | |
typename MT::element_type | rhs | |||
) |
void octave_base_matrix< MT >::assign | ( | const octave_value_list & | idx, | |
const MT & | rhs | |||
) |
Reimplemented in octave_cell.
size_t octave_base_matrix< MT >::byte_size | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
void octave_base_matrix< MT >::clear_cached_info | ( | void | ) | const [inline, protected] |
void octave_base_matrix< MT >::delete_elements | ( | const octave_value_list & | idx | ) |
Reimplemented in octave_cell.
octave_value octave_base_matrix< MT >::diag | ( | octave_idx_type | k = 0 |
) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_complex_matrix, octave_float_complex_matrix, octave_float_matrix, octave_matrix, octave_char_matrix_str, and octave_char_matrix_sq_str.
dim_vector octave_base_matrix< MT >::dims | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
octave_value octave_base_matrix< MT >::do_index_op | ( | const octave_value_list & | idx, | |
bool | resize_ok = false | |||
) | [virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.
octave_value octave_base_matrix< MT >::fast_elem_extract | ( | octave_idx_type | n | ) | const [virtual] |
Reimplemented from octave_base_value.
bool octave_base_matrix< MT >::fast_elem_insert | ( | octave_idx_type | n, | |
const octave_value & | x | |||
) | [virtual] |
Reimplemented from octave_base_value.
octave_value octave_base_matrix< MT >::full_value | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
bool octave_base_matrix< MT >::is_constant | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
bool octave_base_matrix< MT >::is_defined | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
bool octave_base_matrix< MT >::is_matrix_type | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
bool octave_base_matrix< MT >::is_numeric_type | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_bool_matrix, octave_cell, and octave_char_matrix_str.
sortmode octave_base_matrix< MT >::is_sorted | ( | sortmode | mode = UNSORTED |
) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell, and octave_matrix.
sortmode octave_base_matrix< MT >::is_sorted_rows | ( | sortmode | mode = UNSORTED |
) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell, and octave_matrix.
bool octave_base_matrix< MT >::is_true | ( | void | ) | const [virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
MT& octave_base_matrix< MT >::matrix_ref | ( | void | ) | [inline] |
const MT& octave_base_matrix< MT >::matrix_ref | ( | void | ) | const [inline] |
MatrixType octave_base_matrix< MT >::matrix_type | ( | const MatrixType & | _typ | ) | const [virtual] |
Reimplemented from octave_base_value.
MatrixType octave_base_matrix< MT >::matrix_type | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
void octave_base_matrix< MT >::maybe_economize | ( | void | ) | [inline, virtual] |
Reimplemented from octave_base_value.
int octave_base_matrix< MT >::ndims | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
octave_idx_type octave_base_matrix< MT >::nnz | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
octave_idx_type octave_base_matrix< MT >::numel | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
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.
void octave_base_matrix< MT >::print | ( | std::ostream & | os, | |
bool | pr_as_read_syntax = false | |||
) | const [virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
bool octave_base_matrix< MT >::print_as_scalar | ( | void | ) | const [virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell, and octave_char_matrix_str.
void octave_base_matrix< MT >::print_info | ( | std::ostream & | os, | |
const std::string & | prefix | |||
) | const [virtual] |
Reimplemented from octave_base_value.
octave_value octave_base_matrix< MT >::reshape | ( | const dim_vector & | new_dims | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_matrix, octave_char_matrix_str, and octave_char_matrix_sq_str.
octave_value octave_base_matrix< MT >::resize | ( | const dim_vector & | dv, | |
bool | fill = false | |||
) | const [virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_char_matrix_str, and octave_char_matrix_sq_str.
idx_vector octave_base_matrix< MT >::set_idx_cache | ( | const idx_vector & | idx | ) | const [inline, protected] |
octave_value octave_base_matrix< MT >::sort | ( | octave_idx_type | dim = 0 , |
|
sortmode | mode = ASCENDING | |||
) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell, octave_matrix, octave_char_matrix_str, and octave_char_matrix_sq_str.
octave_value octave_base_matrix< MT >::sort | ( | Array< octave_idx_type > & | sidx, | |
octave_idx_type | dim = 0 , |
|||
sortmode | mode = ASCENDING | |||
) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell, octave_matrix, octave_char_matrix_str, and octave_char_matrix_sq_str.
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, and octave_matrix.
octave_value octave_base_matrix< MT >::squeeze | ( | void | ) | const [inline, virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_matrix, octave_char_matrix_str, and octave_char_matrix_sq_str.
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.
Reimplemented in octave_cell.
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.
octave_value octave_base_matrix< MT >::subsref | ( | const std::string & | type, | |
const std::list< octave_value_list > & | idx | |||
) | [virtual] |
Reimplemented from octave_base_value.
Reimplemented in octave_cell.
idx_vector* octave_base_matrix< MT >::idx_cache [mutable, protected] |
MT octave_base_matrix< MT >::matrix [protected] |
MatrixType* octave_base_matrix< MT >::typ [mutable, protected] |