#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 (void) | |
Cell (const octave_value &val) | |
Cell (const octave_value_list &ovl) | |
Cell (octave_idx_type n, octave_idx_type m, const octave_value &val=Matrix()) | |
Cell (const dim_vector &dv, const octave_value &val=Matrix()) | |
Cell (const Array< octave_value > &c) | |
Cell (const Array< octave_value > &c, octave_idx_type nr, octave_idx_type nc) | |
Cell (const string_vector &sv, bool trim=false) | |
template<typename V , template< typename... > class C> | |
Cell (const C< V > &container) | |
Cell (const Array< std::string > &sa) | |
Cell (const dim_vector &dv, const string_vector &sv, bool trim=false) | |
Cell (const Cell &c) | |
boolMatrix | all (int=0) const |
boolMatrix | any (int=0) const |
bool | any_element_is_nan (void) const |
Array< octave_value > | as_column (void) const |
Return the array as a column vector. More... | |
Array< octave_value > | as_matrix (void) const |
Return the array as a matrix. More... | |
Array< octave_value > | 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()) |
size_t | byte_size (void) const |
Array< std::string > | cellstr_value (void) const |
octave_value & | checkelem (octave_idx_type n) |
octave_value & | checkelem (octave_idx_type i, octave_idx_type j) |
octave_value & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
octave_value & | checkelem (const Array< octave_idx_type > &ra_idx) |
crefT | checkelem (octave_idx_type n) const |
crefT | checkelem (octave_idx_type i, octave_idx_type j) const |
crefT | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
crefT | checkelem (const Array< octave_idx_type > &ra_idx) const |
void | clear (void) |
void | clear (const dim_vector &dv) |
void | clear (octave_idx_type r, octave_idx_type c) |
Cell | column (octave_idx_type i) const |
octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j) const |
octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
octave_idx_type | compute_index (const Array< octave_idx_type > &ra_idx) const |
octave_idx_type | compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const |
Cell | concat (const Cell &rb, const Array< octave_idx_type > &ra_idx) |
const octave_value * | data (void) const |
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 |
const dim_vector & | dims (void) const |
Return a const-reference so that dims ()(i) works efficiently. More... | |
octave_value & | elem (octave_idx_type n) |
octave_value & | elem (octave_idx_type i, octave_idx_type j) |
octave_value & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
octave_value & | elem (const Array< octave_idx_type > &ra_idx) |
crefT | elem (octave_idx_type n) const |
crefT | elem (octave_idx_type i, octave_idx_type j) const |
crefT | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
crefT | elem (const Array< octave_idx_type > &ra_idx) const |
void | fill (const octave_value &val) |
Array< octave_idx_type > | find (octave_idx_type, bool) const |
Array< octave_idx_type > | find (octave_idx_type n=-1, bool backward=false) const |
Find indices of (at most n) nonzero elements. More... | |
const octave_value * | fortran_vec (void) const |
octave_value * | fortran_vec (void) |
Array< octave_value > | hermitian (octave_value(*fcn)(const octave_value &)=nullptr) const |
Cell | index (const octave_value_list &idx, bool resize_ok=false) const |
Cell & | insert (const Cell &a, octave_idx_type r, octave_idx_type c) |
Cell & | insert (const Cell &a, const Array< octave_idx_type > &ra_idx) |
Array< octave_value > & | insert (const Array< octave_value > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
Array< octave_value > & | insert (const Array< octave_value > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. More... | |
Array< octave_value > | ipermute (const Array< octave_idx_type > &vec) const |
bool | is_empty (void) const |
bool | is_nd_vector (void) const |
bool | is_shared (void) |
sortmode | is_sorted (sortmode mode=UNSORTED) const |
sortmode | is_sorted_rows (sortmode) const |
sortmode | is_sorted_rows (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
bool | is_square (void) const |
bool | is_true (void) const |
bool | is_vector (void) const |
bool | iscellstr (void) const |
bool | isempty (void) const |
sortmode | issorted (sortmode) const |
sortmode | issorted (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
bool | issquare (void) const |
bool | isvector (void) const |
Array< octave_value > | 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... | |
octave_idx_type | lookup (idx_vector const &, sortmode) const |
Array< octave_idx_type > | lookup (const Array< idx_vector > &, sortmode) const |
octave_idx_type | lookup (const octave_value &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
Array< octave_idx_type > | lookup (const Array< octave_value > &values, sortmode mode=UNSORTED) const |
Ditto, but for an array of values, specializing on the case when values are sorted. More... | |
void | make_unique (void) |
Array< U > | map (F fcn) const |
Apply function fcn to each element of the Array<T>. More... | |
void | maybe_economize (void) |
void * | mex_get_data (void) const |
Give a pointer to the data in mex format. More... | |
int | ndims (void) const |
octave_idx_type | nnz (void) const |
Array< idx_vector > | nth_element (const idx_vector &, int) const |
Array< octave_value > | nth_element (const idx_vector &n, int dim=0) const |
Returns the n-th element in increasing order, using the same ordering as used for sort. More... | |
octave_value & | operator() (octave_idx_type n) |
octave_value & | operator() (octave_idx_type i, octave_idx_type j) |
octave_value & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
octave_value & | operator() (const Array< octave_idx_type > &ra_idx) |
crefT | operator() (octave_idx_type n) const |
crefT | operator() (octave_idx_type i, octave_idx_type j) const |
crefT | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
crefT | operator() (const Array< octave_idx_type > &ra_idx) const |
bool | optimize_dimensions (const dim_vector &dv) |
Returns true if this->dims () == dv, and if so, replaces this->dimensions by a shallow copy of dv. More... | |
Array< octave_value > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
Array< octave_value > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
void | print_info (std::ostream &os, const std::string &prefix) const |
Cell | reshape (const dim_vector &new_dims) const |
Array< octave_value > | reshape (octave_idx_type nr, octave_idx_type nc) const |
octave_value | resize_fill_value (void) const |
size_type | size (const size_type d) const |
Size of the specified dimension. More... | |
Array< idx_vector > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
Array< idx_vector > | sort (int, sortmode) const |
Array< octave_value > | sort (int dim=0, sortmode mode=ASCENDING) const |
Array< octave_value > | sort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const |
Array< octave_idx_type > | sort_rows_idx (sortmode) const |
Array< octave_idx_type > | sort_rows_idx (sortmode mode=ASCENDING) const |
Sort by rows returns only indices. More... | |
Array< octave_value > | squeeze (void) const |
Chop off leading singleton dimensions. More... | |
string_vector | string_vector_value (void) const |
bool | test (F fcn) const |
Generic any/all test functionality with arbitrary predicate. More... | |
Array< octave_value > | transpose (void) const |
octave_value & | xelem (octave_idx_type n) |
crefT | xelem (octave_idx_type n) const |
octave_value & | xelem (octave_idx_type i, octave_idx_type j) |
crefT | xelem (octave_idx_type i, octave_idx_type j) const |
octave_value & | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
crefT | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
octave_value & | xelem (const Array< octave_idx_type > &ra_idx) |
crefT | xelem (const Array< octave_idx_type > &ra_idx) 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 |
octave_idx_type | capacity (void) const |
Number of elements in the array. More... | |
octave_idx_type | length (void) const |
Number of elements in the array. More... | |
octave_idx_type | nelem (void) const |
Number of elements in the array. More... | |
octave_idx_type | numel (void) const |
Number of elements in the array. More... | |
First dimension | |
Get the first dimension of the array (number of rows) | |
octave_idx_type | dim1 (void) const |
octave_idx_type | rows (void) const |
Second dimension | |
Get the second dimension of the array (number of columns) | |
octave_idx_type | dim2 (void) const |
octave_idx_type | cols (void) const |
octave_idx_type | columns (void) const |
Third dimension | |
Get the third dimension of the array (number of pages) | |
octave_idx_type | dim3 (void) const |
octave_idx_type | pages (void) const |
Array< octave_value > | index (const idx_vector &i) const |
Indexing without resizing. More... | |
Array< octave_value > | index (const idx_vector &i, const idx_vector &j) const |
Indexing without resizing. More... | |
Array< octave_value > | index (const Array< idx_vector > &ia) const |
Indexing without resizing. More... | |
Array< octave_value > | index (const idx_vector &i, bool resize_ok, const octave_value &rfv) const |
Indexing with possible resizing and fill. More... | |
Array< octave_value > | index (const idx_vector &i, bool resize_ok) const |
Indexing with possible resizing and fill. More... | |
Array< octave_value > | index (const idx_vector &i, const idx_vector &j, bool resize_ok, const octave_value &rfv) const |
Indexing with possible resizing and fill. More... | |
Array< octave_value > | index (const idx_vector &i, const idx_vector &j, bool resize_ok) const |
Indexing with possible resizing and fill. More... | |
Array< octave_value > | index (const Array< idx_vector > &ia, bool resize_ok, const octave_value &rfv) const |
Indexing with possible resizing and fill. More... | |
Array< octave_value > | index (const Array< idx_vector > &ia, bool resize_ok) const |
Indexing with possible resizing and fill. More... | |
void | resize2 (octave_idx_type nr, octave_idx_type nc, const octave_value &rfv) |
Resizing (with fill). More... | |
void | resize2 (octave_idx_type nr, octave_idx_type nc) |
Resizing (with fill). More... | |
void | resize1 (octave_idx_type n, const octave_value &rfv) |
Resizing (with fill). More... | |
void | resize1 (octave_idx_type n) |
Resizing (with fill). More... | |
void | resize (const dim_vector &dv, const octave_value &rfv) |
Resizing (with fill). More... | |
void | resize (const dim_vector &dv) |
Resizing (with fill). More... | |
void | assign (const idx_vector &i, const Array< octave_value > &rhs, const octave_value &rfv) |
Indexed assignment (always with resize & fill). More... | |
void | assign (const idx_vector &i, const Array< octave_value > &rhs) |
Indexed assignment (always with resize & fill). More... | |
void | assign (const idx_vector &i, const idx_vector &j, const Array< octave_value > &rhs, const octave_value &rfv) |
Indexed assignment (always with resize & fill). More... | |
void | assign (const idx_vector &i, const idx_vector &j, const Array< octave_value > &rhs) |
Indexed assignment (always with resize & fill). More... | |
void | assign (const Array< idx_vector > &ia, const Array< octave_value > &rhs, const octave_value &rfv) |
Indexed assignment (always with resize & fill). More... | |
void | assign (const Array< idx_vector > &ia, const Array< octave_value > &rhs) |
Indexed assignment (always with resize & fill). More... | |
void | delete_elements (const idx_vector &i) |
Deleting elements. More... | |
void | delete_elements (int dim, const idx_vector &i) |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon) More... | |
void | delete_elements (const Array< idx_vector > &ia) |
Dispatcher to the above two. More... | |
Array< U > | map (U(&fcn)(octave_value)) const |
Overloads for function references. More... | |
Array< U > | map (U(&fcn)(const octave_value &)) const |
Overloads for function references. More... | |
bool | test_any (F fcn) const |
Simpler calls. More... | |
bool | test_all (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 |
Overloads for function references. More... | |
bool | test_all (bool(&fcn)(octave_value)) const |
Overloads for function references. More... | |
bool | test_all (bool(&fcn)(const octave_value &)) const |
Overloads for function references. More... | |
int * | jit_ref_count (void) |
WARNING: Only call these functions from jit. More... | |
octave_value * | jit_slice_data (void) const |
WARNING: Only call these functions from jit. More... | |
octave_idx_type * | jit_dimensions (void) const |
WARNING: Only call these functions from jit. More... | |
void * | jit_array_rep (void) const |
WARNING: Only call these functions from jit. More... | |
Static Public Member Functions | |
static Array< octave_value > | cat (int dim, octave_idx_type n, const Array< octave_value > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
Protected Attributes | |
dim_vector | dimensions |
Array< octave_value >::ArrayRep * | rep |
octave_value * | slice_data |
octave_idx_type | slice_len |
Private Types | |
typedef octave_value(octave_value::* | ctype_mapper) (void) const |
Private Member Functions | |
Cell | map (ctype_mapper) const |
|
inherited |
|
inherited |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Cell::Cell | ( | const octave_value_list & | ovl | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Cell::Cell | ( | const string_vector & | sv, |
bool | trim = false |
||
) |
Definition at line 39 of file Cell.cc.
References Array< octave_value >::elem(), i, Array< T >::numel(), Array< octave_value >::resize(), s, and string.
Cell::Cell | ( | const Array< std::string > & | sa | ) |
Definition at line 64 of file Cell.cc.
References Array< T >::data(), Array< octave_value >::fortran_vec(), i, Array< T >::numel(), and string.
Cell::Cell | ( | const dim_vector & | dv, |
const string_vector & | sv, | ||
bool | trim = false |
||
) |
Definition at line 79 of file Cell.cc.
References Array< octave_value >::elem(), i, Array< octave_value >::numel(), Array< T >::numel(), s, and string.
|
inline |
|
inline |
|
inlineinherited |
Return the array as a column vector.
Definition at line 370 of file Array.h.
References dim_vector::ndims(), numel(), and retval.
|
inlineinherited |
Return the array as a matrix.
Definition at line 390 of file Array.h.
References dim_vector::ndims(), dim_vector::redim(), and retval.
|
inlineinherited |
Return the array as a row vector.
Definition at line 380 of file Array.h.
References dim_vector::ndims(), numel(), and retval.
void Cell::assign | ( | const octave_value_list & | idx, |
const Cell & | rhs, | ||
const octave_value & | fill_val = Matrix () |
||
) |
Definition at line 220 of file Cell.cc.
References Array< T >::assign(), e, i, octave_value_list::length(), and ra_idx.
Referenced by octave_map::assign().
|
inherited |
Indexed assignment (always with resize & fill).
Definition at line 1115 of file Array.cc.
References Array< T >::data(), Array< T >::dims(), octave::err_nonconformant(), i, numel(), Array< T >::numel(), and Array< T >::reshape().
|
inlineinherited |
|
inherited |
Indexed assignment (always with resize & fill).
Definition at line 1162 of file Array.cc.
References idx_vector::assign(), c, dim_vector::chop_all_singletons(), Array< T >::data(), Array< T >::dim1(), Array< T >::dim2(), Array< T >::dims(), dv, octave::err_nonconformant(), idx_vector::extent(), idx_vector::fill(), i, idx_vector::is_colon_equiv(), k, idx_vector::length(), idx_vector::maybe_reduce(), dim_vector::ndims(), numel(), Array< T >::numel(), dim_vector::redim(), Array< T >::reshape(), idx_vector::xelem(), dim_vector::zero_by_zero(), and zero_dims_inquire().
|
inlineinherited |
|
inherited |
Indexed assignment (always with resize & fill).
Definition at line 1266 of file Array.cc.
References dim_vector::alloc(), rec_index_helper::assign(), dim_vector::chop_all_singletons(), dim_vector::chop_trailing_singletons(), Array< T >::data(), Array< T >::dims(), dv, octave::err_nonconformant(), rec_index_helper::fill(), i, Array< T >::length(), dim_vector::ndims(), Array< T >::numel(), dim_vector::redim(), Array< T >::reshape(), dim_vector::zero_by_zero(), and zero_dims_inquire().
|
inlineinherited |
|
inlineinherited |
|
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 2631 of file Array.cc.
References octave_value::assign(), idx_vector::colon, dim_vector::concat(), Array< T >::dims(), dv, dim_vector::hvcat(), i, octave_value::isempty(), max(), dim_vector::ndims(), retval, u, and dim_vector::zero_by_zero().
Array< std::string > Cell::cellstr_value | ( | void | ) | const |
Definition at line 126 of file Cell.cc.
References Array< octave_value >::dims(), Array< octave_value >::elem(), i, Array< octave_value >::numel(), retval, and octave_value::string_value().
Referenced by octave_cell::cellstr_value(), string_array_property::do_set(), and F__octave_link_input_dialog__().
|
inherited |
Definition at line 191 of file Array.cc.
References elem, octave::err_index_out_of_range(), and octave::err_invalid_index().
|
inherited |
Definition at line 204 of file Array.cc.
References compute_index(), elem, and i.
|
inherited |
|
inherited |
Definition at line 218 of file Array.cc.
References compute_index(), elem, and ra_idx.
|
inherited |
Definition at line 225 of file Array.cc.
References elem, octave::err_index_out_of_range(), and octave::err_invalid_index().
|
inherited |
Definition at line 238 of file Array.cc.
References compute_index(), elem, and i.
|
inherited |
|
inherited |
Definition at line 253 of file Array.cc.
References compute_index(), elem, and ra_idx.
|
inherited |
|
inherited |
Definition at line 101 of file Array.cc.
References dim_vector::chop_trailing_singletons(), dv, and dim_vector::safe_numel().
|
inlineinherited |
|
inlineinherited |
Cell Cell::column | ( | octave_idx_type | i | ) | const |
Definition at line 281 of file Cell.cc.
References Array< octave_value >::cols(), Array< octave_value >::elem(), error(), i, Array< octave_value >::ndims(), octave_value::resize(), retval, and Array< octave_value >::rows().
|
inlineinherited |
|
inherited |
Definition at line 169 of file Array.cc.
References compute_index(), and i.
|
inherited |
Definition at line 176 of file Array.cc.
References compute_index(), i, and k.
|
inherited |
Definition at line 184 of file Array.cc.
References compute_index(), and ra_idx.
|
inlineinherited |
Definition at line 452 of file Array.h.
References dim_vector::compute_index(), octave_base_value::numel(), and ra_idx.
Cell Cell::concat | ( | const Cell & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
|
inlineinherited |
void Cell::delete_elements | ( | const octave_value_list & | idx | ) |
Definition at line 246 of file Cell.cc.
References Array< T >::delete_elements(), e, i, octave_value_list::length(), and ra_idx.
|
inherited |
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
Definition at line 1429 of file Array.cc.
References idx_vector::colon, octave::err_del_index_out_of_range(), i, k, tmp, and u.
|
inherited |
Dispatcher to the above two.
Definition at line 1485 of file Array.cc.
References dv, i, k, Array< T >::length(), and Array< T >::numel().
Cell Cell::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 343 of file Cell.cc.
References Array< T >::diag(), and k.
Cell Cell::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 349 of file Cell.cc.
References Array< T >::diag().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Return a const-reference so that dims ()(i) works efficiently.
Definition at line 442 of file Array.h.
Referenced by cellstr_value(), and map().
|
inlineinherited |
Definition at line 488 of file Array.h.
Referenced by Cell(), cellstr_value(), column(), iscellstr(), and string_vector_value().
|
inlineinherited |
Definition at line 494 of file Array.h.
References Array< T >::elem(), and i.
|
inlineinherited |
|
inlineinherited |
Definition at line 499 of file Array.h.
References Array< T >::elem(), and ra_idx.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 526 of file Array.h.
References ra_idx, and Array< T >::xelem().
|
inherited |
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Find indices of (at most n) nonzero elements.
If n is specified, backward specifies search from backward.
Definition at line 2227 of file Array.cc.
References dims, i, octave_value::isempty(), k, numel(), octave_value::numel(), retval, and zero().
|
inlineinherited |
|
inherited |
|
inherited |
Cell Cell::index | ( | const octave_value_list & | idx, |
bool | resize_ok = false |
||
) | const |
Definition at line 152 of file Cell.cc.
References e, i, Array< T >::index(), k, octave_value_list::length(), and retval.
Referenced by octave::bp_table::dbstop_process_map_args(), Fcell2struct(), octave_struct::subsasgn(), octave_cell::subsasgn(), and octave_class::subsasgn_common().
|
inherited |
Indexing without resizing.
Definition at line 697 of file Array.cc.
References dims, dv, octave::err_index_out_of_range(), i, dim_vector::is_nd_vector(), dim_vector::make_nd_vector(), numel(), retval, and u.
|
inherited |
Indexing without resizing.
Definition at line 764 of file Array.cc.
References c, dv, octave::err_index_out_of_range(), idx_vector::extent(), i, idx_vector::index(), idx_vector::is_colon(), idx_vector::is_cont_range(), k, idx_vector::length(), idx_vector::maybe_reduce(), numel(), dim_vector::redim(), retval, u, and idx_vector::xelem().
|
inherited |
Indexing without resizing.
Definition at line 822 of file Array.cc.
References dim_vector::alloc(), dim_vector::chop_trailing_singletons(), dv, octave::err_index_out_of_range(), i, rec_index_helper::index(), rec_index_helper::is_cont_range(), Array< T >::length(), Array< T >::numel(), dim_vector::redim(), retval, and u.
|
inherited |
|
inlineinherited |
|
inherited |
Indexing with possible resizing and fill.
Definition at line 1056 of file Array.cc.
References c, dv, idx_vector::extent(), i, idx_vector::is_scalar(), dim_vector::redim(), and tmp.
|
inlineinherited |
|
inherited |
Indexing with possible resizing and fill.
Definition at line 1084 of file Array.cc.
References dim_vector::alloc(), dv, i, Array< T >::numel(), dim_vector::redim(), and tmp.
|
inlineinherited |
Cell & Cell::insert | ( | const Cell & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 308 of file Cell.cc.
References a, c, and Array< T >::insert().
Referenced by concat(), and octave_map::concat().
Cell & Cell::insert | ( | const Cell & | a, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 315 of file Cell.cc.
References a, Array< T >::insert(), and ra_idx.
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 577 of file Array.h.
References dim_vector::is_nd_vector().
|
inlineinherited |
Definition at line 588 of file Array.h.
References Array< T >::ArrayRep::count.
|
inlineinherited |
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Ordering is auto-detected or can be specified.
Definition at line 2086 of file Array.cc.
References ASCENDING, c, DESCENDING, elem, i, octave_sort< T >::is_sorted_rows(), mode, safe_comparator(), octave_sort< T >::set_compare(), u, and UNSORTED.
|
inlineinherited |
|
inlineinherited |
Definition at line 574 of file Array.h.
References isvector().
bool Cell::iscellstr | ( | void | ) | const |
Definition at line 107 of file Cell.cc.
References Array< octave_value >::elem(), i, Array< octave_value >::numel(), and retval.
Referenced by octave_cell::iscellstr().
|
inlineinherited |
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Ordering is auto-detected or can be specified.
Definition at line 2033 of file Array.cc.
References ASCENDING, DESCENDING, elem, octave_sort< T >::issorted(), mode, numel(), safe_comparator(), octave_sort< T >::set_compare(), and UNSORTED.
|
inlineinherited |
|
inlineinherited |
Definition at line 571 of file Array.h.
References dim_vector::isvector().
|
inlineinherited |
WARNING: Only call these functions from jit.
Definition at line 854 of file Array.h.
References Array< T >::rep.
|
inlineinherited |
WARNING: Only call these functions from jit.
Definition at line 852 of file Array.h.
References Array< T >::dimensions, and dim_vector::to_jit().
|
inlineinherited |
WARNING: Only call these functions from jit.
Definition at line 848 of file Array.h.
References Array< T >::ArrayRep::count, octave::refcount< T >::get(), and Array< T >::rep.
|
inlineinherited |
WARNING: Only call these functions from jit.
Definition at line 850 of file Array.h.
References Array< T >::slice_data.
|
inlineinherited |
Number of elements in the array.
Synonymous with numel().
length
() at the Octave interpreter. At the Octave interpreter, the function length
() returns the length of the greatest dimension. This method returns the total number of elements. Definition at line 357 of file Array.h.
References numel().
|
inherited |
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Definition at line 39 of file Array-idx-vec.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 2147 of file Array.cc.
References ASCENDING, DESCENDING, octave_sort< T >::descending_compare(), elem, octave_sort< T >::lookup(), mode, numel(), octave_sort< T >::set_compare(), UNSORTED, and value.
|
inherited |
Ditto, but for an array of values, specializing on the case when values are sorted.
NaNs get the value N.
Definition at line 2168 of file Array.cc.
References ASCENDING, DESCENDING, octave_sort< T >::descending_compare(), elem, octave::math::log2(), octave_sort< T >::lookup(), octave_sort< T >::lookup_sorted(), mode, numel(), octave_sort< T >::set_compare(), UNSORTED, and values.
|
inlineinherited |
|
private |
Definition at line 322 of file Cell.cc.
References Array< octave_value >::data(), Array< octave_value >::dims(), fcn, i, Array< octave_value >::numel(), p, and retval.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 690 of file Array.h.
References Array< T >::ArrayRep::count, Array< T >::ArrayRep::data, and Array< T >::ArrayRep::len.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
octave_idx_type Cell::nnz | ( | void | ) | const |
Definition at line 269 of file Cell.cc.
References err_wrong_type_arg().
|
inherited |
Definition at line 39 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 2308 of file Array.cc.
References ASCENDING, dim_vector::chop_trailing_singletons(), idx_vector::class_range, idx_vector::class_scalar, idx_vector::class_vector, DESCENDING, dims, dv, Array< T >::fortran_vec(), i, idx_vector::idx_class(), idx_vector::increment(), Array< T >::isempty(), idx_vector::length(), max(), min(), mode, dim_vector::ndims(), nn, octave_sort< T >::nth_element(), numel(), OCTAVE_LOCAL_BUFFER, dim_vector::resize(), octave_sort< T >::set_compare(), tmp, UNSORTED, and zero().
|
inlineinherited |
Number of elements in the array.
Definition at line 366 of file Array.h.
Referenced by Cell(), cellstr_value(), iscellstr(), map(), and string_vector_value().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
Definition at line 430 of file Array.cc.
References dim_vector::alloc(), current_liboctave_error_handler, dims, dv, Array< T >::elem(), i, dim_vector::ndims(), numel(), Array< T >::numel(), OCTAVE_LOCAL_BUFFER_INIT, rec_permute_helper::permute(), dim_vector::resize(), and retval.
|
inherited |
|
inline |
Definition at line 112 of file Cell.h.
References Array< T >::reshape().
Referenced by Fcell2struct(), octave_struct::subsasgn(), octave_cell::subsasgn(), and octave_class::subsasgn_common().
|
inlineinherited |
|
inherited |
Resizing (with fill).
Definition at line 1010 of file Array.cc.
References dim_vector::any_neg(), dv, octave::err_invalid_resize(), dim_vector::ndims(), dim_vector::redim(), rec_resize_helper::resize_fill(), and tmp.
Referenced by Cell().
|
inlineinherited |
Resizing (with fill).
Definition at line 615 of file Array.h.
References dv, and Array< T >::resize().
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
virtual |
Reimplemented from Array< octave_value >.
Definition at line 336 of file Cell.cc.
References octave_value().
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Definition at line 1756 of file Array.cc.
References DESCENDING, dims, dv, i, mode, dim_vector::ndims(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER, dim_vector::resize(), octave_sort< T >::set_compare(), octave_sort< T >::sort(), tmp, and UNSORTED.
|
inherited |
Definition at line 1872 of file Array.cc.
References DESCENDING, dims, dv, Array< T >::fortran_vec(), i, mode, dim_vector::numel(), OCTAVE_LOCAL_BUFFER, octave_sort< T >::set_compare(), octave_sort< T >::sort(), tmp, and UNSORTED.
|
inherited |
Definition at line 39 of file Array-idx-vec.cc.
|
inherited |
Sort by rows returns only indices.
Definition at line 2068 of file Array.cc.
References c, Array< T >::fortran_vec(), mode, safe_comparator(), and octave_sort< T >::sort_rows().
|
inherited |
string_vector Cell::string_vector_value | ( | void | ) | const |
Definition at line 139 of file Cell.cc.
References Array< octave_value >::elem(), i, Array< octave_value >::numel(), retval, and octave_value::string_value().
Referenced by octave_cell::string_vector_value().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 1598 of file Array.cc.
References rec_permute_helper::blk_trans(), i, and result.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 140 of file Cell.h.
References map, and octave_value::xisalnum().
|
inline |
Definition at line 141 of file Cell.h.
References map, and octave_value::xisalpha().
|
inline |
Definition at line 142 of file Cell.h.
References map, and octave_value::xisascii().
|
inline |
Definition at line 143 of file Cell.h.
References map, and octave_value::xiscntrl().
|
inline |
Definition at line 144 of file Cell.h.
References map, and octave_value::xisdigit().
|
inline |
Definition at line 145 of file Cell.h.
References map, and octave_value::xisgraph().
|
inline |
Definition at line 146 of file Cell.h.
References map, and octave_value::xislower().
|
inline |
Definition at line 147 of file Cell.h.
References map, and octave_value::xisprint().
|
inline |
Definition at line 148 of file Cell.h.
References map, and octave_value::xispunct().
|
inline |
Definition at line 149 of file Cell.h.
References map, and octave_value::xisspace().
|
inline |
Definition at line 150 of file Cell.h.
References map, and octave_value::xisupper().
|
inline |
Definition at line 151 of file Cell.h.
References map, and octave_value::xisxdigit().
|
inline |
Definition at line 152 of file Cell.h.
References map, and octave_value::xtolower().
|
inline |
Definition at line 153 of file Cell.h.
References map, and octave_value::xtoupper().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |