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

#include "Cell.h"

Inheritance diagram for Cell:
Collaboration diagram for Cell:

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_valueas_column (void) const
 Return the array as a column vector. More...
 
Array< octave_valueas_matrix (void) const
 Return the array as a matrix. More...
 
Array< octave_valueas_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::stringcellstr_value (void) const
 
octave_valuecheckelem (octave_idx_type n)
 
octave_valuecheckelem (octave_idx_type i, octave_idx_type j)
 
octave_valuecheckelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
octave_valuecheckelem (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_valuedata (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_vectordims (void) const
 Return a const-reference so that dims ()(i) works efficiently. More...
 
octave_valueelem (octave_idx_type n)
 
octave_valueelem (octave_idx_type i, octave_idx_type j)
 
octave_valueelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
octave_valueelem (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_typefind (octave_idx_type, bool) const
 
Array< octave_idx_typefind (octave_idx_type n=-1, bool backward=false) const
 Find indices of (at most n) nonzero elements. More...
 
const octave_valuefortran_vec (void) const
 
octave_valuefortran_vec (void)
 
Array< octave_valuehermitian (octave_value(*fcn)(const octave_value &)=nullptr) const
 
Cell index (const octave_value_list &idx, bool resize_ok=false) const
 
Cellinsert (const Cell &a, octave_idx_type r, octave_idx_type c)
 
Cellinsert (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_valueipermute (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_valuelinear_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_typelookup (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_typelookup (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_vectornth_element (const idx_vector &, int) const
 
Array< octave_valuenth_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_valueoperator() (octave_idx_type n)
 
octave_valueoperator() (octave_idx_type i, octave_idx_type j)
 
octave_valueoperator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
octave_valueoperator() (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_valuepage (octave_idx_type k) const
 Extract page: A(:,:,k+1). More...
 
Array< octave_valuepermute (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_valuereshape (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_vectorsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
Array< idx_vectorsort (int, sortmode) const
 
Array< octave_valuesort (int dim=0, sortmode mode=ASCENDING) const
 
Array< octave_valuesort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const
 
Array< octave_idx_typesort_rows_idx (sortmode) const
 
Array< octave_idx_typesort_rows_idx (sortmode mode=ASCENDING) const
 Sort by rows returns only indices. More...
 
Array< octave_valuesqueeze (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_valuetranspose (void) const
 
octave_valuexelem (octave_idx_type n)
 
crefT xelem (octave_idx_type n) const
 
octave_valuexelem (octave_idx_type i, octave_idx_type j)
 
crefT xelem (octave_idx_type i, octave_idx_type j) const
 
octave_valuexelem (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_valuexelem (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_valueindex (const idx_vector &i) const
 Indexing without resizing. More...
 
Array< octave_valueindex (const idx_vector &i, const idx_vector &j) const
 Indexing without resizing. More...
 
Array< octave_valueindex (const Array< idx_vector > &ia) const
 Indexing without resizing. More...
 
Array< octave_valueindex (const idx_vector &i, bool resize_ok, const octave_value &rfv) const
 Indexing with possible resizing and fill. More...
 
Array< octave_valueindex (const idx_vector &i, bool resize_ok) const
 Indexing with possible resizing and fill. More...
 
Array< octave_valueindex (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_valueindex (const idx_vector &i, const idx_vector &j, bool resize_ok) const
 Indexing with possible resizing and fill. More...
 
Array< octave_valueindex (const Array< idx_vector > &ia, bool resize_ok, const octave_value &rfv) const
 Indexing with possible resizing and fill. More...
 
Array< octave_valueindex (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_valuejit_slice_data (void) const
 WARNING: Only call these functions from jit. More...
 
octave_idx_typejit_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_valuecat (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_valueslice_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
 

Detailed Description

Definition at line 37 of file Cell.h.

Member Typedef Documentation

◆ compare_fcn_type

typedef bool(* Array< octave_value >::compare_fcn_type) (typename ref_param< octave_value >::type, typename ref_param< octave_value >::type)
inherited

Definition at line 211 of file Array.h.

◆ crefT

typedef ref_param<octave_value >::type Array< octave_value >::crefT
inherited

Definition at line 209 of file Array.h.

◆ ctype_mapper

typedef octave_value(octave_value::* Cell::ctype_mapper) (void) const
private

Definition at line 157 of file Cell.h.

◆ element_type

Definition at line 201 of file Array.h.

◆ size_type

Used for operator(), and returned by numel() and size() (beware: signed integer)

Definition at line 207 of file Array.h.

◆ value_type

typedef octave_value Array< octave_value >::value_type
inherited

Definition at line 203 of file Array.h.

Constructor & Destructor Documentation

◆ Cell() [1/12]

Cell::Cell ( void  )
inline

Definition at line 43 of file Cell.h.

◆ Cell() [2/12]

Cell::Cell ( const octave_value val)
inline

Definition at line 46 of file Cell.h.

◆ Cell() [3/12]

Cell::Cell ( const octave_value_list ovl)

Definition at line 35 of file Cell.cc.

◆ Cell() [4/12]

Cell::Cell ( octave_idx_type  n,
octave_idx_type  m,
const octave_value val = Matrix () 
)
inline

Definition at line 51 of file Cell.h.

◆ Cell() [5/12]

Cell::Cell ( const dim_vector dv,
const octave_value val = Matrix () 
)
inline

Definition at line 55 of file Cell.h.

◆ Cell() [6/12]

Cell::Cell ( const Array< octave_value > &  c)
inline

Definition at line 58 of file Cell.h.

◆ Cell() [7/12]

Cell::Cell ( const Array< octave_value > &  c,
octave_idx_type  nr,
octave_idx_type  nc 
)
inline

Definition at line 61 of file Cell.h.

◆ Cell() [8/12]

Cell::Cell ( const string_vector sv,
bool  trim = false 
)

◆ Cell() [9/12]

template<typename V , template< typename... > class C>
Cell::Cell ( const C< V > &  container)
inlineexplicit

Definition at line 70 of file Cell.h.

References elem, i, octave_value_list::resize(), and val.

◆ Cell() [10/12]

Cell::Cell ( const Array< std::string > &  sa)

◆ Cell() [11/12]

Cell::Cell ( const dim_vector dv,
const string_vector sv,
bool  trim = false 
)

◆ Cell() [12/12]

Cell::Cell ( const Cell c)
inline

Definition at line 90 of file Cell.h.

Member Function Documentation

◆ all()

boolMatrix Cell::all ( int  = 0) const
inline

Definition at line 120 of file Cell.h.

◆ any()

boolMatrix Cell::any ( int  = 0) const
inline

Definition at line 123 of file Cell.h.

◆ any_element_is_nan()

bool Cell::any_element_is_nan ( void  ) const
inline

Definition at line 131 of file Cell.h.

◆ as_column()

Array<octave_value > Array< octave_value >::as_column ( void  ) const
inlineinherited

Return the array as a column vector.

Definition at line 370 of file Array.h.

References dim_vector::ndims(), numel(), and retval.

◆ as_matrix()

Array<octave_value > Array< octave_value >::as_matrix ( void  ) const
inlineinherited

Return the array as a matrix.

Definition at line 390 of file Array.h.

References dim_vector::ndims(), dim_vector::redim(), and retval.

◆ as_row()

Array<octave_value > Array< octave_value >::as_row ( void  ) const
inlineinherited

Return the array as a row vector.

Definition at line 380 of file Array.h.

References dim_vector::ndims(), numel(), and retval.

◆ assign() [1/7]

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().

◆ assign() [2/7]

void Array< octave_value >::assign ( const idx_vector i,
const Array< octave_value > &  rhs,
const octave_value rfv 
)
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().

◆ assign() [3/7]

void Array< octave_value >::assign ( const idx_vector i,
const Array< octave_value > &  rhs 
)
inlineinherited

Indexed assignment (always with resize & fill).

Definition at line 649 of file Array.h.

References i.

◆ assign() [4/7]

◆ assign() [5/7]

void Array< octave_value >::assign ( const idx_vector i,
const idx_vector j,
const Array< octave_value > &  rhs 
)
inlineinherited

Indexed assignment (always with resize & fill).

Definition at line 656 of file Array.h.

References i.

◆ assign() [6/7]

◆ assign() [7/7]

void Array< octave_value >::assign ( const Array< idx_vector > &  ia,
const Array< octave_value > &  rhs 
)
inlineinherited

Indexed assignment (always with resize & fill).

Definition at line 662 of file Array.h.

◆ byte_size()

size_t Array< octave_value >::byte_size ( void  ) const
inlineinherited

Definition at line 438 of file Array.h.

References numel().

◆ capacity()

octave_idx_type Array< octave_value >::capacity ( void  ) const
inlineinherited

Number of elements in the array.

Synonymous with numel().

Note
This method is deprecated in favour of numel().

Definition at line 343 of file Array.h.

References numel().

◆ cat()

Array< octave_value > Array< octave_value >::cat ( int  dim,
octave_idx_type  n,
const Array< octave_value > *  array_list 
)
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().

◆ cellstr_value()

◆ checkelem() [1/8]

octave_value & Array< octave_value >::checkelem ( octave_idx_type  n)
inherited

Definition at line 191 of file Array.cc.

References elem, octave::err_index_out_of_range(), and octave::err_invalid_index().

◆ checkelem() [2/8]

octave_value & Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
)
inherited

Definition at line 204 of file Array.cc.

References compute_index(), elem, and i.

◆ checkelem() [3/8]

octave_value & Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inherited

Definition at line 211 of file Array.cc.

References compute_index(), elem, i, and k.

◆ checkelem() [4/8]

octave_value & Array< octave_value >::checkelem ( const Array< octave_idx_type > &  ra_idx)
inherited

Definition at line 218 of file Array.cc.

References compute_index(), elem, and ra_idx.

◆ checkelem() [5/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( octave_idx_type  n) const
inherited

Definition at line 225 of file Array.cc.

References elem, octave::err_index_out_of_range(), and octave::err_invalid_index().

◆ checkelem() [6/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inherited

Definition at line 238 of file Array.cc.

References compute_index(), elem, and i.

◆ checkelem() [7/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inherited

Definition at line 245 of file Array.cc.

References compute_index(), elem, i, and k.

◆ checkelem() [8/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( const Array< octave_idx_type > &  ra_idx) const
inherited

Definition at line 253 of file Array.cc.

References compute_index(), elem, and ra_idx.

◆ clear() [1/3]

void Array< octave_value >::clear ( void  )
inherited

Definition at line 86 of file Array.cc.

◆ clear() [2/3]

void Array< octave_value >::clear ( const dim_vector dv)
inherited

Definition at line 101 of file Array.cc.

References dim_vector::chop_trailing_singletons(), dv, and dim_vector::safe_numel().

◆ clear() [3/3]

void Array< octave_value >::clear ( octave_idx_type  r,
octave_idx_type  c 
)
inlineinherited

Definition at line 334 of file Array.h.

References c.

◆ cols()

octave_idx_type Array< octave_value >::cols ( void  ) const
inlineinherited

Definition at line 412 of file Array.h.

Referenced by column().

◆ column()

◆ columns()

octave_idx_type Array< octave_value >::columns ( void  ) const
inlineinherited

Definition at line 413 of file Array.h.

◆ compute_index() [1/3]

octave_idx_type Array< octave_value >::compute_index ( octave_idx_type  i,
octave_idx_type  j 
) const
inherited

Definition at line 169 of file Array.cc.

References compute_index(), and i.

◆ compute_index() [2/3]

octave_idx_type Array< octave_value >::compute_index ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inherited

Definition at line 176 of file Array.cc.

References compute_index(), i, and k.

◆ compute_index() [3/3]

octave_idx_type Array< octave_value >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
inherited

Definition at line 184 of file Array.cc.

References compute_index(), and ra_idx.

◆ compute_index_unchecked()

octave_idx_type Array< octave_value >::compute_index_unchecked ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 452 of file Array.h.

References dim_vector::compute_index(), octave_base_value::numel(), and ra_idx.

◆ concat()

Cell Cell::concat ( const Cell rb,
const Array< octave_idx_type > &  ra_idx 
)

Definition at line 302 of file Cell.cc.

References insert(), and ra_idx.

◆ data()

const octave_value * Array< octave_value >::data ( void  ) const
inlineinherited

Definition at line 582 of file Array.h.

Referenced by map().

◆ delete_elements() [1/4]

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.

◆ delete_elements() [2/4]

void Array< octave_value >::delete_elements ( const idx_vector i)
inherited

Deleting elements.

A(I) = [] (with a single subscript)

Definition at line 1389 of file Array.cc.

References octave::err_del_index_out_of_range(), i, numel(), tmp, and u.

◆ delete_elements() [3/4]

void Array< octave_value >::delete_elements ( int  dim,
const idx_vector i 
)
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.

◆ delete_elements() [4/4]

void Array< octave_value >::delete_elements ( const Array< idx_vector > &  ia)
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().

◆ diag() [1/2]

Cell Cell::diag ( octave_idx_type  k = 0) const

Definition at line 343 of file Cell.cc.

References Array< T >::diag(), and k.

◆ diag() [2/2]

Cell Cell::diag ( octave_idx_type  m,
octave_idx_type  n 
) const

Definition at line 349 of file Cell.cc.

References Array< T >::diag().

◆ dim1()

octave_idx_type Array< octave_value >::dim1 ( void  ) const
inlineinherited

Definition at line 403 of file Array.h.

◆ dim2()

octave_idx_type Array< octave_value >::dim2 ( void  ) const
inlineinherited

Definition at line 411 of file Array.h.

◆ dim3()

octave_idx_type Array< octave_value >::dim3 ( void  ) const
inlineinherited

Definition at line 420 of file Array.h.

◆ dims()

const dim_vector& Array< octave_value >::dims ( void  ) const
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().

◆ elem() [1/8]

octave_value & Array< octave_value >::elem ( octave_idx_type  n)
inlineinherited

Definition at line 488 of file Array.h.

Referenced by Cell(), cellstr_value(), column(), iscellstr(), and string_vector_value().

◆ elem() [2/8]

octave_value & Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 494 of file Array.h.

References Array< T >::elem(), and i.

◆ elem() [3/8]

octave_value & Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inlineinherited

Definition at line 496 of file Array.h.

References elem, i, and k.

◆ elem() [4/8]

octave_value & Array< octave_value >::elem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 499 of file Array.h.

References Array< T >::elem(), and ra_idx.

◆ elem() [5/8]

crefT Array< octave_value >::elem ( octave_idx_type  n) const
inlineinherited

Definition at line 518 of file Array.h.

◆ elem() [6/8]

crefT Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 520 of file Array.h.

References i.

◆ elem() [7/8]

crefT Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inlineinherited

Definition at line 523 of file Array.h.

References i, and k.

◆ elem() [8/8]

crefT Array< octave_value >::elem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 526 of file Array.h.

References ra_idx, and Array< T >::xelem().

◆ fill()

void Array< octave_value >::fill ( const octave_value val)
inherited

Definition at line 72 of file Array.cc.

References numel(), and val.

◆ find() [1/2]

Array< octave_idx_type > Array< idx_vector >::find ( octave_idx_type  ,
bool   
) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ find() [2/2]

Array< octave_idx_type > Array< octave_value >::find ( octave_idx_type  n = -1,
bool  backward = false 
) const
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().

◆ fortran_vec() [1/2]

const octave_value * Array< octave_value >::fortran_vec ( void  ) const
inlineinherited

Definition at line 584 of file Array.h.

Referenced by Cell().

◆ fortran_vec() [2/2]

octave_value * Array< octave_value >::fortran_vec ( void  )
inherited

Definition at line 1739 of file Array.cc.

◆ hermitian()

Array< octave_value > Array< octave_value >::hermitian ( octave_value (*)(const octave_value &)  fcn = nullptr) const
inherited

Definition at line 1641 of file Array.cc.

References fcn, i, k, and result.

◆ index() [1/10]

◆ index() [2/10]

Array< octave_value > Array< octave_value >::index ( const idx_vector i) const
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.

◆ index() [3/10]

◆ index() [4/10]

◆ index() [5/10]

Array< octave_value > Array< octave_value >::index ( const idx_vector i,
bool  resize_ok,
const octave_value rfv 
) const
inherited

Indexing with possible resizing and fill.

Definition at line 1032 of file Array.cc.

References i, numel(), and tmp.

◆ index() [6/10]

Array<octave_value > Array< octave_value >::index ( const idx_vector i,
bool  resize_ok 
) const
inlineinherited

Indexing with possible resizing and fill.

Definition at line 625 of file Array.h.

References i.

◆ index() [7/10]

Array< octave_value > Array< octave_value >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok,
const octave_value rfv 
) const
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.

◆ index() [8/10]

Array<octave_value > Array< octave_value >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok 
) const
inlineinherited

Indexing with possible resizing and fill.

Definition at line 632 of file Array.h.

References i.

◆ index() [9/10]

Array< octave_value > Array< octave_value >::index ( const Array< idx_vector > &  ia,
bool  resize_ok,
const octave_value rfv 
) const
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.

◆ index() [10/10]

Array<octave_value > Array< octave_value >::index ( const Array< idx_vector > &  ia,
bool  resize_ok 
) const
inlineinherited

Indexing with possible resizing and fill.

Definition at line 640 of file Array.h.

◆ insert() [1/4]

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().

◆ insert() [2/4]

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.

◆ insert() [3/4]

Array< octave_value > & Array< octave_value >::insert ( const Array< octave_value > &  a,
const Array< octave_idx_type > &  idx 
)
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 1583 of file Array.cc.

References a, k, octave_base_value::numel(), and ra_idx.

◆ insert() [4/4]

Array< octave_value > & Array< octave_value >::insert ( const Array< octave_value > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inherited

This is just a special case for idx = [r c 0 ...].

Definition at line 1562 of file Array.cc.

References a, c, i, and k.

◆ ipermute()

Array<octave_value > Array< octave_value >::ipermute ( const Array< octave_idx_type > &  vec) const
inlineinherited

Definition at line 556 of file Array.h.

◆ is_empty()

bool Array< octave_value >::is_empty ( void  ) const
inlineinherited

Definition at line 568 of file Array.h.

◆ is_nd_vector()

bool Array< octave_value >::is_nd_vector ( void  ) const
inlineinherited

Definition at line 577 of file Array.h.

References dim_vector::is_nd_vector().

◆ is_shared()

bool Array< octave_value >::is_shared ( void  )
inlineinherited

Definition at line 588 of file Array.h.

References Array< T >::ArrayRep::count.

◆ is_sorted()

sortmode Array< octave_value >::is_sorted ( sortmode  mode = UNSORTED) const
inlineinherited

Definition at line 716 of file Array.h.

References mode.

◆ is_sorted_rows() [1/2]

sortmode Array< idx_vector >::is_sorted_rows ( sortmode  ) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ is_sorted_rows() [2/2]

sortmode Array< octave_value >::is_sorted_rows ( sortmode  mode = UNSORTED) const
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.

◆ is_square()

bool Array< octave_value >::is_square ( void  ) const
inlineinherited

Definition at line 562 of file Array.h.

◆ is_true()

bool Cell::is_true ( void  ) const
inline

Definition at line 132 of file Cell.h.

◆ is_vector()

bool Array< octave_value >::is_vector ( void  ) const
inlineinherited

Definition at line 574 of file Array.h.

References isvector().

◆ iscellstr()

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().

◆ isempty()

bool Array< octave_value >::isempty ( void  ) const
inlineinherited

Definition at line 565 of file Array.h.

References numel().

◆ issorted() [1/2]

sortmode Array< idx_vector >::issorted ( sortmode  ) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ issorted() [2/2]

sortmode Array< octave_value >::issorted ( sortmode  mode = UNSORTED) const
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.

◆ issquare()

bool Array< octave_value >::issquare ( void  ) const
inlineinherited

Definition at line 559 of file Array.h.

◆ isvector()

bool Array< octave_value >::isvector ( void  ) const
inlineinherited

Definition at line 571 of file Array.h.

References dim_vector::isvector().

◆ jit_array_rep()

void* Array< octave_value >::jit_array_rep ( void  ) const
inlineinherited

WARNING: Only call these functions from jit.

Definition at line 854 of file Array.h.

References Array< T >::rep.

◆ jit_dimensions()

octave_idx_type* Array< octave_value >::jit_dimensions ( void  ) const
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().

◆ jit_ref_count()

int* Array< octave_value >::jit_ref_count ( void  )
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.

◆ jit_slice_data()

octave_value * Array< octave_value >::jit_slice_data ( void  ) const
inlineinherited

WARNING: Only call these functions from jit.

Definition at line 850 of file Array.h.

References Array< T >::slice_data.

◆ length()

octave_idx_type Array< octave_value >::length ( void  ) const
inlineinherited

Number of elements in the array.

Synonymous with numel().

Note
This method is deprecated in favour of numel().
This is not the same as 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().

◆ linear_slice()

Array< octave_value > Array< octave_value >::linear_slice ( octave_idx_type  lo,
octave_idx_type  up 
) const
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 280 of file Array.cc.

◆ lookup() [1/4]

Array< octave_idx_type > Array< idx_vector >::lookup ( const Array< idx_vector > &  ,
sortmode   
) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ lookup() [2/4]

octave_idx_type Array< idx_vector >::lookup ( idx_vector const &  ,
sortmode   
) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ lookup() [3/4]

octave_idx_type Array< octave_value >::lookup ( const octave_value value,
sortmode  mode = UNSORTED 
) const
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.

◆ lookup() [4/4]

Array< octave_idx_type > Array< octave_value >::lookup ( const Array< octave_value > &  values,
sortmode  mode = UNSORTED 
) const
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.

◆ make_unique()

void Array< octave_value >::make_unique ( void  )
inlineinherited

Definition at line 187 of file Array.h.

◆ map() [1/4]

Cell Cell::map ( ctype_mapper  fcn) const
private

◆ map() [2/4]

Array<U> Array< octave_value >::map ( F  fcn) const
inlineinherited

Apply function fcn to each element of the Array<T>.

This function is optimized with a manually unrolled loop.

Definition at line 764 of file Array.h.

References dims, fcn, i, numel(), p, and result.

◆ map() [3/4]

Array<U> Array< octave_value >::map ( U(&)(octave_value fcn) const
inlineinherited

Overloads for function references.

Definition at line 796 of file Array.h.

References fcn.

◆ map() [4/4]

Array<U> Array< octave_value >::map ( U(&)(const octave_value &)  fcn) const
inlineinherited

Overloads for function references.

Definition at line 801 of file Array.h.

References fcn.

◆ maybe_economize()

void Array< octave_value >::maybe_economize ( void  )
inlineinherited

◆ mex_get_data()

void* Array< octave_value >::mex_get_data ( void  ) const
inlineinherited

Give a pointer to the data in mex format.

Unsafe. This function exists to support the MEX interface. You should not use it anywhere else.

Definition at line 706 of file Array.h.

◆ ndims()

int Array< octave_value >::ndims ( void  ) const
inlineinherited

Definition at line 590 of file Array.h.

References dim_vector::ndims().

Referenced by column().

◆ nelem()

octave_idx_type Array< octave_value >::nelem ( void  ) const
inlineinherited

Number of elements in the array.

Synonymous with numel().

Note
This method is deprecated in favour of numel().

Definition at line 363 of file Array.h.

References numel().

◆ nnz()

octave_idx_type Cell::nnz ( void  ) const

Definition at line 269 of file Cell.cc.

References err_wrong_type_arg().

◆ nth_element() [1/2]

Array< idx_vector > Array< idx_vector >::nth_element ( const idx_vector ,
int   
) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ nth_element() [2/2]

Array< octave_value > Array< octave_value >::nth_element ( const idx_vector n,
int  dim = 0 
) const
inherited

◆ numel()

octave_idx_type Array< octave_value >::numel ( void  ) const
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().

◆ operator()() [1/8]

octave_value & Array< octave_value >::operator() ( octave_idx_type  n)
inlineinherited

Definition at line 502 of file Array.h.

References elem.

◆ operator()() [2/8]

octave_value & Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 503 of file Array.h.

References elem, and i.

◆ operator()() [3/8]

octave_value & Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inlineinherited

Definition at line 504 of file Array.h.

References elem, i, and k.

◆ operator()() [4/8]

octave_value & Array< octave_value >::operator() ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 506 of file Array.h.

References elem, and ra_idx.

◆ operator()() [5/8]

crefT Array< octave_value >::operator() ( octave_idx_type  n) const
inlineinherited

Definition at line 529 of file Array.h.

References elem.

◆ operator()() [6/8]

crefT Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 530 of file Array.h.

References elem, and i.

◆ operator()() [7/8]

crefT Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inlineinherited

Definition at line 532 of file Array.h.

References elem, i, and k.

◆ operator()() [8/8]

crefT Array< octave_value >::operator() ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 535 of file Array.h.

References elem, and ra_idx.

◆ optimize_dimensions()

bool Array< octave_value >::optimize_dimensions ( const dim_vector dv)
inherited

Returns true if this->dims () == dv, and if so, replaces this->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 2751 of file Array.cc.

References dv, and retval.

◆ page()

Array< octave_value > Array< octave_value >::page ( octave_idx_type  k) const
inherited

Extract page: A(:,:,k+1).

Definition at line 269 of file Array.cc.

References c, k, and p.

◆ pages()

octave_idx_type Array< octave_value >::pages ( void  ) const
inlineinherited

Definition at line 421 of file Array.h.

◆ permute()

◆ print_info()

void Array< octave_value >::print_info ( std::ostream &  os,
const std::string prefix 
) const
inherited

Definition at line 2735 of file Array.cc.

References os.

◆ reshape() [1/2]

Cell Cell::reshape ( const dim_vector new_dims) const
inline

◆ reshape() [2/2]

Array<octave_value > Array< octave_value >::reshape ( octave_idx_type  nr,
octave_idx_type  nc 
) const
inlineinherited

Definition at line 549 of file Array.h.

◆ resize() [1/2]

void Array< octave_value >::resize ( const dim_vector dv,
const octave_value rfv 
)
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().

◆ resize() [2/2]

void Array< octave_value >::resize ( const dim_vector dv)
inlineinherited

Resizing (with fill).

Definition at line 615 of file Array.h.

References dv, and Array< T >::resize().

◆ resize1() [1/2]

void Array< octave_value >::resize1 ( octave_idx_type  n,
const octave_value rfv 
)
inherited

Resizing (with fill).

Definition at line 897 of file Array.cc.

References dv, octave::err_invalid_resize(), min(), nn, numel(), and tmp.

◆ resize1() [2/2]

void Array< octave_value >::resize1 ( octave_idx_type  n)
inlineinherited

Resizing (with fill).

Definition at line 612 of file Array.h.

References Array< T >::resize1().

◆ resize2() [1/2]

void Array< octave_value >::resize2 ( octave_idx_type  nr,
octave_idx_type  nc,
const octave_value rfv 
)
inherited

Resizing (with fill).

Definition at line 968 of file Array.cc.

References c, octave::err_invalid_resize(), k, min(), and tmp.

◆ resize2() [2/2]

void Array< octave_value >::resize2 ( octave_idx_type  nr,
octave_idx_type  nc 
)
inlineinherited

Resizing (with fill).

Definition at line 606 of file Array.h.

◆ resize_fill_value()

octave_value Cell::resize_fill_value ( void  ) const
virtual

Reimplemented from Array< octave_value >.

Definition at line 336 of file Cell.cc.

References octave_value().

◆ rows()

octave_idx_type Array< octave_value >::rows ( void  ) const
inlineinherited

Definition at line 404 of file Array.h.

Referenced by column().

◆ size()

size_type Array< octave_value >::size ( const size_type  d) const
inlineinherited

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 431 of file Array.h.

References d.

◆ sort() [1/4]

Array< idx_vector > Array< idx_vector >::sort ( Array< octave_idx_type > &  sidx,
int  ,
sortmode   
) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ sort() [2/4]

Array< idx_vector > Array< idx_vector >::sort ( int  ,
sortmode   
) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ sort() [3/4]

◆ sort() [4/4]

◆ sort_rows_idx() [1/2]

Array< octave_idx_type > Array< idx_vector >::sort_rows_idx ( sortmode  ) const
inherited

Definition at line 39 of file Array-idx-vec.cc.

◆ sort_rows_idx() [2/2]

Array< octave_idx_type > Array< octave_value >::sort_rows_idx ( sortmode  mode = ASCENDING) const
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().

◆ squeeze()

Array< octave_value > Array< octave_value >::squeeze ( void  ) const
inherited

Chop off leading singleton dimensions.

Definition at line 116 of file Array.cc.

References i, k, dim_vector::resize(), retval, and tmp.

◆ string_vector_value()

string_vector Cell::string_vector_value ( void  ) const

◆ test()

bool Array< octave_value >::test ( F  fcn) const
inlineinherited

Generic any/all test functionality with arbitrary predicate.

Definition at line 807 of file Array.h.

References fcn, and numel().

◆ test_all() [1/3]

bool Array< octave_value >::test_all ( F  fcn) const
inlineinherited

Simpler calls.

Definition at line 819 of file Array.h.

References fcn.

◆ test_all() [2/3]

bool Array< octave_value >::test_all ( bool(&)(octave_value fcn) const
inlineinherited

Overloads for function references.

Definition at line 831 of file Array.h.

References fcn.

◆ test_all() [3/3]

bool Array< octave_value >::test_all ( bool(&)(const octave_value &)  fcn) const
inlineinherited

Overloads for function references.

Definition at line 834 of file Array.h.

References fcn.

◆ test_any() [1/3]

bool Array< octave_value >::test_any ( F  fcn) const
inlineinherited

Simpler calls.

Definition at line 815 of file Array.h.

References fcn.

◆ test_any() [2/3]

bool Array< octave_value >::test_any ( bool(&)(octave_value fcn) const
inlineinherited

Overloads for function references.

Definition at line 825 of file Array.h.

References fcn.

◆ test_any() [3/3]

bool Array< octave_value >::test_any ( bool(&)(const octave_value &)  fcn) const
inlineinherited

Overloads for function references.

Definition at line 828 of file Array.h.

References fcn.

◆ transpose()

Array< octave_value > Array< octave_value >::transpose ( void  ) const
inherited

Definition at line 1598 of file Array.cc.

References rec_permute_helper::blk_trans(), i, and result.

◆ xelem() [1/8]

octave_value & Array< octave_value >::xelem ( octave_idx_type  n)
inlineinherited

Definition at line 458 of file Array.h.

◆ xelem() [2/8]

crefT Array< octave_value >::xelem ( octave_idx_type  n) const
inlineinherited

Definition at line 459 of file Array.h.

◆ xelem() [3/8]

octave_value & Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 461 of file Array.h.

References i.

◆ xelem() [4/8]

crefT Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 463 of file Array.h.

References i.

◆ xelem() [5/8]

octave_value & Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inlineinherited

Definition at line 466 of file Array.h.

References i, and k.

◆ xelem() [6/8]

crefT Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inlineinherited

Definition at line 468 of file Array.h.

References i, and k.

◆ xelem() [7/8]

octave_value & Array< octave_value >::xelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 471 of file Array.h.

References ra_idx.

◆ xelem() [8/8]

crefT Array< octave_value >::xelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 474 of file Array.h.

References ra_idx.

◆ xisalnum()

Cell Cell::xisalnum ( void  ) const
inline

Definition at line 140 of file Cell.h.

References map, and octave_value::xisalnum().

◆ xisalpha()

Cell Cell::xisalpha ( void  ) const
inline

Definition at line 141 of file Cell.h.

References map, and octave_value::xisalpha().

◆ xisascii()

Cell Cell::xisascii ( void  ) const
inline

Definition at line 142 of file Cell.h.

References map, and octave_value::xisascii().

◆ xiscntrl()

Cell Cell::xiscntrl ( void  ) const
inline

Definition at line 143 of file Cell.h.

References map, and octave_value::xiscntrl().

◆ xisdigit()

Cell Cell::xisdigit ( void  ) const
inline

Definition at line 144 of file Cell.h.

References map, and octave_value::xisdigit().

◆ xisgraph()

Cell Cell::xisgraph ( void  ) const
inline

Definition at line 145 of file Cell.h.

References map, and octave_value::xisgraph().

◆ xislower()

Cell Cell::xislower ( void  ) const
inline

Definition at line 146 of file Cell.h.

References map, and octave_value::xislower().

◆ xisprint()

Cell Cell::xisprint ( void  ) const
inline

Definition at line 147 of file Cell.h.

References map, and octave_value::xisprint().

◆ xispunct()

Cell Cell::xispunct ( void  ) const
inline

Definition at line 148 of file Cell.h.

References map, and octave_value::xispunct().

◆ xisspace()

Cell Cell::xisspace ( void  ) const
inline

Definition at line 149 of file Cell.h.

References map, and octave_value::xisspace().

◆ xisupper()

Cell Cell::xisupper ( void  ) const
inline

Definition at line 150 of file Cell.h.

References map, and octave_value::xisupper().

◆ xisxdigit()

Cell Cell::xisxdigit ( void  ) const
inline

Definition at line 151 of file Cell.h.

References map, and octave_value::xisxdigit().

◆ xtolower()

Cell Cell::xtolower ( void  ) const
inline

Definition at line 152 of file Cell.h.

References map, and octave_value::xtolower().

◆ xtoupper()

Cell Cell::xtoupper ( void  ) const
inline

Definition at line 153 of file Cell.h.

References map, and octave_value::xtoupper().

Member Data Documentation

◆ dimensions

dim_vector Array< octave_value >::dimensions
protectedinherited

Definition at line 216 of file Array.h.

◆ rep

Array<octave_value >::ArrayRep* Array< octave_value >::rep
protectedinherited

Definition at line 218 of file Array.h.

◆ slice_data

octave_value * Array< octave_value >::slice_data
protectedinherited

Definition at line 227 of file Array.h.

◆ slice_len

octave_idx_type Array< octave_value >::slice_len
protectedinherited

Definition at line 228 of file Array.h.


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