#include "Cell.h"
Public Types | |
typedef bool(* | compare_fcn_type) (typename ref_param< octave_value >::type, typename ref_param< octave_value >::type) |
typedef ref_param< octave_value >::type | crefT |
typedef octave_value | element_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) More... | |
typedef octave_value | value_type |
Public Member Functions | |
Cell (const Array< octave_value > &c) | |
Cell (const Array< octave_value > &c, octave_idx_type nr, octave_idx_type nc) | |
Cell (const Array< std::string > &sa) | |
template<typename V , template< typename... > class C> | |
Cell (const C< V > &container) | |
Cell (const Cell &c)=default | |
Cell (const dim_vector &dv, const octave_value &val=Matrix()) | |
Cell (const dim_vector &dv, const string_vector &sv, bool trim=false) | |
Cell (const octave_value &val) | |
Cell (const octave_value_list &ovl) | |
Cell (const std::list< std::string > &sl) | |
Cell (const string_vector &sv, bool trim=false) | |
Cell (octave_idx_type n, octave_idx_type m, const octave_value &val=Matrix()) | |
Cell (void)=default | |
~Cell (void)=default | |
boolMatrix | all (int=0) const |
boolMatrix | any (int=0) const |
bool | any_element_is_nan (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | as_column (void) const |
Return the array as a column vector. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | as_matrix (void) const |
Return the array as a matrix. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | as_row (void) const |
Return the array as a row vector. More... | |
void | assign (const octave_value_list &idx, const Cell &rhs, const octave_value &fill_val=Matrix()) |
Array< std::string > | cellstr_value (void) const |
OCTARRAY_API void | clear (const dim_vector &dv) |
void | clear (octave_idx_type r, octave_idx_type c) |
OCTARRAY_API void | clear (void) |
Cell | column (octave_idx_type i) const |
Cell | concat (const Cell &rb, const Array< octave_idx_type > &ra_idx) |
void | delete_elements (const octave_value_list &idx) |
Cell | diag (octave_idx_type k=0) const |
Cell | diag (octave_idx_type m, octave_idx_type n) const |
OCTARRAY_API void | fill (const octave_value &val) |
OCTINTERP_API Array< octave_idx_type > | find (octave_idx_type, bool) const |
OCTAVE_API Array< octave_idx_type > | find (octave_idx_type, bool) const |
Cell | index (const octave_value_list &idx, bool resize_ok=false) const |
Cell & | insert (const Cell &a, const Array< octave_idx_type > &ra_idx) |
Cell & | insert (const Cell &a, octave_idx_type r, octave_idx_type c) |
OCTINTERP_API sortmode | is_sorted_rows (sortmode) const |
OCTAVE_API sortmode | is_sorted_rows (sortmode) const |
bool | is_true (void) const |
bool | iscellstr (void) const |
OCTAVE_API sortmode | issorted (sortmode mode) const |
OCTINTERP_API sortmode | issorted (sortmode) const |
OCTAVE_API sortmode | issorted (sortmode) const |
OCTINTERP_API Array< octave_idx_type > | lookup (const Array< octave::cdef_object > &, sortmode) const |
OCTAVE_API Array< octave_idx_type > | lookup (const Array< octave::idx_vector > &, sortmode) const |
OCTINTERP_API octave_idx_type | lookup (octave::cdef_object const &, sortmode) const |
OCTAVE_API octave_idx_type | lookup (octave::idx_vector const &, sortmode) const |
OCTARRAY_OVERRIDABLE_FUNC_API void | make_unique (void) |
octave_idx_type | nnz (void) const |
OCTINTERP_API Array< octave::cdef_object > | nth_element (const octave::idx_vector &, int) const |
OCTAVE_API Array< octave::idx_vector > | nth_element (const octave::idx_vector &, int) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | numel (void) const |
Number of elements in the array. More... | |
Cell & | operator= (const Cell &c)=default |
Cell | reshape (const dim_vector &new_dims) const |
octave_value | resize_fill_value (void) const |
Size of the specified dimension. More... | |
OCTINTERP_API Array< octave::cdef_object > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
OCTAVE_API Array< octave::idx_vector > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
OCTINTERP_API Array< octave::cdef_object > | sort (int, sortmode) const |
OCTAVE_API Array< octave::idx_vector > | sort (int, sortmode) const |
OCTINTERP_API Array< octave_idx_type > | sort_rows_idx (sortmode) const |
OCTAVE_API Array< octave_idx_type > | sort_rows_idx (sortmode) const |
string_vector | string_vector_value (void) const |
Cell | xisalnum (void) const |
Cell | xisalpha (void) const |
Cell | xisascii (void) const |
Cell | xiscntrl (void) const |
Cell | xisdigit (void) const |
Cell | xisgraph (void) const |
Cell | xislower (void) const |
Cell | xisprint (void) const |
Cell | xispunct (void) const |
Cell | xisspace (void) const |
Cell | xisupper (void) const |
Cell | xisxdigit (void) const |
Cell | xtolower (void) const |
Cell | xtoupper (void) const |
First dimension | |
Get the first dimension of the array (number of rows) | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | dim1 (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | rows (void) const |
Second dimension | |
Get the second dimension of the array (number of columns) | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | dim2 (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | cols (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | columns (void) const |
Protected Attributes | |
dim_vector | m_dimensions |
Array< octave_value, Alloc >::ArrayRep * | m_rep |
octave_value * | m_slice_data |
octave_idx_type | m_slice_len |
Private Types | |
typedef octave_value(octave_value::* | ctype_mapper) (void) const |
Private Member Functions | |
OCTINTERP_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
Cell | map (ctype_mapper) const |
Static Private Member Functions | |
static OCTARRAY_API Array< octave_value, Alloc >::ArrayRep * | nil_rep (void) |
Third dimension | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | dim3 (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | pages (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API size_type | size (const size_type d) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API std::size_t | byte_size (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API const dim_vector & | dims (void) const |
Return a const-reference so that dims ()(i) works efficiently. More... | |
OCTARRAY_API Array< octave_value, Alloc > | squeeze (void) const |
Chop off leading singleton dimensions. More... | |
OCTARRAY_API octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_API octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_API octave_idx_type | compute_index (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | xelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | xelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | xelem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_API octave_value & | checkelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API octave_value & | checkelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_API octave_value & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_API octave_value & | checkelem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | elem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | elem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | elem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | operator() (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | operator() (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_value & | operator() (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
OCTARRAY_API Array< octave_value, Alloc > | linear_slice (octave_idx_type lo, octave_idx_type up) const |
Extract a slice from this array as a column vector: A(:)(lo+1:up). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | ipermute (const Array< octave_idx_type > &vec) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | issquare (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | isempty (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | isvector (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | is_nd_vector (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | transpose (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | hermitian (octave_value(*fcn)(const octave_value &)=nullptr) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API const octave_value * | data (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API octave_value * | fortran_vec (void) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | is_shared (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API int | ndims (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. More... | |
OCTARRAY_API Array< octave_value, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | index (const octave::idx_vector &i, bool resize_ok, const octave_value &rfv) const |
Indexing with possible resizing and fill. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const octave_value &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok, const octave_value &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< octave_value, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize2 (octave_idx_type nr, octave_idx_type nc, const octave_value &rfv) |
Resizing (with fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize2 (octave_idx_type nr, octave_idx_type nc) |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize1 (octave_idx_type n, const octave_value &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize1 (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize (const dim_vector &dv, const octave_value &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize (const dim_vector &dv) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const Array< octave_value, Alloc > &rhs, const octave_value &rfv) |
Indexed assignment (always with resize & fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const Array< octave_value, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< octave_value, Alloc > &rhs, const octave_value &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< octave_value, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const Array< octave::idx_vector > &ia, const Array< octave_value, Alloc > &rhs, const octave_value &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const Array< octave::idx_vector > &ia, const Array< octave_value, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | delete_elements (const octave::idx_vector &i) |
Deleting elements. More... | |
OCTARRAY_API void | delete_elements (int dim, const octave::idx_vector &i) |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon) More... | |
OCTARRAY_API void | delete_elements (const Array< octave::idx_vector > &ia) |
Dispatcher to the above two. More... | |
OCTARRAY_API Array< octave_value, Alloc > & | insert (const Array< octave_value, Alloc > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
OCTARRAY_API Array< octave_value, Alloc > & | insert (const Array< octave_value, Alloc > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | maybe_economize (void) |
Size of the specified dimension. More... | |
OCTARRAY_API void | print_info (std::ostream &os, const std::string &prefix) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< octave_value, Alloc > | sort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API sortmode | issorted (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
OCTARRAY_API Array< octave_idx_type > | sort_rows_idx (sortmode mode=ASCENDING) const |
Sort by rows returns only indices. More... | |
OCTARRAY_API sortmode | is_sorted_rows (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
OCTARRAY_API octave_idx_type | lookup (const octave_value &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
OCTARRAY_API Array< octave_idx_type > | lookup (const Array< octave_value, Alloc > &values, sortmode mode=UNSORTED) const |
Ditto, but for an array of values, specializing on the case when values are sorted. More... | |
OCTARRAY_API Array< octave_idx_type > | find (octave_idx_type n=-1, bool backward=false) const |
Find indices of (at most n) nonzero elements. More... | |
OCTARRAY_API Array< octave_value, Alloc > | nth_element (const octave::idx_vector &n, int dim=0) const |
Returns the n-th element in increasing order, using the same ordering as used for sort. More... | |
Array< U, A > | map (F fcn) const |
Apply function fcn to each element of the Array<T, Alloc>. More... | |
Array< U, A > | map (U(&fcn)(octave_value)) const |
Overloads for function references. More... | |
Array< U, A > | map (U(&fcn)(const octave_value &)) const |
Size of the specified dimension. More... | |
bool | test (F fcn) const |
Generic any/all test functionality with arbitrary predicate. More... | |
bool | test_any (F fcn) const |
Simpler calls. More... | |
bool | test_any (bool(&fcn)(octave_value)) const |
Overloads for function references. More... | |
bool | test_any (bool(&fcn)(const octave_value &)) const |
Size of the specified dimension. More... | |
bool | test_all (F fcn) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(octave_value)) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(const octave_value &)) const |
Size of the specified dimension. More... | |
OCTARRAY_API bool | optimize_dimensions (const dim_vector &dv) |
Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv. More... | |
static OCTARRAY_API void | instantiation_guard () |
Size of the specified dimension. More... | |
static OCTARRAY_API Array< octave_value, Alloc > | cat (int dim, octave_idx_type n, const Array< octave_value, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
|
inherited |
|
inherited |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
default |
|
default |
|
default |
|
inline |
Cell::Cell | ( | const octave_value_list & | ovl | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Cell::Cell | ( | const string_vector & | sv, |
bool | trim = false |
||
) |
Definition at line 41 of file Cell.cc.
References Array< octave_value >::elem(), n, string_vector::numel(), and Array< octave_value >::resize().
|
inlineexplicit |
Definition at line 78 of file Cell.h.
References elem, n, and octave_value_list::resize().
Cell::Cell | ( | const std::list< std::string > & | sl | ) |
Definition at line 66 of file Cell.cc.
References Array< octave_value >::fortran_vec(), n, and Array< octave_value >::resize().
Cell::Cell | ( | const Array< std::string > & | sa | ) |
Definition at line 83 of file Cell.cc.
References Array< T, Alloc >::data(), Array< octave_value >::fortran_vec(), n, and Array< T, Alloc >::numel().
Cell::Cell | ( | const dim_vector & | dv, |
const string_vector & | sv, | ||
bool | trim = false |
||
) |
Definition at line 98 of file Cell.cc.
References Array< octave_value >::elem(), len, m, n, Array< octave_value >::numel(), and string_vector::numel().
|
inline |
Definition at line 127 of file Cell.h.
References boolMatrix.
|
inline |
Definition at line 130 of file Cell.h.
References boolMatrix.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 763 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Indexed assignment (always with resize & fill).
Definition at line 745 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 753 of file Array-base.cc.
void Cell::assign | ( | const octave_value_list & | idx, |
const Cell & | rhs, | ||
const octave_value & | fill_val = Matrix () |
||
) |
Definition at line 242 of file Cell.cc.
References Array< T, Alloc >::assign(), len, octave_value_list::length(), and ra_idx.
Referenced by octave_map::assign().
|
inlineinherited |
|
staticinherited |
Concatenation along a specified (0-based) dimension, equivalent to cat().
dim = -1 corresponds to dim = 0 and dim = -2 corresponds to dim = 1, but apply the looser matching rules of vertcat/horzcat.
Definition at line 854 of file Array-base.cc.
Array< std::string > Cell::cellstr_value | ( | void | ) | const |
Definition at line 145 of file Cell.cc.
References Array< octave_value >::dims(), Array< octave_value >::elem(), n, Array< octave_value >::numel(), octave_value::string_value(), and Array< T, Alloc >::xelem().
Referenced by octave_cell::cellstr_value(), F__event_manager_input_dialog__(), and F__event_manager_list_dialog__().
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 560 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 593 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 556 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 588 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 558 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 590 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 554 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 586 of file Array-base.cc.
|
inherited |
Definition at line 407 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Definition at line 406 of file Array-base.cc.
|
inlineinherited |
Cell Cell::column | ( | octave_idx_type | i | ) | const |
Definition at line 303 of file Cell.cc.
References Array< octave_value >::cols(), Array< octave_value >::elem(), error(), Array< octave_value >::ndims(), Array< T, Alloc >::resize(), Array< octave_value >::rows(), and Array< T, Alloc >::xelem().
Referenced by call_stack::backtrace(), and error_system::make_stack_map().
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 514 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 510 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 512 of file Array-base.cc.
|
inlineinherited |
Cell Cell::concat | ( | const Cell & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
|
inlineinherited |
|
inherited |
Dispatcher to the above two.
Definition at line 781 of file Array-base.cc.
|
inherited |
Deleting elements.
A(I) = [] (with a single subscript)
Definition at line 775 of file Array-base.cc.
void Cell::delete_elements | ( | const octave_value_list & | idx | ) |
Definition at line 268 of file Cell.cc.
References Array< T, Alloc >::delete_elements(), len, octave_value_list::length(), and ra_idx.
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
Definition at line 778 of file Array-base.cc.
Cell Cell::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 365 of file Cell.cc.
References Array< T, Alloc >::diag().
Cell Cell::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 371 of file Cell.cc.
References Array< T, Alloc >::diag(), m, and n.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 404 of file Array-base.cc.
|
inherited |
Find indices of (at most n) nonzero elements.
If n is specified, backward specifies search from backward.
Definition at line 835 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 672 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 661 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 686 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 733 of file Array-base.cc.
|
inherited |
Indexing without resizing.
Definition at line 682 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Indexing with possible resizing and fill.
Definition at line 715 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 684 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 723 of file Array-base.cc.
Cell Cell::index | ( | const octave_value_list & | idx, |
bool | resize_ok = false |
||
) | const |
Definition at line 171 of file Cell.cc.
References Array< T, Alloc >::index(), octave_value_list::length(), n, and warn_empty_index().
Referenced by bp_table::dbstop_process_map_args(), Fcell2struct(), octave_cell::subsasgn(), octave_struct::subsasgn(), octave_class::subsasgn_common(), octave_struct::subsref(), and octave_class::subsref().
|
inherited |
Insert an array into another at a specified position.
If size (a) is [d1 d2 ... dN] and idx is [i1 i2 ... iN], this method is equivalent to x(i1:i1+d1-1, i2:i2+d2-1, ... , iN:iN+dN-1) = a.
Definition at line 789 of file Array-base.cc.
|
inherited |
This is just a special case for idx = [r c 0 ...].
Definition at line 793 of file Array-base.cc.
Cell & Cell::insert | ( | const Cell & | a, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 337 of file Cell.cc.
References Array< T, Alloc >::insert(), and ra_idx.
Cell & Cell::insert | ( | const Cell & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 330 of file Cell.cc.
References Array< T, Alloc >::insert(), and r.
Referenced by concat(), octave_map::concat(), and Fdbstop().
|
privateinherited |
Definition at line 53 of file Array-tc.cc.
|
privateinherited |
Definition at line 98 of file Array-C.cc.
|
privateinherited |
Definition at line 169 of file Array-f.cc.
|
privateinherited |
Definition at line 98 of file Array-fC.cc.
|
privateinherited |
Definition at line 55 of file Array-i.cc.
|
privateinherited |
Definition at line 58 of file Array-i.cc.
|
privateinherited |
Definition at line 71 of file Array-i.cc.
|
privateinherited |
Definition at line 72 of file Array-i.cc.
|
privateinherited |
Definition at line 73 of file Array-i.cc.
|
privateinherited |
Definition at line 74 of file Array-i.cc.
|
privateinherited |
Definition at line 84 of file Array-i.cc.
|
privateinherited |
Definition at line 85 of file Array-i.cc.
|
privateinherited |
Definition at line 86 of file Array-i.cc.
|
privateinherited |
Definition at line 87 of file Array-i.cc.
|
privateinherited |
Definition at line 94 of file Array-i.cc.
|
privateinherited |
Definition at line 95 of file Array-i.cc.
|
privateinherited |
Definition at line 96 of file Array-i.cc.
|
privateinherited |
Definition at line 97 of file Array-i.cc.
|
privateinherited |
Definition at line 45 of file Array-idx-vec.cc.
|
privateinherited |
Definition at line 48 of file Array-s.cc.
|
staticprivateinherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 955 of file Array-base.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Ordering is auto-detected or can be specified.
Definition at line 819 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
bool Cell::iscellstr | ( | void | ) | const |
Definition at line 126 of file Cell.cc.
References Array< octave_value >::elem(), n, and Array< octave_value >::numel().
Referenced by do_strcmp_fcn(), Fstrrep(), and octave_cell::iscellstr().
|
inlineinherited |
|
inherited |
Definition at line 101 of file Array-f.cc.
Ordering is auto-detected or can be specified.
Definition at line 813 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Extract a slice from this array as a column vector: A(:)(lo+1:up).
Must be 0 <= lo && up <= numel. May be up < lo.
Definition at line 632 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Ditto, but for an array of values, specializing on the case when values are sorted.
NaNs get the value N.
Definition at line 827 of file Array-base.cc.
|
inherited |
Do a binary lookup in a sorted array.
Must not contain NaNs. Mode can be specified or is auto-detected by comparing 1st and last element.
Definition at line 823 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inlineinherited |
|
private |
Definition at line 344 of file Cell.cc.
References Array< octave_value >::data(), Array< octave_value >::dims(), Array< T, Alloc >::fortran_vec(), Array< octave_value >::numel(), and r.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
staticprivateinherited |
Definition at line 270 of file Array-base.cc.
octave_idx_type Cell::nnz | ( | void | ) | const |
Definition at line 291 of file Cell.cc.
References err_wrong_type_arg().
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Returns the n-th element in increasing order, using the same ordering as used for sort.
n can either be a scalar index or a contiguous range.
Definition at line 841 of file Array-base.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv.
This is useful for maintaining several arrays with supposedly equal dimensions (e.g. structs in the interpreter).
Definition at line 952 of file Array-base.cc.
|
inherited |
Extract page: A(:,:,k+1).
Definition at line 627 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 643 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 806 of file Array-base.cc.
|
inline |
Definition at line 119 of file Cell.h.
References Array< T, Alloc >::reshape().
Referenced by Fcell2struct(), octave_cell::subsasgn(), octave_struct::subsasgn(), and octave_class::subsasgn_common().
|
inlineinherited |
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 703 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 699 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Resizing (with fill).
Definition at line 693 of file Array-base.cc.
|
virtual |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Reimplemented from Array< octave_value >.
Definition at line 358 of file Cell.cc.
References octave_value().
|
inlineinherited |
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 809 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 808 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Sort by rows returns only indices.
Definition at line 816 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Chop off leading singleton dimensions.
Definition at line 507 of file Array-base.cc.
string_vector Cell::string_vector_value | ( | void | ) | const |
Definition at line 158 of file Cell.cc.
References Array< octave_value >::elem(), n, Array< octave_value >::numel(), octave_value::string_value(), and string_vector::xelem().
Referenced by Fnum2hex(), and octave_cell::string_vector_value().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 660 of file Array-base.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 147 of file Cell.h.
References octave_value::xisalnum().
|
inline |
Definition at line 148 of file Cell.h.
References octave_value::xisalpha().
|
inline |
Definition at line 149 of file Cell.h.
References octave_value::xisascii().
|
inline |
Definition at line 150 of file Cell.h.
References octave_value::xiscntrl().
|
inline |
Definition at line 151 of file Cell.h.
References octave_value::xisdigit().
|
inline |
Definition at line 152 of file Cell.h.
References octave_value::xisgraph().
|
inline |
Definition at line 153 of file Cell.h.
References octave_value::xislower().
|
inline |
Definition at line 154 of file Cell.h.
References octave_value::xisprint().
|
inline |
Definition at line 155 of file Cell.h.
References octave_value::xispunct().
|
inline |
Definition at line 156 of file Cell.h.
References octave_value::xisspace().
|
inline |
Definition at line 157 of file Cell.h.
References octave_value::xisupper().
|
inline |
Definition at line 158 of file Cell.h.
References octave_value::xisxdigit().
|
inline |
Definition at line 159 of file Cell.h.
References octave_value::xtolower().
|
inline |
Definition at line 160 of file Cell.h.
References octave_value::xtoupper().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |