GNU Octave  6.2.0
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 (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
 
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())
 
Array< std::string > cellstr_value (void) const
 
void clear (const dim_vector &dv)
 
void clear (octave_idx_type r, octave_idx_type c)
 
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
 
void fill (const octave_value &val)
 
Array< octave_idx_typefind (octave_idx_type, bool) const
 
Cell index (const octave_value_list &idx, bool resize_ok=false) const
 
Cellinsert (const Cell &a, const Array< octave_idx_type > &ra_idx)
 
Cellinsert (const Cell &a, octave_idx_type r, octave_idx_type c)
 
sortmode is_sorted_rows (sortmode) const
 
bool is_true (void) const
 
bool iscellstr (void) const
 
OCTAVE_API sortmode issorted (sortmode mode) const
 
sortmode issorted (sortmode) const
 
Array< octave_idx_typelookup (const Array< idx_vector > &, sortmode) const
 
octave_idx_type lookup (idx_vector const &, sortmode) const
 
void make_unique (void)
 
octave_idx_type nnz (void) const
 
Array< idx_vectornth_element (const idx_vector &, int) const
 
octave_idx_type numel (void) const
 Number of elements in the array. More...
 
Celloperator= (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...
 
Array< idx_vectorsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
Array< idx_vectorsort (int, sortmode) const
 
Array< octave_idx_typesort_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)

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
 

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

void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
void instantiation_guard ()
 
Cell map (ctype_mapper) const
 

Static Private Member Functions

static Array< octave_value >::ArrayRep * nil_rep (void)
 

Third dimension

Get the third dimension of the array (number of pages)

octave_idx_type dim3 (void) const
 Size of the specified dimension. More...
 
octave_idx_type pages (void) const
 Size of the specified dimension. More...
 
size_type size (const size_type d) const
 Size of the specified dimension. More...
 
size_t byte_size (void) const
 Size of the specified dimension. More...
 
const dim_vectordims (void) const
 Return a const-reference so that dims ()(i) works efficiently. More...
 
Array< octave_valuesqueeze (void) const
 Chop off leading singleton dimensions. More...
 
octave_idx_type compute_index (octave_idx_type i, octave_idx_type j) const
 Size of the specified dimension. More...
 
octave_idx_type compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
octave_idx_type compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
octave_valuexelem (octave_idx_type n)
 Size of the specified dimension. More...
 
crefT xelem (octave_idx_type n) const
 Size of the specified dimension. More...
 
octave_valuexelem (octave_idx_type i, octave_idx_type j)
 Size of the specified dimension. More...
 
crefT xelem (octave_idx_type i, octave_idx_type j) const
 Size of the specified dimension. More...
 
octave_valuexelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
crefT xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
octave_valuexelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT xelem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
octave_valuecheckelem (octave_idx_type n)
 Size of the specified dimension. More...
 
octave_valuecheckelem (octave_idx_type i, octave_idx_type j)
 Size of the specified dimension. More...
 
octave_valuecheckelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
octave_valuecheckelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT checkelem (octave_idx_type n) const
 Size of the specified dimension. More...
 
crefT checkelem (octave_idx_type i, octave_idx_type j) const
 Size of the specified dimension. More...
 
crefT checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
crefT checkelem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
octave_valueelem (octave_idx_type n)
 Size of the specified dimension. More...
 
octave_valueelem (octave_idx_type i, octave_idx_type j)
 Size of the specified dimension. More...
 
octave_valueelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
octave_valueelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT elem (octave_idx_type n) const
 Size of the specified dimension. More...
 
crefT elem (octave_idx_type i, octave_idx_type j) const
 Size of the specified dimension. More...
 
crefT elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
crefT elem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
octave_valueoperator() (octave_idx_type n)
 Size of the specified dimension. More...
 
octave_valueoperator() (octave_idx_type i, octave_idx_type j)
 Size of the specified dimension. More...
 
octave_valueoperator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
octave_valueoperator() (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT operator() (octave_idx_type n) const
 Size of the specified dimension. More...
 
crefT operator() (octave_idx_type i, octave_idx_type j) const
 Size of the specified dimension. More...
 
crefT operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
crefT operator() (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
Array< octave_valuepage (octave_idx_type k) const
 Extract page: A(:,:,k+1). More...
 
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...
 
Array< octave_valuereshape (octave_idx_type nr, octave_idx_type nc) const
 Size of the specified dimension. More...
 
Array< octave_valuepermute (const Array< octave_idx_type > &vec, bool inv=false) const
 Size of the specified dimension. More...
 
Array< octave_valueipermute (const Array< octave_idx_type > &vec) const
 Size of the specified dimension. More...
 
bool issquare (void) const
 Size of the specified dimension. More...
 
bool isempty (void) const
 Size of the specified dimension. More...
 
bool isvector (void) const
 Size of the specified dimension. More...
 
bool is_nd_vector (void) const
 Size of the specified dimension. More...
 
Array< octave_valuetranspose (void) const
 Size of the specified dimension. More...
 
Array< octave_valuehermitian (octave_value(*fcn)(const octave_value &)=nullptr) const
 Size of the specified dimension. More...
 
const octave_valuedata (void) const
 Size of the specified dimension. More...
 
const octave_valuefortran_vec (void) const
 Size of the specified dimension. More...
 
octave_valuefortran_vec (void)
 Size of the specified dimension. More...
 
bool is_shared (void)
 Size of the specified dimension. More...
 
int ndims (void) const
 Size of the specified dimension. More...
 
Array< octave_valueindex (const idx_vector &i) const
 Indexing without resizing. More...
 
Array< octave_valueindex (const idx_vector &i, const idx_vector &j) const
 Size of the specified dimension. More...
 
Array< octave_valueindex (const Array< idx_vector > &ia) const
 Size of the specified dimension. 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
 Size of the specified dimension. More...
 
Array< octave_valueindex (const idx_vector &i, const idx_vector &j, bool resize_ok, const octave_value &rfv) const
 Size of the specified dimension. More...
 
Array< octave_valueindex (const idx_vector &i, const idx_vector &j, bool resize_ok) const
 Size of the specified dimension. More...
 
Array< octave_valueindex (const Array< idx_vector > &ia, bool resize_ok, const octave_value &rfv) const
 Size of the specified dimension. More...
 
Array< octave_valueindex (const Array< idx_vector > &ia, bool resize_ok) const
 Size of the specified dimension. 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)
 Size of the specified dimension. More...
 
void resize1 (octave_idx_type n, const octave_value &rfv)
 Size of the specified dimension. More...
 
void resize1 (octave_idx_type n)
 Size of the specified dimension. More...
 
void resize (const dim_vector &dv, const octave_value &rfv)
 Size of the specified dimension. More...
 
void resize (const dim_vector &dv)
 Size of the specified dimension. 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)
 Size of the specified dimension. More...
 
void assign (const idx_vector &i, const idx_vector &j, const Array< octave_value > &rhs, const octave_value &rfv)
 Size of the specified dimension. More...
 
void assign (const idx_vector &i, const idx_vector &j, const Array< octave_value > &rhs)
 Size of the specified dimension. More...
 
void assign (const Array< idx_vector > &ia, const Array< octave_value > &rhs, const octave_value &rfv)
 Size of the specified dimension. More...
 
void assign (const Array< idx_vector > &ia, const Array< octave_value > &rhs)
 Size of the specified dimension. 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< 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...
 
void maybe_economize (void)
 Size of the specified dimension. More...
 
void print_info (std::ostream &os, const std::string &prefix) const
 Size of the specified dimension. More...
 
void * mex_get_data (void) const
 Give a pointer to the data in mex format. More...
 
Array< octave_valuesort (int dim=0, sortmode mode=ASCENDING) const
 Size of the specified dimension. More...
 
Array< octave_valuesort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const
 Size of the specified dimension. More...
 
sortmode issorted (sortmode mode=UNSORTED) const
 Ordering is auto-detected or can be specified. More...
 
Array< octave_idx_typesort_rows_idx (sortmode mode=ASCENDING) const
 Sort by rows returns only indices. More...
 
sortmode is_sorted_rows (sortmode mode=UNSORTED) const
 Ordering is auto-detected or can be specified. More...
 
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...
 
Array< octave_idx_typefind (octave_idx_type n=-1, bool backward=false) const
 Find indices of (at most n) nonzero elements. More...
 
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...
 
Array< U > map (F fcn) const
 Apply function fcn to each element of the Array<T>. More...
 
Array< U > map (U(&fcn)(octave_value)) const
 Overloads for function references. More...
 
Array< U > 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...
 
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...
 
int jit_ref_count (void)
 WARNING: Only call these functions from jit. More...
 
octave_valuejit_slice_data (void) const
 Size of the specified dimension. More...
 
octave_idx_typejit_dimensions (void) const
 Size of the specified dimension. More...
 
void * jit_array_rep (void) const
 Size of the specified dimension. More...
 
static void instantiation_guard ()
 Size of the specified dimension. More...
 
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...
 

Detailed Description

Definition at line 40 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 212 of file Array.h.

◆ crefT

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

Definition at line 210 of file Array.h.

◆ ctype_mapper

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

Definition at line 164 of file Cell.h.

◆ element_type

Definition at line 202 of file Array.h.

◆ size_type

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

Definition at line 208 of file Array.h.

◆ value_type

typedef octave_value Array< octave_value >::value_type
inherited

Definition at line 204 of file Array.h.

Constructor & Destructor Documentation

◆ Cell() [1/13]

Cell::Cell ( void  )
default

◆ Cell() [2/13]

Cell::Cell ( const Cell c)
default

◆ ~Cell()

Cell::~Cell ( void  )
default

◆ Cell() [3/13]

Cell::Cell ( const octave_value val)
inline

Definition at line 54 of file Cell.h.

◆ Cell() [4/13]

Cell::Cell ( const octave_value_list ovl)

Definition at line 37 of file Cell.cc.

◆ Cell() [5/13]

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

Definition at line 59 of file Cell.h.

◆ Cell() [6/13]

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

Definition at line 63 of file Cell.h.

◆ Cell() [7/13]

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

Definition at line 66 of file Cell.h.

◆ Cell() [8/13]

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

Definition at line 69 of file Cell.h.

◆ Cell() [9/13]

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

◆ Cell() [10/13]

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

Definition at line 78 of file Cell.h.

References elem, n, and octave_value_list::resize().

◆ Cell() [11/13]

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() [12/13]

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

◆ Cell() [13/13]

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

Member Function Documentation

◆ all()

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

Definition at line 127 of file Cell.h.

◆ any()

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

Definition at line 130 of file Cell.h.

◆ any_element_is_nan()

bool Cell::any_element_is_nan ( void  ) const
inline

Definition at line 138 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 381 of file Array.h.

◆ as_matrix()

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

Return the array as a matrix.

Definition at line 401 of file Array.h.

◆ as_row()

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

Return the array as a row vector.

Definition at line 391 of file Array.h.

◆ assign() [1/7]

void Array< octave_value >::assign ( const Array< idx_vector > &  ia,
const Array< octave_value > &  rhs 
)
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 661 of file Array.h.

◆ assign() [2/7]

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

◆ assign() [3/7]

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

◆ assign() [4/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 647 of file Array.cc.

◆ assign() [5/7]

void Array< octave_value >::assign ( const idx_vector i,
const idx_vector j,
const Array< octave_value > &  rhs 
)
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 655 of file Array.h.

◆ assign() [6/7]

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

◆ assign() [7/7]

void Cell::assign ( const octave_value_list idx,
const Cell rhs,
const octave_value fill_val = Matrix () 
)

◆ byte_size()

size_t Array< octave_value >::byte_size ( void  ) 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 449 of file Array.h.

◆ 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 753 of file Array.cc.

◆ cellstr_value()

◆ checkelem() [1/8]

octave_value & Array< octave_value >::checkelem ( const Array< octave_idx_type > &  ra_idx)
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 497 of file Array.cc.

◆ checkelem() [2/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( const Array< octave_idx_type > &  ra_idx) const
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 527 of file Array.cc.

◆ checkelem() [3/8]

octave_value & Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
)
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 493 of file Array.cc.

◆ checkelem() [4/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const
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 522 of file Array.cc.

◆ checkelem() [5/8]

octave_value & Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
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 495 of file Array.cc.

◆ checkelem() [6/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
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 524 of file Array.cc.

◆ checkelem() [7/8]

octave_value & Array< octave_value >::checkelem ( octave_idx_type  n)
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 491 of file Array.cc.

◆ checkelem() [8/8]

Array< octave_value >::crefT Array< octave_value >::checkelem ( octave_idx_type  n) const
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 520 of file Array.cc.

◆ clear() [1/3]

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

Definition at line 371 of file Array.cc.

◆ clear() [2/3]

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

Definition at line 373 of file Array.h.

◆ clear() [3/3]

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

Definition at line 370 of file Array.cc.

◆ cols()

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

Definition at line 423 of file Array.h.

◆ column()

◆ columns()

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

Definition at line 424 of file Array.h.

◆ compute_index() [1/3]

octave_idx_type Array< octave_value >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
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 461 of file Array.cc.

◆ compute_index() [2/3]

octave_idx_type Array< octave_value >::compute_index ( octave_idx_type  i,
octave_idx_type  j 
) const
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 458 of file Array.cc.

◆ compute_index() [3/3]

octave_idx_type Array< octave_value >::compute_index ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
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 459 of file Array.cc.

◆ compute_index_unchecked()

octave_idx_type Array< octave_value >::compute_index_unchecked ( const Array< octave_idx_type > &  ra_idx) 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 463 of file Array.h.

◆ concat()

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

Definition at line 324 of file Cell.cc.

References insert(), and ra_idx.

◆ data()

const octave_value * Array< octave_value >::data ( void  ) 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 581 of file Array.h.

◆ delete_elements() [1/4]

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

Dispatcher to the above two.

Definition at line 677 of file Array.cc.

◆ 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 671 of file Array.cc.

◆ delete_elements() [3/4]

void Cell::delete_elements ( const octave_value_list idx)

◆ delete_elements() [4/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 674 of file Array.cc.

◆ diag() [1/2]

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

Definition at line 365 of file Cell.cc.

References Array< T >::diag().

◆ diag() [2/2]

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

Definition at line 371 of file Cell.cc.

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

◆ dim1()

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

Definition at line 414 of file Array.h.

◆ dim2()

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

Definition at line 422 of file Array.h.

◆ dim3()

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

◆ dims()

const dim_vector& Array< octave_value >::dims ( void  ) const
inlineinherited

Return a const-reference so that dims ()(i) works efficiently.

Definition at line 453 of file Array.h.

◆ elem() [1/8]

octave_value & Array< octave_value >::elem ( const Array< octave_idx_type > &  ra_idx)
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 510 of file Array.h.

◆ elem() [2/8]

crefT Array< octave_value >::elem ( const Array< octave_idx_type > &  ra_idx) 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 537 of file Array.h.

◆ elem() [3/8]

octave_value & Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
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 505 of file Array.h.

◆ elem() [4/8]

crefT Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j 
) 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 531 of file Array.h.

◆ elem() [5/8]

octave_value & Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
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 507 of file Array.h.

◆ elem() [6/8]

crefT Array< octave_value >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) 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 534 of file Array.h.

◆ elem() [7/8]

octave_value & Array< octave_value >::elem ( octave_idx_type  n)
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 499 of file Array.h.

◆ elem() [8/8]

crefT Array< octave_value >::elem ( octave_idx_type  n) 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 529 of file Array.h.

◆ fill()

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

Definition at line 368 of file Array.cc.

◆ find() [1/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 734 of file Array.cc.

◆ find() [2/2]

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

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

◆ fortran_vec() [1/2]

octave_value * Array< octave_value >::fortran_vec ( void  )
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 585 of file Array.cc.

◆ fortran_vec() [2/2]

const octave_value * Array< octave_value >::fortran_vec ( void  ) 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 583 of file Array.h.

◆ hermitian()

Array< octave_value > Array< octave_value >::hermitian ( octave_value (*)(const octave_value &)  fcn = nullptr) const
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 579 of file Array.cc.

◆ index() [1/10]

Array< octave_value > Array< octave_value >::index ( const Array< idx_vector > &  ia) const
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 597 of file Array.cc.

◆ index() [2/10]

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

◆ index() [3/10]

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

◆ index() [4/10]

Array< octave_value > Array< octave_value >::index ( const idx_vector i) const
inherited

Indexing without resizing.

Definition at line 593 of file Array.cc.

◆ index() [5/10]

Array<octave_value > Array< octave_value >::index ( const idx_vector i,
bool  resize_ok 
) 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 624 of file Array.h.

◆ index() [6/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 623 of file Array.cc.

◆ index() [7/10]

Array< octave_value > Array< octave_value >::index ( const idx_vector i,
const idx_vector j 
) const
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 595 of file Array.cc.

◆ index() [8/10]

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

◆ index() [9/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

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 629 of file Array.cc.

◆ index() [10/10]

◆ insert() [1/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 684 of file Array.cc.

◆ insert() [2/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 687 of file Array.cc.

◆ insert() [3/4]

Cell & Cell::insert ( const Cell a,
const Array< octave_idx_type > &  ra_idx 
)

Definition at line 337 of file Cell.cc.

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

◆ insert() [4/4]

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 >::insert(), and r.

Referenced by concat(), and octave_map::concat().

◆ instantiation_guard() [1/15]

void Array< Complex >::instantiation_guard ( )
privateinherited

Definition at line 97 of file Array-C.cc.

◆ instantiation_guard() [2/15]

void Array< float >::instantiation_guard ( )
privateinherited

Definition at line 168 of file Array-f.cc.

◆ instantiation_guard() [3/15]

void Array< FloatComplex >::instantiation_guard ( )
privateinherited

Definition at line 97 of file Array-fC.cc.

◆ instantiation_guard() [4/15]

void Array< long >::instantiation_guard ( )
privateinherited

Definition at line 53 of file Array-i.cc.

◆ instantiation_guard() [5/15]

void Array< octave_int8 >::instantiation_guard ( )
privateinherited

Definition at line 63 of file Array-i.cc.

◆ instantiation_guard() [6/15]

void Array< octave_int16 >::instantiation_guard ( )
privateinherited

Definition at line 64 of file Array-i.cc.

◆ instantiation_guard() [7/15]

void Array< octave_int32 >::instantiation_guard ( )
privateinherited

Definition at line 65 of file Array-i.cc.

◆ instantiation_guard() [8/15]

void Array< octave_int64 >::instantiation_guard ( )
privateinherited

Definition at line 66 of file Array-i.cc.

◆ instantiation_guard() [9/15]

void Array< octave_uint8 >::instantiation_guard ( )
privateinherited

Definition at line 73 of file Array-i.cc.

◆ instantiation_guard() [10/15]

void Array< octave_uint16 >::instantiation_guard ( )
privateinherited

Definition at line 74 of file Array-i.cc.

◆ instantiation_guard() [11/15]

void Array< octave_uint32 >::instantiation_guard ( )
privateinherited

Definition at line 75 of file Array-i.cc.

◆ instantiation_guard() [12/15]

void Array< octave_uint64 >::instantiation_guard ( )
privateinherited

Definition at line 76 of file Array-i.cc.

◆ instantiation_guard() [13/15]

void Array< idx_vector >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [14/15]

void Array< short >::instantiation_guard ( )
privateinherited

Definition at line 47 of file Array-s.cc.

◆ instantiation_guard() [15/15]

void Array< octave_value >::instantiation_guard
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 853 of file Array.cc.

◆ ipermute()

Array<octave_value > Array< octave_value >::ipermute ( const Array< octave_idx_type > &  vec) 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 567 of file Array.h.

◆ is_nd_vector()

bool Array< octave_value >::is_nd_vector ( void  ) 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 576 of file Array.h.

◆ is_shared()

bool Array< octave_value >::is_shared ( void  )
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 587 of file Array.h.

◆ is_sorted_rows() [1/2]

sortmode Array< octave_value >::is_sorted_rows ( sortmode  mode = UNSORTED) const
inherited

Ordering is auto-detected or can be specified.

Definition at line 718 of file Array.cc.

◆ is_sorted_rows() [2/2]

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

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

◆ is_true()

bool Cell::is_true ( void  ) const
inline

Definition at line 139 of file Cell.h.

◆ iscellstr()

bool Cell::iscellstr ( void  ) const

◆ isempty()

bool Array< octave_value >::isempty ( void  ) 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 572 of file Array.h.

◆ issorted() [1/3]

OCTAVE_API sortmode Array< float >::issorted ( sortmode  mode) const
inherited

Definition at line 100 of file Array-f.cc.

◆ issorted() [2/3]

sortmode Array< octave_value >::issorted ( sortmode  mode = UNSORTED) const
inherited

Ordering is auto-detected or can be specified.

Definition at line 712 of file Array.cc.

◆ issorted() [3/3]

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

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

◆ issquare()

bool Array< octave_value >::issquare ( void  ) 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 570 of file Array.h.

◆ isvector()

bool Array< octave_value >::isvector ( void  ) 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 574 of file Array.h.

◆ jit_array_rep()

void* Array< octave_value >::jit_array_rep ( void  ) 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 849 of file Array.h.

◆ jit_dimensions()

octave_idx_type* Array< octave_value >::jit_dimensions ( void  ) 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 847 of file Array.h.

◆ jit_ref_count()

int Array< octave_value >::jit_ref_count ( void  )
inlineinherited

WARNING: Only call these functions from jit.

Definition at line 843 of file Array.h.

◆ jit_slice_data()

octave_value * Array< octave_value >::jit_slice_data ( void  ) 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 845 of file Array.h.

◆ 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 558 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 42 of file Array-idx-vec.cc.

◆ lookup() [2/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 726 of file Array.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 722 of file Array.cc.

◆ lookup() [4/4]

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

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

◆ make_unique()

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

Definition at line 188 of file Array.h.

◆ map() [1/4]

◆ map() [2/4]

Array<U> Array< octave_value >::map ( 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 759 of file Array.h.

◆ map() [3/4]

Array<U> Array< octave_value >::map ( U(&)(const octave_value &)  fcn) 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 796 of file Array.h.

◆ map() [4/4]

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

Overloads for function references.

Definition at line 791 of file Array.h.

◆ maybe_economize()

void Array< octave_value >::maybe_economize ( void  )
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 689 of file Array.h.

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

◆ ndims()

int Array< octave_value >::ndims ( void  ) 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 589 of file Array.h.

◆ nil_rep()

Array< octave_value >::ArrayRep * Array< octave_value >::nil_rep ( void  )
staticprivateinherited

Definition at line 242 of file Array.cc.

◆ nnz()

octave_idx_type Cell::nnz ( void  ) const

Definition at line 291 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 42 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

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 740 of file Array.cc.

◆ numel()

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

Number of elements in the array.

Definition at line 377 of file Array.h.

◆ operator()() [1/8]

octave_value & Array< octave_value >::operator() ( const Array< octave_idx_type > &  ra_idx)
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 517 of file Array.h.

◆ operator()() [2/8]

crefT Array< octave_value >::operator() ( const Array< octave_idx_type > &  ra_idx) 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 546 of file Array.h.

◆ operator()() [3/8]

octave_value & Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
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 514 of file Array.h.

◆ operator()() [4/8]

crefT Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) 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 541 of file Array.h.

◆ operator()() [5/8]

octave_value & Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
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 515 of file Array.h.

◆ operator()() [6/8]

crefT Array< octave_value >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) 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 543 of file Array.h.

◆ operator()() [7/8]

octave_value & Array< octave_value >::operator() ( octave_idx_type  n)
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 513 of file Array.h.

◆ operator()() [8/8]

crefT Array< octave_value >::operator() ( octave_idx_type  n) 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 540 of file Array.h.

◆ operator=()

Cell& Cell::operator= ( const Cell c)
default

◆ 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 838 of file Array.cc.

◆ page()

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

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

Definition at line 554 of file Array.cc.

◆ pages()

octave_idx_type Array< octave_value >::pages ( void  ) 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 432 of file Array.h.

◆ permute()

Array< octave_value > Array< octave_value >::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const
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 566 of file Array.cc.

◆ print_info()

void Array< octave_value >::print_info ( std::ostream &  os,
const std::string &  prefix 
) const
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 700 of file Array.cc.

◆ 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

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.h.

◆ resize() [1/2]

void Array< octave_value >::resize ( const dim_vector dv)
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 614 of file Array.h.

◆ resize() [2/2]

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

◆ resize1() [1/2]

void Array< octave_value >::resize1 ( octave_idx_type  n)
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 611 of file Array.h.

◆ resize1() [2/2]

void Array< octave_value >::resize1 ( octave_idx_type  n,
const octave_value rfv 
)
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 610 of file Array.cc.

◆ resize2() [1/2]

void Array< octave_value >::resize2 ( octave_idx_type  nr,
octave_idx_type  nc 
)
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 605 of file Array.h.

◆ resize2() [2/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 604 of file Array.cc.

◆ resize_fill_value()

octave_value Cell::resize_fill_value ( void  ) const
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().

◆ rows()

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

Definition at line 415 of file Array.h.

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

◆ sort() [1/4]

Array< octave_value > Array< octave_value >::sort ( Array< octave_idx_type > &  sidx,
int  dim = 0,
sortmode  mode = ASCENDING 
) const
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 708 of file Array.cc.

◆ sort() [2/4]

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

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

◆ sort() [3/4]

Array< octave_value > Array< octave_value >::sort ( int  dim = 0,
sortmode  mode = ASCENDING 
) const
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 707 of file Array.cc.

◆ sort() [4/4]

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

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

◆ sort_rows_idx() [1/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 715 of file Array.cc.

◆ sort_rows_idx() [2/2]

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

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

◆ squeeze()

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

Chop off leading singleton dimensions.

Definition at line 456 of file Array.cc.

◆ string_vector_value()

string_vector Cell::string_vector_value ( void  ) const

◆ test()

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

Generic any/all test functionality with arbitrary predicate.

Definition at line 802 of file Array.h.

◆ test_all() [1/3]

bool Array< octave_value >::test_all ( bool(&)(const octave_value &)  fcn) 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 829 of file Array.h.

◆ test_all() [2/3]

bool Array< octave_value >::test_all ( bool(&)(octave_value fcn) 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 826 of file Array.h.

◆ test_all() [3/3]

bool Array< octave_value >::test_all ( fcn) 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 814 of file Array.h.

◆ test_any() [1/3]

bool Array< octave_value >::test_any ( bool(&)(const octave_value &)  fcn) 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 823 of file Array.h.

◆ test_any() [2/3]

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

Overloads for function references.

Definition at line 820 of file Array.h.

◆ test_any() [3/3]

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

Simpler calls.

Definition at line 810 of file Array.h.

◆ transpose()

Array< octave_value > Array< octave_value >::transpose ( void  ) const
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 578 of file Array.cc.

◆ xelem() [1/8]

octave_value & Array< octave_value >::xelem ( const Array< octave_idx_type > &  ra_idx)
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 482 of file Array.h.

◆ xelem() [2/8]

crefT Array< octave_value >::xelem ( const Array< octave_idx_type > &  ra_idx) 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 485 of file Array.h.

◆ xelem() [3/8]

octave_value & Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
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 472 of file Array.h.

◆ xelem() [4/8]

crefT Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) 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 474 of file Array.h.

◆ xelem() [5/8]

octave_value & Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
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 477 of file Array.h.

◆ xelem() [6/8]

crefT Array< octave_value >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) 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 479 of file Array.h.

◆ xelem() [7/8]

octave_value & Array< octave_value >::xelem ( octave_idx_type  n)
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 469 of file Array.h.

◆ xelem() [8/8]

crefT Array< octave_value >::xelem ( octave_idx_type  n) 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 470 of file Array.h.

◆ xisalnum()

Cell Cell::xisalnum ( void  ) const
inline

Definition at line 147 of file Cell.h.

References octave_value::xisalnum().

◆ xisalpha()

Cell Cell::xisalpha ( void  ) const
inline

Definition at line 148 of file Cell.h.

References octave_value::xisalpha().

◆ xisascii()

Cell Cell::xisascii ( void  ) const
inline

Definition at line 149 of file Cell.h.

References octave_value::xisascii().

◆ xiscntrl()

Cell Cell::xiscntrl ( void  ) const
inline

Definition at line 150 of file Cell.h.

References octave_value::xiscntrl().

◆ xisdigit()

Cell Cell::xisdigit ( void  ) const
inline

Definition at line 151 of file Cell.h.

References octave_value::xisdigit().

◆ xisgraph()

Cell Cell::xisgraph ( void  ) const
inline

Definition at line 152 of file Cell.h.

References octave_value::xisgraph().

◆ xislower()

Cell Cell::xislower ( void  ) const
inline

Definition at line 153 of file Cell.h.

References octave_value::xislower().

◆ xisprint()

Cell Cell::xisprint ( void  ) const
inline

Definition at line 154 of file Cell.h.

References octave_value::xisprint().

◆ xispunct()

Cell Cell::xispunct ( void  ) const
inline

Definition at line 155 of file Cell.h.

References octave_value::xispunct().

◆ xisspace()

Cell Cell::xisspace ( void  ) const
inline

Definition at line 156 of file Cell.h.

References octave_value::xisspace().

◆ xisupper()

Cell Cell::xisupper ( void  ) const
inline

Definition at line 157 of file Cell.h.

References octave_value::xisupper().

◆ xisxdigit()

Cell Cell::xisxdigit ( void  ) const
inline

Definition at line 158 of file Cell.h.

References octave_value::xisxdigit().

◆ xtolower()

Cell Cell::xtolower ( void  ) const
inline

Definition at line 159 of file Cell.h.

References octave_value::xtolower().

◆ xtoupper()

Cell Cell::xtoupper ( void  ) const
inline

Definition at line 160 of file Cell.h.

References octave_value::xtoupper().

Member Data Documentation

◆ dimensions

dim_vector Array< octave_value >::dimensions
protectedinherited

Definition at line 217 of file Array.h.

◆ rep

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

Definition at line 219 of file Array.h.

◆ slice_data

octave_value * Array< octave_value >::slice_data
protectedinherited

Definition at line 228 of file Array.h.

◆ slice_len

octave_idx_type Array< octave_value >::slice_len
protectedinherited

Definition at line 229 of file Array.h.


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