GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Friends | List of all members
Array< T > Singleton Reference

Handles the reference counting for all the derived classes. More...

#include "Array.h"

Inheritance diagram for Array< T >:
Inheritance graph
[legend]
Collaboration diagram for Array< T >:
Collaboration graph
[legend]

Classes

class  ArrayRep
 The real representation of all arrays. More...
 

Public Types

typedef bool(* compare_fcn_type )(typename ref_param< T >::type, typename ref_param< T >::type)
 
typedef ref_param< T >::type crefT
 
typedef T element_type
 

Public Member Functions

 Array (void)
 Empty ctor (0 by 0). More...
 
 Array (const dim_vector &dv)
 nD uninitialized ctor. More...
 
 Array (const dim_vector &dv, const T &val)
 nD initialized ctor. More...
 
 Array (const Array< T > &a, const dim_vector &dv)
 Reshape constructor. More...
 
template<class U >
 Array (const Array< U > &a)
 Type conversion case. More...
 
 Array (const Array< T > &a)
 No type conversion case. More...
 
virtual ~Array (void)
 
Array< T > as_column (void) const
 Return the array as a column vector. More...
 
Array< T > as_matrix (void) const
 Return the array as a matrix. More...
 
Array< T > as_row (void) const
 Return the array as a row vector. More...
 
size_t byte_size (void) const
 
T & checkelem (octave_idx_type n)
 
T & checkelem (octave_idx_type i, octave_idx_type j)
 
T & checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
T & checkelem (const Array< octave_idx_type > &ra_idx)
 
crefT checkelem (octave_idx_type n) const
 
crefT checkelem (octave_idx_type i, octave_idx_type j) const
 
crefT checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 
crefT checkelem (const Array< octave_idx_type > &ra_idx) const
 
void clear (void)
 
void clear (const dim_vector &dv)
 
void clear (octave_idx_type r, octave_idx_type c)
 
Array< T > column (octave_idx_type k) const
 Extract column: A(:,k+1). More...
 
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
 
const T * data (void) const
 
Array< T > diag (octave_idx_type k=0) const
 Get the kth super or subdiagonal. More...
 
Array< T > 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...
 
T & elem (octave_idx_type n)
 
T & elem (octave_idx_type i, octave_idx_type j)
 
T & elem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
T & elem (const Array< octave_idx_type > &ra_idx)
 
crefT elem (octave_idx_type n) const
 
crefT elem (octave_idx_type i, octave_idx_type j) const
 
crefT elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 
crefT elem (const Array< octave_idx_type > &ra_idx) const
 
void fill (const T &val)
 
template<>
Array< octave_idx_typefind (octave_idx_type, bool) const
 
template<>
Array< octave_idx_typefind (octave_idx_type, bool) const
 
template<>
Array< octave_idx_typefind (octave_idx_type, bool) const
 
template<>
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 T * fortran_vec (void) const
 
T * fortran_vec (void)
 
Array< T > hermitian (T(*fcn)(const T &)=0) const
 
Array< T > & insert (const Array< T > &a, const Array< octave_idx_type > &idx)
 Insert an array into another at a specified position. More...
 
Array< T > & insert (const Array< T > &a, octave_idx_type r, octave_idx_type c)
 This is just a special case for idx = [r c 0 ...]. More...
 
Array< T > ipermute (const Array< octave_idx_type > &vec) const
 
bool is_empty (void) const
 
bool is_shared (void)
 
template<>
sortmode is_sorted (sortmode) const
 
template<>
sortmode is_sorted (sortmode) const
 
template<>
sortmode is_sorted (sortmode) const
 
template<>
sortmode is_sorted (sortmode) const
 
sortmode is_sorted (sortmode mode=UNSORTED) const
 Ordering is auto-detected or can be specified. More...
 
template<>
sortmode is_sorted_rows (sortmode) const
 
template<>
sortmode is_sorted_rows (sortmode) const
 
template<>
sortmode is_sorted_rows (sortmode) const
 
template<>
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_vector (void) const
 
Array< T > linear_slice (octave_idx_type lo, octave_idx_type up) const
 Extract a slice from this array as a column vector: A(:)(lo+1:up). More...
 
template<>
Array< octave_idx_typelookup (const Array< idx_vector > &, sortmode) const
 
template<>
octave_idx_type lookup (idx_vector const &, sortmode) const
 
template<>
octave_idx_type lookup (scanf_format_elt_ptr const &, sortmode) const
 
template<>
Array< octave_idx_typelookup (const Array< scanf_format_elt_ptr > &, sortmode) const
 
template<>
octave_idx_type lookup (printf_format_elt_ptr const &, sortmode) const
 
template<>
Array< octave_idx_typelookup (const Array< printf_format_elt_ptr > &, sortmode) const
 
template<>
Array< octave_idx_typelookup (const Array< octave_stream > &, sortmode) const
 
template<>
octave_idx_type lookup (octave_stream const &, sortmode) const
 
octave_idx_type lookup (const T &value, sortmode mode=UNSORTED) const
 Do a binary lookup in a sorted array. More...
 
Array< octave_idx_typelookup (const Array< T > &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)
 
template<class U , class F >
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
 
template<>
octave_idx_type nnz (void) const
 
template<>
octave_idx_type nnz (void) const
 
template<>
octave_idx_type nnz (void) const
 
template<>
octave_idx_type nnz (void) const
 
octave_idx_type nnz (void) const
 Count nonzero elements. More...
 
template<>
Array< idx_vectornth_element (const idx_vector &, int) const
 
template<>
Array< scanf_format_elt_ptrnth_element (const idx_vector &, int) const
 
template<>
Array< printf_format_elt_ptrnth_element (const idx_vector &, int) const
 
template<>
Array< octave_streamnth_element (const idx_vector &, int) const
 
Array< T > nth_element (const idx_vector &n, int dim=0) const
 Returns the n-th element in increasing order, using the same ordering as used for sort. More...
 
T & operator() (octave_idx_type n)
 
T & operator() (octave_idx_type i, octave_idx_type j)
 
T & operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
T & operator() (const Array< octave_idx_type > &ra_idx)
 
crefT operator() (octave_idx_type n) const
 
crefT operator() (octave_idx_type i, octave_idx_type j) const
 
crefT operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 
crefT operator() (const Array< octave_idx_type > &ra_idx) const
 
Array< T > & operator= (const Array< T > &a)
 
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< T > page (octave_idx_type k) const
 Extract page: A(:,:,k+1). More...
 
Array< T > permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
Array< T > reshape (octave_idx_type nr, octave_idx_type nc) const
 
Array< T > reshape (const dim_vector &new_dims) const
 
virtual T resize_fill_value (void) const
 
template<>
Array< idx_vectorsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
template<>
Array< idx_vectorsort (int, sortmode) const
 
template<>
Array< scanf_format_elt_ptrsort (int, sortmode) const
 
template<>
Array< scanf_format_elt_ptrsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
template<>
Array< printf_format_elt_ptrsort (int, sortmode) const
 
template<>
Array< printf_format_elt_ptrsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
template<>
Array< octave_streamsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
template<>
Array< octave_streamsort (int, sortmode) const
 
Array< T > sort (int dim=0, sortmode mode=ASCENDING) const
 
Array< T > sort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const
 
template<>
Array< octave_idx_typesort_rows_idx (sortmode) const
 
template<>
Array< octave_idx_typesort_rows_idx (sortmode) const
 
template<>
Array< octave_idx_typesort_rows_idx (sortmode) const
 
template<>
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< T > squeeze (void) const
 Chop off leading singleton dimensions. More...
 
template<class F , bool zero>
bool test (F fcn) const
 Generic any/all test functionality with arbitrary predicate. More...
 
Array< T > transpose (void) const
 
T & xelem (octave_idx_type n)
 
crefT xelem (octave_idx_type n) const
 
T & xelem (octave_idx_type i, octave_idx_type j)
 
crefT xelem (octave_idx_type i, octave_idx_type j) const
 
T & xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 
crefT xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 
T & xelem (const Array< octave_idx_type > &ra_idx)
 
crefT xelem (const Array< octave_idx_type > &ra_idx) 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< T > index (const idx_vector &i) const
 Indexing without resizing. More...
 
Array< T > index (const idx_vector &i, const idx_vector &j) const
 
Array< T > index (const Array< idx_vector > &ia) const
 
void resize2 (octave_idx_type nr, octave_idx_type nc, const T &rfv)
 Resizing (with fill). More...
 
void resize2 (octave_idx_type nr, octave_idx_type nc)
 
void resize1 (octave_idx_type n, const T &rfv)
 
void resize1 (octave_idx_type n)
 
void resize (const dim_vector &dv, const T &rfv)
 
void resize (const dim_vector &dv)
 
Array< T > index (const idx_vector &i, bool resize_ok, const T &rfv) const
 Indexing with possible resizing and fill. More...
 
Array< T > index (const idx_vector &i, bool resize_ok) const
 
Array< T > index (const idx_vector &i, const idx_vector &j, bool resize_ok, const T &rfv) const
 
Array< T > index (const idx_vector &i, const idx_vector &j, bool resize_ok) const
 
Array< T > index (const Array< idx_vector > &ia, bool resize_ok, const T &rfv) const
 
Array< T > index (const Array< idx_vector > &ia, bool resize_ok) const
 
void assign (const idx_vector &i, const Array< T > &rhs, const T &rfv)
 Indexed assignment (always with resize & fill). More...
 
void assign (const idx_vector &i, const Array< T > &rhs)
 
void assign (const idx_vector &i, const idx_vector &j, const Array< T > &rhs, const T &rfv)
 
void assign (const idx_vector &i, const idx_vector &j, const Array< T > &rhs)
 
void assign (const Array< idx_vector > &ia, const Array< T > &rhs, const T &rfv)
 
void assign (const Array< idx_vector > &ia, const Array< T > &rhs)
 
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...
 
template<class U >
Array< U > map (U(&fcn)(T)) const
 Overloads for function references. More...
 
template<class U >
Array< U > map (U(&fcn)(const T &)) const
 
template<class F >
bool test_any (F fcn) const
 Simpler calls. More...
 
template<class F >
bool test_all (F fcn) const
 
bool test_any (bool(&fcn)(T)) const
 Overloads for function references. More...
 
bool test_any (bool(&fcn)(const T &)) const
 
bool test_all (bool(&fcn)(T)) const
 
bool test_all (bool(&fcn)(const T &)) const
 
intjit_ref_count (void)
 WARNING: Only call these functions from jit. More...
 
T * jit_slice_data (void) const
 
octave_idx_typejit_dimensions (void) const
 
void * jit_array_rep (void) const
 

Static Public Member Functions

static Array< T > cat (int dim, octave_idx_type n, const Array< T > *array_list)
 Concatenation along a specified (0-based) dimension, equivalent to cat(). More...
 

Protected Member Functions

 Array (const Array< T > &a, const dim_vector &dv, octave_idx_type l, octave_idx_type u)
 slice constructor More...
 
 Array (T *sdata, octave_idx_type slen, octave_idx_type *adims, void *arep)
 For jit support. More...
 

Protected Attributes

dim_vector dimensions
 
Array< T >::ArrayReprep
 
T * slice_data
 
octave_idx_type slice_len
 

Private Member Functions

template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
template<>
void instantiation_guard ()
 
Array< T >::ArrayRepnil_rep (void) const
 

Static Private Member Functions

static void instantiation_guard ()
 

Friends

template<class U >
class Array
 

Detailed Description

template<class T>
singleton Array< T >

Handles the reference counting for all the derived classes.

Definition at line 45 of file Array.h.

Member Typedef Documentation

template<class T>
typedef bool(* Array< T >::compare_fcn_type)(typename ref_param< T >::type, typename ref_param< T >::type)

Definition at line 122 of file Array.h.

template<class T>
typedef ref_param<T>::type Array< T >::crefT

Definition at line 120 of file Array.h.

template<class T>
typedef T Array< T >::element_type

Definition at line 118 of file Array.h.

Constructor & Destructor Documentation

template<class T>
Array< T >::Array ( const Array< T > &  a,
const dim_vector dv,
octave_idx_type  l,
octave_idx_type  u 
)
inlineprotected

slice constructor

Definition at line 142 of file Array.h.

template<class T>
Array< T >::Array ( T *  sdata,
octave_idx_type  slen,
octave_idx_type adims,
void *  arep 
)
inlineprotected

For jit support.

Definition at line 165 of file Array.h.

template<class T>
Array< T >::Array ( void  )
inline

Empty ctor (0 by 0).

Definition at line 173 of file Array.h.

template<class T>
Array< T >::Array ( const dim_vector dv)
inlineexplicit

nD uninitialized ctor.

Definition at line 181 of file Array.h.

template<class T>
Array< T >::Array ( const dim_vector dv,
const T &  val 
)
inlineexplicit

nD initialized ctor.

Definition at line 190 of file Array.h.

template<class T>
Array< T >::Array ( const Array< T > &  a,
const dim_vector dv 
)
template<class T>
template<class U >
Array< T >::Array ( const Array< U > &  a)
inline

Type conversion case.

Definition at line 204 of file Array.h.

template<class T>
Array< T >::Array ( const Array< T > &  a)
inline

No type conversion case.

Definition at line 211 of file Array.h.

template<class T>
virtual Array< T >::~Array ( void  )
inlinevirtual

Definition at line 220 of file Array.h.

Member Function Documentation

template<class T>
Array<T> Array< T >::as_column ( void  ) const
inline

Return the array as a column vector.

Definition at line 279 of file Array.h.

Referenced by patch::properties::update_fvc().

template<class T>
Array<T> Array< T >::as_matrix ( void  ) const
inline

Return the array as a matrix.

Definition at line 299 of file Array.h.

Referenced by Sparse< T >::index().

template<class T>
Array<T> Array< T >::as_row ( void  ) const
inline

Return the array as a row vector.

Definition at line 289 of file Array.h.

template<class T>
void Array< T >::assign ( const idx_vector i,
const Array< T > &  rhs,
const T &  rfv 
)
template<class T>
void Array< T >::assign ( const idx_vector i,
const Array< T > &  rhs 
)
inline

Definition at line 548 of file Array.h.

template<class T>
void Array< T >::assign ( const idx_vector i,
const idx_vector j,
const Array< T > &  rhs,
const T &  rfv 
)
template<class T>
void Array< T >::assign ( const idx_vector i,
const idx_vector j,
const Array< T > &  rhs 
)
inline

Definition at line 555 of file Array.h.

template<class T>
void Array< T >::assign ( const Array< idx_vector > &  ia,
const Array< T > &  rhs,
const T &  rfv 
)
template<class T>
void Array< T >::assign ( const Array< idx_vector > &  ia,
const Array< T > &  rhs 
)
inline

Definition at line 561 of file Array.h.

template<class T>
size_t Array< T >::byte_size ( void  ) const
inline
template<class T>
octave_idx_type Array< T >::capacity ( void  ) const
inline
template<class T>
Array< T > Array< T >::cat ( int  dim,
octave_idx_type  n,
const Array< T > *  array_list 
)
static

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

References idx_vector::colon, dim_vector::concat(), Array< T >::dims(), dim_vector::hvcat(), dim_vector::length(), max(), and dim_vector::zero_by_zero().

Referenced by single_type_concat().

template<class T >
T & Array< T >::checkelem ( octave_idx_type  n)
template<class T >
T & Array< T >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
)

Definition at line 202 of file Array.cc.

References compute_index(), and elem.

template<class T >
T & Array< T >::checkelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)

Definition at line 209 of file Array.cc.

References compute_index(), and elem.

template<class T >
T & Array< T >::checkelem ( const Array< octave_idx_type > &  ra_idx)

Definition at line 216 of file Array.cc.

References compute_index(), and elem.

template<class T >
Array< T >::crefT Array< T >::checkelem ( octave_idx_type  n) const

Definition at line 223 of file Array.cc.

References elem, gripe_index_out_of_range(), and gripe_invalid_index().

template<class T >
Array< T >::crefT Array< T >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const

Definition at line 236 of file Array.cc.

References compute_index(), and elem.

template<class T >
Array< T >::crefT Array< T >::checkelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const

Definition at line 243 of file Array.cc.

References compute_index(), and elem.

template<class T >
Array< T >::crefT Array< T >::checkelem ( const Array< octave_idx_type > &  ra_idx) const

Definition at line 251 of file Array.cc.

References compute_index(), and elem.

template<class T >
void Array< T >::clear ( void  )
template<class T >
void Array< T >::clear ( const dim_vector dv)
template<class T>
void Array< T >::clear ( octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 249 of file Array.h.

template<class T>
octave_idx_type Array< T >::cols ( void  ) const
inline

Definition at line 321 of file Array.h.

Referenced by AEPBALANCE::AEPBALANCE(), airy(), Matrix::append(), FloatMatrix::append(), ComplexMatrix::append(), FloatComplexMatrix::append(), biry(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseComplexQR::SparseComplexQR_rep::C(), SparseQR::SparseQR_rep::C(), chol2inv_internal(), cntr(), ComplexAEPBALANCE::ComplexAEPBALANCE(), ComplexLU::ComplexLU(), ComplexMatrix::ComplexMatrix(), dmsolve_insert(), dmsolve_permute(), do_bessel(), drawcn(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), FloatAEPBALANCE::FloatAEPBALANCE(), FloatComplexAEPBALANCE::FloatComplexAEPBALANCE(), FloatComplexLU::FloatComplexLU(), FloatComplexMatrix::FloatComplexMatrix(), FloatLU::FloatLU(), FloatMatrix::FloatMatrix(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), gammainc(), Gaudiowrite(), FloatEIG::hermitian_init(), EIG::hermitian_init(), Sparse< T >::index(), FloatQR::init(), ComplexQR::init(), FloatComplexQR::init(), ComplexQRP::init(), QR::init(), FloatComplexQRP::init(), FloatQRP::init(), QRP::init(), HESS::init(), FloatHESS::init(), ComplexHESS::init(), FloatComplexHESS::init(), FloatGEPBALANCE::init(), GEPBALANCE::init(), ComplexGEPBALANCE::init(), SCHUR::init(), FloatSCHUR::init(), FloatComplexGEPBALANCE::init(), ComplexSCHUR::init(), FloatComplexSCHUR::init(), FloatSVD::init(), CHOL::init(), ComplexSVD::init(), FloatCHOL::init(), ComplexCHOL::init(), FloatComplexSVD::init(), FloatComplexCHOL::init(), SVD::init(), EIG::init(), FloatEIG::init(), ComplexMatrix::insert(), FloatComplexMatrix::insert(), kron(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), Matrix::ltsolve(), FloatMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), LU::LU(), LuAminusSigmaB(), make_cholb(), mark_facets(), Matrix::Matrix(), matrix_real_probe(), null(), operator*(), ComplexMatrix::operator+=(), FloatComplexMatrix::operator+=(), ComplexMatrix::operator-=(), FloatComplexMatrix::operator-=(), operator<<(), boolMatrix::operator==(), charMatrix::operator==(), FloatMatrix::operator==(), Matrix::operator==(), ComplexMatrix::operator==(), FloatComplexMatrix::operator==(), operator>>(), qrsolve(), octave_char_matrix_str::save_ascii(), octave_cell::save_ascii(), save_mat_ascii_data(), save_mat_binary_data(), log_scaler::scale(), neg_log_scaler::scale(), Matrix::stack(), FloatMatrix::stack(), ComplexMatrix::stack(), FloatComplexMatrix::stack(), stack_complex_matrix(), FloatEIG::symmetric_init(), EIG::symmetric_init(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_bool_matrix::try_narrowing_conversion(), unstack_complex_matrix(), FloatQR::update(), ComplexQR::update(), FloatComplexQR::update(), LU::update(), FloatLU::update(), QR::update(), ComplexLU::update(), FloatComplexLU::update(), LU::update_piv(), FloatLU::update_piv(), ComplexLU::update_piv(), FloatComplexLU::update_piv(), Matrix::utsolve(), FloatMatrix::utsolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), vector_product(), xgemm(), and xpow().

template<class T >
Array< T > Array< T >::column ( octave_idx_type  k) const

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

Definition at line 258 of file Array.cc.

References gripe_index_out_of_range().

Referenced by qp().

template<class T>
octave_idx_type Array< T >::columns ( void  ) const
inline

Definition at line 322 of file Array.h.

Referenced by column_norms(), ComplexSCHUR::ComplexSCHUR(), FloatQR::delete_col(), ComplexQR::delete_col(), FloatComplexQR::delete_col(), QR::delete_col(), FloatQR::delete_row(), ComplexQR::delete_row(), FloatComplexQR::delete_row(), QR::delete_row(), octave_float_complex_matrix::diag(), octave_complex_matrix::diag(), octave_float_matrix::diag(), octave_matrix::diag(), do_fftn(), do_mgorth(), do_repelems(), do_tril(), do_triu(), opengl_selector::draw_image(), encode_bool_image(), F__dsearchn__(), F__octave_link_file_dialog__(), F__pchip_deriv__(), Fhex2num(), FloatComplexSCHUR::FloatComplexSCHUR(), FloatSCHUR::FloatSCHUR(), FloatQR::form(), ComplexQR::form(), FloatComplexQR::form(), QR::form(), G__delaunayn__(), G__voronoi__(), Gaudiowrite(), Gconvhulln(), Array< T >::index(), Array< T >::insert(), FloatQR::insert_col(), ComplexQR::insert_col(), FloatComplexQR::insert_col(), QR::insert_col(), FloatQR::insert_row(), ComplexQR::insert_row(), FloatComplexQR::insert_row(), QR::insert_row(), mark_upper_triangular(), max(), min(), octave_print_internal(), operator*(), pr_max_internal(), pr_min_internal(), row_norms(), graphics_xform::scale(), SCHUR::SCHUR(), graphics_object::set(), FloatQR::shift_cols(), ComplexQR::shift_cols(), FloatComplexQR::shift_cols(), QR::shift_cols(), FloatQR::update(), ComplexQR::update(), FloatComplexQR::update(), LU::update(), FloatLU::update(), QR::update(), FloatComplexLU::update(), ComplexLU::update(), patch::properties::update_data(), patch::properties::update_fvc(), surface::properties::update_normals(), LU::update_piv(), FloatLU::update_piv(), ComplexLU::update_piv(), FloatComplexLU::update_piv(), and x_el_div().

template<class T >
octave_idx_type Array< T >::compute_index ( octave_idx_type  i,
octave_idx_type  j 
) const

Definition at line 167 of file Array.cc.

References compute_index().

template<class T >
octave_idx_type Array< T >::compute_index ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const

Definition at line 174 of file Array.cc.

References compute_index().

template<class T >
octave_idx_type Array< T >::compute_index ( const Array< octave_idx_type > &  ra_idx) const

Definition at line 182 of file Array.cc.

References compute_index().

template<class T>
octave_idx_type Array< T >::compute_index_unchecked ( const Array< octave_idx_type > &  ra_idx) const
inline

Definition at line 347 of file Array.h.

template<class T>
const T* Array< T >::data ( void  ) const
inline

Definition at line 479 of file Array.h.

Referenced by mxArray_octave_value::array_to_string(), octave_struct::as_mxArray(), octave_char_matrix::as_mxArray(), octave_float_complex_matrix::as_mxArray(), octave_cell::as_mxArray(), octave_complex_matrix::as_mxArray(), octave_float_matrix::as_mxArray(), octave_bool_matrix::as_mxArray(), octave_matrix::as_mxArray(), octave_scalar_struct::as_mxArray(), octave_range::as_mxArray(), Array< T >::assign(), binmap(), Cell::Cell(), compute_index(), Array< octave_value >::compute_index_unchecked(), convert_cdata(), DiagArray2< Complex >::data(), do_merge(), do_mm_binary_op(), do_mm_inplace_op(), do_ms_binary_op(), do_mx_check(), do_mx_cumminmax_op(), do_mx_diff_op(), do_mx_minmax_op(), do_mx_unary_op(), do_sm_binary_op(), opengl_selector::draw_image(), F__pchip_deriv__(), opengl_selector::fake_text(), Fbase64_encode(), Fblkmm(), Fdot(), Fellipj(), filter(), Fordschur(), Fqz(), get_array_limits(), mxArray_octave_value::get_string(), MArray< T >::idx_add(), MArray< T >::idx_add_nd(), idx_vector::idx_mask_rep::idx_mask_rep(), MArray< T >::idx_max(), MArray< T >::idx_min(), octave_char_matrix::index_vector(), FloatQR::insert_col(), ComplexQR::insert_col(), FloatComplexQR::insert_col(), QR::insert_col(), Array< float >::is_sorted(), kron(), Array< T >::lookup(), octinternal_do_mul_pm_sm(), octinternal_do_mul_sm_pm(), operator*(), ComplexRowVector::operator+=(), ComplexColumnVector::operator+=(), FloatComplexRowVector::operator+=(), FloatComplexColumnVector::operator+=(), ComplexMatrix::operator+=(), FloatComplexMatrix::operator+=(), ComplexRowVector::operator-=(), ComplexColumnVector::operator-=(), FloatComplexRowVector::operator-=(), FloatComplexColumnVector::operator-=(), ComplexMatrix::operator-=(), FloatComplexMatrix::operator-=(), boolMatrix::operator==(), RowVector::operator==(), ColumnVector::operator==(), FloatRowVector::operator==(), FloatColumnVector::operator==(), ComplexRowVector::operator==(), ComplexColumnVector::operator==(), FloatComplexColumnVector::operator==(), FloatComplexRowVector::operator==(), charMatrix::operator==(), Matrix::operator==(), FloatMatrix::operator==(), ComplexMatrix::operator==(), FloatComplexMatrix::operator==(), qs_preprocess(), qs_replace(), qs_search(), octave_float_diag_matrix::save_binary(), octave_float_complex_diag_matrix::save_binary(), octave_complex_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), octave_float_complex_matrix::save_binary(), octave_complex_matrix::save_binary(), octave_float_matrix::save_binary(), octave_perm_matrix::save_binary(), octave_matrix::save_binary(), save_mat5_binary_element(), save_mat_binary_data(), log_scaler::scale(), neg_log_scaler::scale(), Sparse< T >::Sparse(), stack_complex_matrix(), strcmp_array_op(), strcmpi_array_op(), strncmp_array_op(), strncmpi_array_op(), unstack_complex_matrix(), LU::update_piv(), FloatLU::update_piv(), ComplexLU::update_piv(), FloatComplexLU::update_piv(), vector_product(), octave_stream::write(), write_mat5_array(), and xgemm().

template<class T >
void Array< T >::delete_elements ( const idx_vector i)
template<class T >
void Array< T >::delete_elements ( int  dim,
const idx_vector i 
)
template<class T >
void Array< T >::delete_elements ( const Array< idx_vector > &  ia)

Dispatcher to the above two.

Definition at line 1493 of file Array.cc.

References jit_convention::length, and Array< T >::length().

template<class T >
Array< T > Array< T >::diag ( octave_idx_type  k = 0) const

Get the kth super or subdiagonal.

The zeroth diagonal is the ordinary diagonal.

Definition at line 2526 of file Array.cc.

References abs(), d, elem, dim_vector::length(), Array< T >::resize(), and Array< T >::xelem().

Referenced by intNDArray< T >::diag(), boolMatrix::diag(), boolNDArray::diag(), charNDArray::diag(), Cell::diag(), ComplexNDArray::diag(), FloatComplexNDArray::diag(), FloatNDArray::diag(), and NDArray::diag().

template<class T >
Array< T > Array< T >::diag ( octave_idx_type  m,
octave_idx_type  n 
) const
template<class T>
octave_idx_type Array< T >::dim1 ( void  ) const
inline

Definition at line 312 of file Array.h.

Referenced by PermMatrix::nelem(), and PermMatrix::rows().

template<class T>
octave_idx_type Array< T >::dim2 ( void  ) const
inline
template<class T>
octave_idx_type Array< T >::dim3 ( void  ) const
inline

Definition at line 329 of file Array.h.

Referenced by ft_render::process_character(), and ft_render::render().

template<class T>
const dim_vector& Array< T >::dims ( void  ) const
inline

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

Definition at line 337 of file Array.h.

Referenced by jit_operation::add_overload(), airy(), octave_map::assign(), Array< T >::assign(), betainc(), betaincinv(), binmap(), biry(), bitopxx(), axes::properties::calc_ticklabels(), Array< T >::cat(), octave_value::complex_vector_value(), charNDArray::concat(), conv_to_int_array(), convolve(), octave_map::delete_elements(), do_bessel(), do_bitpack(), do_bsxfun_op(), do_inplace_bsxfun_op(), do_merge(), do_mm_binary_op(), do_mm_inplace_op(), do_ms_binary_op(), do_mx_cumminmax_op(), do_mx_diff_op(), do_mx_minmax_op(), do_mx_unary_op(), do_numeric_lookup(), do_rand(), do_rc_map(), do_simple_cellfun(), do_sm_binary_op(), do_strcmp_fun(), do_tril(), do_triu(), elem_xpow(), encode_bool_image(), Fcell2struct(), Fcellindexmat(), Fcomplex(), Fellipj(), Feps(), Ffilter(), filter(), find_nonzero_elem_idx(), Fisa(), Fisargout(), Fisfield(), octave_value::float_complex_vector_value(), octave_value::float_vector_value(), Flookup(), Fregexprep(), Frepelems(), Fstr2double(), Fstrfind(), Fstrrep(), Fstruct(), gammainc(), MArray< T >::idx_add_nd(), idx_vector::idx_mask_rep::idx_mask_rep(), idx_vector::idx_vector_rep::idx_vector_rep(), octave_map::index(), FloatGEPBALANCE::init(), GEPBALANCE::init(), ComplexGEPBALANCE::init(), FloatComplexGEPBALANCE::init(), ComplexNDArray::insert(), FloatComplexNDArray::insert(), Array< T >::insert(), octave_value::int_vector_value(), is_handle(), is_handle_visible(), Array< T >::lookup(), octave_float_matrix::map(), octave_matrix::map(), map_2_xlog2(), cdef_object::map_value(), NDArray::NDArray(), oct_catop_matrix_struct(), oct_catop_struct_matrix(), octave_value::octave_idx_type_vector_value(), octave_print_internal(), octcellregexp(), jit_operation::overload(), octave_map::permute(), octave_cell::print_raw(), log_scaler::scale(), neg_log_scaler::scale(), graphics_xform::scale(), octave_map::setfield(), Array< T >::sort(), strcmp_array_op(), strcmpi_array_op(), try_cellfun_internal_ops(), patch::properties::update_data(), patch::properties::update_fvc(), octave_value::vector_value(), and x_el_div().

template<class T>
T& Array< T >::elem ( octave_idx_type  n)
inline

Definition at line 380 of file Array.h.

Referenced by atan2(), AEPBALANCE::balancing_matrix(), FloatAEPBALANCE::balancing_matrix(), ComplexAEPBALANCE::balancing_matrix(), FloatComplexAEPBALANCE::balancing_matrix(), octave_float_complex_matrix::char_array_value(), octave_complex_matrix::char_array_value(), octave_float_matrix::char_array_value(), octave_matrix::char_array_value(), octave_range::char_array_value(), DiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::column(), FloatComplexDiagMatrix::column(), Matrix::column_max(), FloatMatrix::column_max(), ComplexMatrix::column_max(), FloatComplexMatrix::column_max(), Matrix::column_min(), FloatMatrix::column_min(), ComplexMatrix::column_min(), FloatComplexMatrix::column_min(), ComplexMatrix::ComplexMatrix(), charNDArray::concat(), FloatNDArray::concat(), NDArray::concat(), conv_to_int_array(), printf_format_list::current(), ddaspk_f(), ddaspk_j(), ddasrt_j(), ddassl_f(), ddassl_j(), delete_graphics_objects(), DiagArray2< Complex >::dgelem(), dmsolve_extract(), LSODE::do_integrate(), DiagArray2< Complex >::elem(), Array< octave_value >::elem(), charMatrix::extract(), DiagMatrix::extract(), FloatDiagMatrix::extract(), ComplexRowVector::extract(), ComplexColumnVector::extract(), FloatComplexRowVector::extract(), FloatComplexColumnVector::extract(), ComplexDiagMatrix::extract(), FloatComplexDiagMatrix::extract(), ComplexRowVector::extract_n(), ComplexColumnVector::extract_n(), FloatComplexRowVector::extract_n(), FloatComplexColumnVector::extract_n(), F__go_delete__(), Ffunctions(), Fhex2num(), DiagMatrix::fill(), FloatDiagMatrix::fill(), ComplexDiagMatrix::fill(), FloatComplexDiagMatrix::fill(), FloatComplexMatrix::FloatComplexMatrix(), FloatMatrix::FloatMatrix(), Fnum2hex(), FloatQR::form(), ComplexQR::form(), FloatComplexQR::form(), QR::form(), SparseComplexMatrix::fsolve(), G__player_play__(), G__player_playblocking__(), octave_rand::get_internal_state(), Givens(), Gsymrcm(), HESS::init(), FloatHESS::init(), ComplexHESS::init(), FloatComplexHESS::init(), FloatGEPBALANCE::init(), GEPBALANCE::init(), ComplexGEPBALANCE::init(), FloatComplexGEPBALANCE::init(), EIG::init(), FloatEIG::init(), RowVector::insert(), FloatRowVector::insert(), ColumnVector::insert(), FloatColumnVector::insert(), ComplexRowVector::insert(), ComplexColumnVector::insert(), FloatComplexRowVector::insert(), FloatComplexColumnVector::insert(), Matrix::insert(), FloatMatrix::insert(), ComplexNDArray::insert(), ComplexMatrix::insert(), FloatComplexNDArray::insert(), FloatComplexMatrix::insert(), octave_value::int_vector_value(), DASSL::integrate(), DASPK::integrate(), DASRT::integrate(), octave_cell::load_ascii(), octave_bool_matrix::load_ascii(), octave_cell::load_binary(), octave_cell::load_hdf5(), octave_bool_matrix::load_hdf5(), lsode_f(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), Matrix::Matrix(), matrix_real_probe(), SparseBoolMatrix::matrix_value(), SparseMatrix::max(), SparseComplexMatrix::max(), SparseMatrix::min(), SparseComplexMatrix::min(), octave_value::octave_idx_type_vector_value(), intNDArray< T >::operator!(), boolMatrix::operator!(), PermMatrix::operator()(), operator*(), operator<<(), operator>>(), string_vector::operator[](), parse_dbfunction_params(), Array< T >::permute(), plus_or_minus(), Matrix::pseudo_inverse(), FloatMatrix::pseudo_inverse(), ComplexMatrix::pseudo_inverse(), FloatComplexMatrix::pseudo_inverse(), read_mat_ascii_data(), DiagMatrix::row(), FloatDiagMatrix::row(), ComplexDiagMatrix::row(), FloatComplexDiagMatrix::row(), Matrix::row_max(), FloatMatrix::row_max(), ComplexMatrix::row_max(), FloatComplexMatrix::row_max(), Matrix::row_min(), FloatMatrix::row_min(), ComplexMatrix::row_min(), FloatComplexMatrix::row_min(), octave_cell::save_ascii(), octave_cell::save_binary(), octave_cell::save_hdf5(), graphics_object::set(), octave_rand::set_internal_state(), Sparse< T >::Sparse(), try_cellfun_internal_ops(), and x_el_div().

template<class T>
T& Array< T >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
inline

Definition at line 386 of file Array.h.

Referenced by Array< octave_value >::elem().

template<class T>
T& Array< T >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inline

Definition at line 388 of file Array.h.

template<class T>
T& Array< T >::elem ( const Array< octave_idx_type > &  ra_idx)
inline

Definition at line 391 of file Array.h.

template<class T>
crefT Array< T >::elem ( octave_idx_type  n) const
inline

Definition at line 417 of file Array.h.

template<class T>
crefT Array< T >::elem ( octave_idx_type  i,
octave_idx_type  j 
) const
inline

Definition at line 419 of file Array.h.

template<class T>
crefT Array< T >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inline

Definition at line 422 of file Array.h.

template<class T>
crefT Array< T >::elem ( const Array< octave_idx_type > &  ra_idx) const
inline

Definition at line 425 of file Array.h.

template<class T>
void Array< T >::fill ( const T &  val)

Definition at line 70 of file Array.cc.

References jit_convention::length.

Referenced by idx_vector::idx_scalar_rep::sort_idx().

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

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

template<>
Array< octave_idx_type > Array< scanf_format_elt_ptr >::find ( octave_idx_type  ,
bool   
) const

Definition at line 40 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< printf_format_elt_ptr >::find ( octave_idx_type  ,
bool   
) const

Definition at line 43 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< octave_stream >::find ( octave_idx_type  ,
bool   
) const

Definition at line 46 of file Array-os.cc.

template<class T >
Array< octave_idx_type > Array< T >::find ( octave_idx_type  n = -1,
bool  backward = false 
) const

Find indices of (at most n) nonzero elements.

If n is specified, backward specifies search from backward.

Definition at line 2246 of file Array.cc.

References Array< T >::clear(), Array< T >::dimensions, Array< T >::fortran_vec(), Array< T >::is_empty(), Array< T >::length(), and Array< T >::resize2().

Referenced by idx_vector::idx_mask_rep::as_array(), Fdbtype(), and find_nonzero_elem_idx().

template<class T>
const T* Array< T >::fortran_vec ( void  ) const
inline

Definition at line 481 of file Array.h.

Referenced by AEPBALANCE::AEPBALANCE(), SparseBoolMatrix::any(), OCTAVE_VALUE_INT_MATRIX_T::array_value(), idx_vector::idx_vector_rep::as_array(), mxArray_number::as_octave_value(), mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), Sparse< T >::assign(), FloatAEPBALANCE::balancing_matrix(), ComplexAEPBALANCE::balancing_matrix(), AEPBALANCE::balancing_matrix(), FloatComplexAEPBALANCE::balancing_matrix(), betainc(), betaincinv(), binmap(), OCTAVE_VALUE_INT_MATRIX_T::bool_array_value(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseComplexQR::SparseComplexQR_rep::C(), SparseQR::SparseQR_rep::C(), cam2xform(), OCTAVE_VALUE_INT_MATRIX_T::char_array_value(), chol2inv_internal(), idx_vector::complement(), OCTAVE_VALUE_INT_MATRIX_T::complex_array_value(), OCTAVE_VALUE_INT_MATRIX_T::complex_matrix_value(), ComplexAEPBALANCE::ComplexAEPBALANCE(), ComplexLU::ComplexLU(), ComplexSCHUR::ComplexSCHUR(), convert_cdata(), convolve(), FloatQR::delete_col(), ComplexQR::delete_col(), FloatComplexQR::delete_col(), QR::delete_col(), Array< T >::delete_elements(), FloatQR::delete_row(), ComplexQR::delete_row(), FloatComplexQR::delete_row(), QR::delete_row(), CHOL::delete_sym(), FloatCHOL::delete_sym(), ComplexCHOL::delete_sym(), FloatComplexCHOL::delete_sym(), SparseMatrix::determinant(), Matrix::determinant(), SparseComplexMatrix::determinant(), FloatMatrix::determinant(), ComplexMatrix::determinant(), FloatComplexMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), do_bitpack(), do_bitunpack(), do_bsxfun_op(), octave_rand::do_float_nd_array(), octave_rand::do_float_vector(), do_inplace_bsxfun_op(), LSODE::do_integrate(), DASPK::do_integrate(), DASSL::do_integrate(), DefQuad::do_integrate(), IndefQuad::do_integrate(), FloatDefQuad::do_integrate(), FloatIndefQuad::do_integrate(), do_mm_binary_op(), do_mm_inplace_op(), do_ms_binary_op(), do_ms_inplace_op(), do_mx_cumminmax_op(), do_mx_diff_op(), do_mx_inplace_op(), do_mx_minmax_op(), do_mx_unary_op(), octave_rand::do_nd_array(), do_rand(), do_repelems(), octave_base_stream::do_scanf(), do_scanf_conv(), do_sm_binary_op(), do_tril(), do_triu(), octave_rand::do_vector(), CHOL::downdate(), FloatCHOL::downdate(), FloatComplexCHOL::downdate(), ComplexCHOL::downdate(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), encode_bool_image(), encode_indexed_images(), octave_fields::equal_up_to_order(), F__dsearchn__(), F__icholt__(), F__iluc__(), F__ilutp__(), F__pchip_deriv__(), SparseMatrix::factorize(), SparseComplexMatrix::factorize(), Fblkmm(), Fdot(), Fellipj(), filter(), Array< T >::find(), find_starting_node(), Matrix::finverse(), FloatMatrix::finverse(), ComplexMatrix::finverse(), FloatComplexMatrix::finverse(), OCTAVE_VALUE_INT_MATRIX_T::float_array_value(), OCTAVE_VALUE_INT_MATRIX_T::float_complex_array_value(), OCTAVE_VALUE_INT_MATRIX_T::float_complex_matrix_value(), OCTAVE_VALUE_INT_MATRIX_T::float_matrix_value(), FloatAEPBALANCE::FloatAEPBALANCE(), FloatComplexAEPBALANCE::FloatComplexAEPBALANCE(), FloatComplexLU::FloatComplexLU(), FloatComplexSCHUR::FloatComplexSCHUR(), FloatLU::FloatLU(), Fnum2hex(), Fordschur(), FloatQR::form(), ComplexQR::form(), FloatComplexQR::form(), QR::form(), DiagArray2< Complex >::fortran_vec(), ComplexNDArray::fourier(), FloatComplexNDArray::fourier(), FloatNDArray::fourier(), NDArray::fourier(), Matrix::fourier(), FloatMatrix::fourier(), ComplexMatrix::fourier(), FloatComplexMatrix::fourier(), ComplexNDArray::fourier2d(), FloatComplexNDArray::fourier2d(), FloatNDArray::fourier2d(), NDArray::fourier2d(), Matrix::fourier2d(), FloatMatrix::fourier2d(), ComplexMatrix::fourier2d(), FloatComplexMatrix::fourier2d(), ComplexNDArray::fourierNd(), FloatComplexNDArray::fourierNd(), FloatNDArray::fourierNd(), NDArray::fourierNd(), Fqz(), Frandperm(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__delaunayn__(), G__glpk__(), G__magick_finfo__(), G__osmesa_print__(), G__voronoi__(), Gamd(), Gaudioread(), Gconvhulln(), Gsymrcm(), FloatEIG::hermitian_init(), EIG::hermitian_init(), ichol_t(), MArray< T >::idx_add_nd(), ComplexNDArray::ifourier(), FloatComplexNDArray::ifourier(), FloatNDArray::ifourier(), NDArray::ifourier(), Matrix::ifourier(), FloatMatrix::ifourier(), ComplexMatrix::ifourier(), FloatComplexMatrix::ifourier(), ComplexNDArray::ifourier2d(), FloatComplexNDArray::ifourier2d(), FloatNDArray::ifourier2d(), NDArray::ifourier2d(), Matrix::ifourier2d(), FloatMatrix::ifourier2d(), ComplexMatrix::ifourier2d(), FloatComplexMatrix::ifourier2d(), ComplexNDArray::ifourierNd(), FloatComplexNDArray::ifourierNd(), FloatNDArray::ifourierNd(), NDArray::ifourierNd(), ilu_crout(), ilu_tp(), Range::index(), Array< T >::index(), FloatQR::init(), ComplexQR::init(), FloatComplexQR::init(), FloatComplexQRP::init(), ComplexQRP::init(), QR::init(), FloatQRP::init(), QRP::init(), HESS::init(), FloatHESS::init(), ComplexHESS::init(), FloatComplexHESS::init(), FloatGEPBALANCE::init(), GEPBALANCE::init(), SCHUR::init(), ComplexGEPBALANCE::init(), FloatSCHUR::init(), FloatComplexGEPBALANCE::init(), FloatComplexSCHUR::init(), ComplexSCHUR::init(), FloatSVD::init(), CHOL::init(), ComplexSVD::init(), FloatCHOL::init(), FloatComplexSVD::init(), ComplexCHOL::init(), FloatComplexCHOL::init(), SVD::init(), EIG::init(), FloatEIG::init(), CollocWt::init(), FloatQR::insert_col(), ComplexQR::insert_col(), FloatComplexQR::insert_col(), QR::insert_col(), FloatQR::insert_row(), ComplexQR::insert_row(), FloatComplexQR::insert_row(), QR::insert_row(), CHOL::insert_sym(), FloatCHOL::insert_sym(), FloatComplexCHOL::insert_sym(), ComplexCHOL::insert_sym(), DASRT::integrate(), kron(), octave_char_matrix_str::load_ascii(), octave_float_complex_matrix::load_binary(), octave_char_matrix_str::load_binary(), octave_complex_matrix::load_binary(), octave_float_matrix::load_binary(), octave_perm_matrix::load_binary(), octave_bool_matrix::load_binary(), octave_matrix::load_binary(), octave_float_complex_matrix::load_hdf5(), octave_char_matrix_str::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_float_matrix::load_hdf5(), octave_matrix::load_hdf5(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), Matrix::ltsolve(), FloatMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), ltsolve(), LU::LU(), LuAminusSigmaB(), Cell::map(), Array< octave_value >::map(), OCTAVE_VALUE_INT_MATRIX_T::matrix_value(), NDArray::NDArray(), octave_base64_decode(), octave_jit_paren_subsasgn_impl(), operator*(), Array< T >::permute(), PermMatrix::pos_power(), SparseQR::SparseQR_rep::Q(), SparseComplexQR::SparseComplexQR_rep::Q(), qrsolve(), qs_replace(), Matrix::rcond(), FloatMatrix::rcond(), ComplexMatrix::rcond(), FloatComplexMatrix::rcond(), read_indexed_images(), read_mat5_binary_element(), read_mat_binary_data(), Array< T >::resize(), Array< T >::resize1(), Array< T >::resize2(), octave_char_matrix_str::save_ascii(), octave_char_matrix_str::save_binary(), octave_bool_matrix::save_binary(), octave_float_complex_matrix::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_float_matrix::save_hdf5(), octave_bool_matrix::save_hdf5(), octave_matrix::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), FloatQR::shift_cols(), ComplexQR::shift_cols(), FloatComplexQR::shift_cols(), QR::shift_cols(), CHOL::shift_sym(), FloatCHOL::shift_sym(), ComplexCHOL::shift_sym(), FloatComplexCHOL::shift_sym(), Array< T >::sort(), idx_vector::idx_vector_rep::sort_idx(), Range::sort_internal(), Array< T >::sort_rows_idx(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), sqrtm_utri_inplace(), stack_complex_matrix(), sub2ind(), SparseBoolMatrix::sum(), Sylvester(), FloatEIG::symmetric_init(), EIG::symmetric_init(), Matrix::tinverse(), FloatMatrix::tinverse(), ComplexMatrix::tinverse(), FloatComplexMatrix::tinverse(), QtHandles::Utils::toRgb(), Array< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), unit_cube(), unstack_complex_matrix(), FloatQR::update(), ComplexQR::update(), FloatComplexQR::update(), LU::update(), FloatLU::update(), ComplexLU::update(), QR::update(), FloatComplexLU::update(), CHOL::update(), FloatCHOL::update(), FloatComplexCHOL::update(), ComplexCHOL::update(), LU::update_piv(), FloatLU::update_piv(), ComplexLU::update_piv(), FloatComplexLU::update_piv(), Matrix::utsolve(), FloatMatrix::utsolve(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), utsolve(), and xgemm().

template<class T >
T * Array< T >::fortran_vec ( void  )

Definition at line 1749 of file Array.cc.

template<class T>
Array< T > Array< T >::hermitian ( T(*)(const T &)  fcn = 0) const

Definition at line 1650 of file Array.cc.

References Array< T >::xelem().

Referenced by MArray< Complex >::hermitian().

template<class T >
Array< T > Array< T >::index ( const idx_vector i) const
template<class T >
Array< T > Array< T >::index ( const idx_vector i,
const idx_vector j 
) const
template<class T >
Array< T > Array< T >::index ( const Array< idx_vector > &  ia) const
template<class T>
Array< T > Array< T >::index ( const idx_vector i,
bool  resize_ok,
const T &  rfv 
) const

Indexing with possible resizing and fill.

Definition at line 1057 of file Array.cc.

References idx_vector::extent(), Array< T >::index(), idx_vector::is_scalar(), Array< T >::numel(), and Array< T >::resize1().

template<class T>
Array<T> Array< T >::index ( const idx_vector i,
bool  resize_ok 
) const
inline

Definition at line 523 of file Array.h.

template<class T>
Array< T > Array< T >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok,
const T &  rfv 
) const
template<class T>
Array<T> Array< T >::index ( const idx_vector i,
const idx_vector j,
bool  resize_ok 
) const
inline

Definition at line 530 of file Array.h.

template<class T>
Array< T > Array< T >::index ( const Array< idx_vector > &  ia,
bool  resize_ok,
const T &  rfv 
) const
template<class T>
Array<T> Array< T >::index ( const Array< idx_vector > &  ia,
bool  resize_ok 
) const
inline

Definition at line 538 of file Array.h.

template<class T>
Array< T > & Array< T >::insert ( const Array< T > &  a,
const Array< octave_idx_type > &  idx 
)

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

References Array< T >::dims(), Array< T >::length(), and dim_vector::redim().

Referenced by boolMatrix::insert(), boolNDArray::insert(), charMatrix::insert(), charNDArray::insert(), Matrix::insert(), ComplexNDArray::insert(), FloatComplexNDArray::insert(), Cell::insert(), FloatNDArray::insert(), intNDArray< T >::insert(), NDArray::insert(), FloatComplexMatrix::insert(), and single_type_concat().

template<class T>
Array< T > & Array< T >::insert ( const Array< T > &  a,
octave_idx_type  r,
octave_idx_type  c 
)

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

Definition at line 1570 of file Array.cc.

References Array< T >::columns(), Array< T >::dimensions, Array< T >::ndims(), and Array< T >::rows().

template<>
void Array< idx_vector >::instantiation_guard ( )
private

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

template<>
void Array< short >::instantiation_guard ( )
private

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

template<>
void Array< scanf_format_elt_ptr >::instantiation_guard ( )
private

Definition at line 41 of file Array-os.cc.

template<>
void Array< printf_format_elt_ptr >::instantiation_guard ( )
private

Definition at line 44 of file Array-os.cc.

template<>
void Array< long >::instantiation_guard ( )
private

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

template<>
void Array< octave_stream >::instantiation_guard ( )
private

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

template<>
void Array< octave_int8 >::instantiation_guard ( )
private

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

template<>
void Array< octave_int16 >::instantiation_guard ( )
private

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

template<>
void Array< octave_int32 >::instantiation_guard ( )
private

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

template<>
void Array< octave_int64 >::instantiation_guard ( )
private

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

template<>
void Array< octave_uint16 >::instantiation_guard ( )
private

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

template<>
void Array< octave_uint32 >::instantiation_guard ( )
private

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

template<>
void Array< octave_uint64 >::instantiation_guard ( )
private

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

template<class T >
void Array< T >::instantiation_guard ( )
staticprivate

Definition at line 2766 of file Array.cc.

template<class T>
Array<T> Array< T >::ipermute ( const Array< octave_idx_type > &  vec) const
inline

Definition at line 467 of file Array.h.

Referenced by MArray< Complex >::ipermute().

template<class T>
bool Array< T >::is_empty ( void  ) const
inline
template<class T>
bool Array< T >::is_shared ( void  )
inline
template<>
sortmode Array< idx_vector >::is_sorted ( sortmode  ) const

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

template<>
sortmode Array< scanf_format_elt_ptr >::is_sorted ( sortmode  ) const

Definition at line 40 of file Array-os.cc.

template<>
sortmode Array< printf_format_elt_ptr >::is_sorted ( sortmode  ) const

Definition at line 43 of file Array-os.cc.

template<>
sortmode Array< octave_stream >::is_sorted ( sortmode  ) const

Definition at line 46 of file Array-os.cc.

template<class T >
sortmode Array< T >::is_sorted ( sortmode  mode = UNSORTED) const
template<>
sortmode Array< idx_vector >::is_sorted_rows ( sortmode  ) const

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

template<>
sortmode Array< scanf_format_elt_ptr >::is_sorted_rows ( sortmode  ) const

Definition at line 40 of file Array-os.cc.

template<>
sortmode Array< printf_format_elt_ptr >::is_sorted_rows ( sortmode  ) const

Definition at line 43 of file Array-os.cc.

template<>
sortmode Array< octave_stream >::is_sorted_rows ( sortmode  ) const

Definition at line 46 of file Array-os.cc.

template<class T >
sortmode Array< T >::is_sorted_rows ( sortmode  mode = UNSORTED) const
template<class T>
bool Array< T >::is_square ( void  ) const
inline
template<class T>
bool Array< T >::is_vector ( void  ) const
inline

Definition at line 474 of file Array.h.

Referenced by Ffilter().

template<class T>
void* Array< T >::jit_array_rep ( void  ) const
inline

Definition at line 749 of file Array.h.

template<class T>
octave_idx_type* Array< T >::jit_dimensions ( void  ) const
inline

Definition at line 747 of file Array.h.

template<class T>
int* Array< T >::jit_ref_count ( void  )
inline

WARNING: Only call these functions from jit.

Definition at line 743 of file Array.h.

Referenced by octave_jit_paren_subsasgn_matrix_range().

template<class T>
T* Array< T >::jit_slice_data ( void  ) const
inline

Definition at line 745 of file Array.h.

Referenced by octave_jit_paren_subsasgn_matrix_range().

template<class T>
octave_idx_type Array< T >::length ( void  ) const
inline

Number of elements in the array.

Synonymous with capacity(), nelem(), and numel().

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

Referenced by scanf_format_list::add_elt_to_list(), printf_format_list::add_elt_to_list(), load_path::loader::add_to_fcn_map(), scanf_format_list::all_character_conversions(), all_colon_equiv(), dir_path::all_directories(), scanf_format_list::all_numeric_conversions(), all_ok(), all_ones(), octave_cell::all_strings(), any_ones(), any_orig_empty(), RowVector::append(), FloatRowVector::append(), ComplexRowVector::append(), FloatComplexRowVector::append(), Matrix::append(), FloatMatrix::append(), string_vector::append(), ComplexMatrix::append(), FloatComplexMatrix::append(), array_concat(), Array< T >::assign(), calc_dimensions(), Cell::Cell(), PermMatrix::checkelem(), compute_index(), Sparse< T >::compute_index(), Array< octave_value >::compute_index_unchecked(), conv_to_int_array(), printf_format_list::current(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_cf(), dasrt_user_f(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), ddaspk_f(), ddasrt_f(), ddassl_f(), decode_subscripts(), FloatQR::delete_col(), ComplexQR::delete_col(), FloatComplexQR::delete_col(), QR::delete_col(), Array< T >::delete_elements(), DiagArray2< Complex >::diag_length(), DiagArray2< T >::DiagArray2(), PermMatrix::dim1(), PermMatrix::dim2(), do_bessel(), do_cellslices_nda(), do_clear_functions(), do_clear_globals(), do_clear_variables(), gh_manager::do_execute_callback(), load_path::do_files(), load_path::do_find_all_first_of(), load_path::do_find_file(), load_path::do_find_first_of(), do_history(), LSODE::do_integrate(), DASPK::do_integrate(), DASSL::do_integrate(), do_mat2cell(), do_mat2cell_2d(), do_mat2cell_nd(), do_mm_binary_op(), do_mm_inplace_op(), do_ms_binary_op(), do_ms_inplace_op(), do_num2cell_helper(), load_path::do_path(), do_permute(), do_rand(), octave_value_typeinfo::do_register_type(), string_array_property::do_set(), octave_qt_link::do_set_history(), octave_sparse_params::do_set_vals(), do_sm_binary_op(), do_strcmp_fun(), CHOL::downdate(), FloatCHOL::downdate(), FloatComplexCHOL::downdate(), ComplexCHOL::downdate(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), elem_xpow(), octave_fields::equal_up_to_order(), expand_amble(), extract_keyword(), F__contourc__(), F__fieldnames__(), F__ftp_dir__(), F__ftp_mget__(), F__ftp_mput__(), F__get__(), F__pchip_deriv__(), F__which__(), Fargnames(), Fbase64_decode(), Fcellslices(), Fchar(), Fcompletion_matches(), Fdaspk(), Fdasrt(), Fdassl(), Fdrawnow(), Fexec(), Ffile_in_loadpath(), Ffile_in_path(), Ffilter(), Fget(), DiagMatrix::fill(), FloatDiagMatrix::fill(), ComplexDiagMatrix::fill(), FloatComplexDiagMatrix::fill(), filter(), Array< T >::find(), find_first_of(), find_nonzero_elem_idx(), Finline(), Flsode(), Fmatrix_type(), Fnum2hex(), Fpopen2(), Fquadcc(), freeze(), Freset(), Freshape(), Fresize(), QtHandles::Utils::fromStringVector(), Fsave(), Fset(), Fstrvcat(), Ftsearch(), G__glpk__(), Gccolamd(), Gcolamd(), Gcsymamd(), generate_completion(), genpath(), get_dim_vector(), get_dimensions(), get_elt_idx(), get_fcn_files(), load_path::dir_info::get_file_list(), get_scalar_idx(), get_size(), get_struct_elts(), symbol_table::glob_variables(), Gsymamd(), hash_lookup(), MArray< T >::idx_add(), MArray< T >::idx_max(), MArray< T >::idx_min(), idx_vector::idx_vector_rep::idx_vector_rep(), increment_index(), Array< T >::index(), index_in_bounds(), base_diff_alg_eqn::initialize(), ODES::initialize(), RowVector::insert(), ColumnVector::insert(), FloatRowVector::insert(), FloatColumnVector::insert(), ComplexRowVector::insert(), ComplexColumnVector::insert(), FloatComplexColumnVector::insert(), FloatComplexRowVector::insert(), Matrix::insert(), FloatMatrix::insert(), ComplexMatrix::insert(), FloatComplexMatrix::insert(), Sparse< T >::insert(), Array< T >::insert(), FloatQR::insert_col(), ComplexQR::insert_col(), FloatComplexQR::insert_col(), QR::insert_col(), FloatQR::insert_row(), ComplexQR::insert_row(), FloatComplexQR::insert_row(), QR::insert_row(), CHOL::insert_sym(), FloatCHOL::insert_sym(), FloatComplexCHOL::insert_sym(), ComplexCHOL::insert_sym(), DASRT::integrate(), sparse_base_chol< chol_type, chol_elt, p_type >::inverse(), regexp::is_match(), kpse_brace_expand_element(), kpse_db_search(), printf_format_list::last_elt_p(), DiagArray2< Complex >::length(), linspace(), log_search(), lsode_f(), lsode_user_function(), lsode_user_jacobian(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), LuAminusSigmaB(), make_absolute(), make_name_list(), octave_fcn_inline::map_value(), mat2cell_mismatch(), glob_match::match(), base_url_transfer::mget_directory(), mk_tmp_hist_file(), load_path::loader::move_fcn_map(), base_url_transfer::mput_directory(), printf_format_list::next(), null(), num_ones(), octave_class::numeric_conv(), octave_fcn_inline::octave_fcn_inline(), octave_fnmatch(), octave_glob(), octave_print_internal(), octave_recursive_rmdir(), octregexp(), operator*(), ComplexRowVector::operator+=(), ComplexColumnVector::operator+=(), FloatComplexRowVector::operator+=(), FloatComplexColumnVector::operator+=(), ComplexRowVector::operator-=(), ComplexColumnVector::operator-=(), FloatComplexRowVector::operator-=(), FloatComplexColumnVector::operator-=(), operator<<(), RowVector::operator==(), FloatRowVector::operator==(), ColumnVector::operator==(), FloatColumnVector::operator==(), ComplexRowVector::operator==(), ComplexColumnVector::operator==(), FloatComplexColumnVector::operator==(), FloatComplexRowVector::operator==(), operator>>(), parse_save_options(), symbol_info_list::parse_whos_line_format(), path_find_first_of(), PermMatrix::perm_length(), Array< T >::permute(), Sparse< T >::permute(), print_DASPK_options(), print_DASRT_options(), print_DASSL_options(), print_LSODE_options(), octave_fcn_inline::print_raw(), octave_struct::print_raw(), octave_scalar_struct::print_raw(), scanf_format_list::printme(), printf_format_list::printme(), Matrix::pseudo_inverse(), FloatMatrix::pseudo_inverse(), ComplexMatrix::pseudo_inverse(), FloatComplexMatrix::pseudo_inverse(), qp(), Sparse< T >::range_error(), read_images(), read_indexed_images(), rec_permute_helper::rec_permute_helper(), symbol_table::regexp_variables(), load_path::loader::remove_fcn_map(), octave_fcn_inline::save_ascii(), octave_perm_matrix::save_ascii(), octave_fcn_inline::save_binary(), octave_fcn_inline::save_hdf5(), search_path_for_all_files(), octave_rand::set_internal_state(), PermMatrix::setup(), show_DASPK_options(), show_DASRT_options(), show_DASSL_options(), show_LSODE_options(), octave_value_list::slice(), Array< T >::sort(), Sparse< T >::Sparse(), ColumnVector::stack(), FloatColumnVector::stack(), ComplexColumnVector::stack(), FloatComplexColumnVector::stack(), Matrix::stack(), FloatMatrix::stack(), ComplexMatrix::stack(), FloatComplexMatrix::stack(), string_array_property::string_value(), sub2ind(), octave_struct::subsref(), octave_cell::subsref(), octave_class::subsref(), file_ops::tilde_expand(), tilde_find_prefix(), tilde_find_suffix(), PermMatrix::transpose(), FloatQR::update(), ComplexQR::update(), FloatComplexQR::update(), LU::update(), FloatLU::update(), QR::update(), FloatComplexLU::update(), ComplexLU::update(), CHOL::update(), FloatCHOL::update(), ComplexCHOL::update(), FloatComplexCHOL::update(), LU::update_piv(), FloatLU::update_piv(), ComplexLU::update_piv(), FloatComplexLU::update_piv(), tree_print_code::visit_index_expression(), x_el_div(), zero_dims_inquire(), printf_format_list::~printf_format_list(), and scanf_format_list::~scanf_format_list().

template<class T >
Array< T > Array< T >::linear_slice ( octave_idx_type  lo,
octave_idx_type  up 
) const

Extract a slice from this array as a column vector: A(:)(lo+1:up).

Must be 0 <= lo && up <= numel. May be up < lo.

Definition at line 286 of file Array.cc.

References gripe_index_out_of_range().

Referenced by octave_value_list::slice().

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

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

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

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

template<>
octave_idx_type Array< scanf_format_elt_ptr >::lookup ( scanf_format_elt_ptr const &  ,
sortmode   
) const

Definition at line 40 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< scanf_format_elt_ptr >::lookup ( const Array< scanf_format_elt_ptr > &  ,
sortmode   
) const

Definition at line 40 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< printf_format_elt_ptr >::lookup ( const Array< printf_format_elt_ptr > &  ,
sortmode   
) const

Definition at line 43 of file Array-os.cc.

template<>
octave_idx_type Array< printf_format_elt_ptr >::lookup ( printf_format_elt_ptr const &  ,
sortmode   
) const

Definition at line 43 of file Array-os.cc.

template<>
octave_idx_type Array< octave_stream >::lookup ( octave_stream const &  ,
sortmode   
) const

Definition at line 46 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< octave_stream >::lookup ( const Array< octave_stream > &  ,
sortmode   
) const

Definition at line 46 of file Array-os.cc.

template<class T>
octave_idx_type Array< T >::lookup ( const T &  value,
sortmode  mode = UNSORTED 
) const

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

References ASCENDING, DESCENDING, octave_sort< T >::descending_compare(), elem, octave_sort< T >::lookup(), octave_sort< T >::set_compare(), and UNSORTED.

Referenced by do_numeric_lookup(), Flookup(), and val_in_table().

template<class T>
Array< octave_idx_type > Array< T >::lookup ( const Array< T > &  values,
sortmode  mode = UNSORTED 
) const

Ditto, but for an array of values, specializing on the case when values are sorted.

NaNs get the value N.

Definition at line 2187 of file Array.cc.

References ASCENDING, Array< T >::data(), DESCENDING, octave_sort< T >::descending_compare(), Array< T >::dims(), elem, Array< T >::is_sorted(), octave_sort< T >::lookup(), octave_sort< T >::lookup_sorted(), Array< T >::numel(), octave_sort< T >::set_compare(), UNSORTED, and xlog2().

template<class T>
void Array< T >::make_unique ( void  )
inline
template<class T>
template<class U , class F >
Array<U> Array< T >::map ( F  fcn) const
inline

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

This function is optimised with a manually unrolled loop.

Definition at line 659 of file Array.h.

Referenced by Fstr2double(), octave_float_diag_matrix::map(), octave_float_complex_diag_matrix::map(), octave_complex_diag_matrix::map(), octave_diag_matrix::map(), DiagMatrix::rcond(), FloatDiagMatrix::rcond(), ComplexDiagMatrix::rcond(), and FloatComplexDiagMatrix::rcond().

template<class T>
template<class U >
Array<U> Array< T >::map ( U(&)(T)  fcn) const
inline

Overloads for function references.

Definition at line 691 of file Array.h.

template<class T>
template<class U >
Array<U> Array< T >::map ( U(&)(const T &)  fcn) const
inline

Definition at line 696 of file Array.h.

template<class T>
void Array< T >::maybe_economize ( void  )
inline

Definition at line 589 of file Array.h.

template<class T>
void* Array< T >::mex_get_data ( void  ) const
inline

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

Referenced by octave_cell::mex_get_data().

template<class T>
int Array< T >::ndims ( void  ) const
inline
template<class T>
octave_idx_type Array< T >::nelem ( void  ) const
inline
template<class T>
Array<T>::ArrayRep* Array< T >::nil_rep ( void  ) const
inlineprivate

Definition at line 152 of file Array.h.

template<>
octave_idx_type Array< idx_vector >::nnz ( void  ) const

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

template<>
octave_idx_type Array< scanf_format_elt_ptr >::nnz ( void  ) const

Definition at line 40 of file Array-os.cc.

template<>
octave_idx_type Array< printf_format_elt_ptr >::nnz ( void  ) const

Definition at line 43 of file Array-os.cc.

template<>
octave_idx_type Array< octave_stream >::nnz ( void  ) const

Definition at line 46 of file Array-os.cc.

template<class T >
octave_idx_type Array< T >::nnz ( void  ) const
template<>
Array< idx_vector > Array< idx_vector >::nth_element ( const idx_vector ,
int   
) const

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

template<>
Array< scanf_format_elt_ptr > Array< scanf_format_elt_ptr >::nth_element ( const idx_vector ,
int   
) const

Definition at line 40 of file Array-os.cc.

template<>
Array< printf_format_elt_ptr > Array< printf_format_elt_ptr >::nth_element ( const idx_vector ,
int   
) const

Definition at line 43 of file Array-os.cc.

template<>
Array< octave_stream > Array< octave_stream >::nth_element ( const idx_vector ,
int   
) const

Definition at line 46 of file Array-os.cc.

template<class T >
Array< T > Array< T >::nth_element ( const idx_vector n,
int  dim = 0 
) const

Returns the n-th element in increasing order, using the same ordering as used for sort.

n can either be a scalar index or a contiguous range.

Definition at line 2327 of file Array.cc.

References ASCENDING, dim_vector::chop_trailing_singletons(), idx_vector::class_range, idx_vector::class_scalar, DESCENDING, idx_vector::idx_class(), idx_vector::increment(), dim_vector::length(), idx_vector::length(), max(), min(), nn, octave_sort< T >::nth_element(), OCTAVE_LOCAL_BUFFER, dim_vector::resize(), octave_sort< T >::set_compare(), and UNSORTED.

Referenced by Fnth_element().

template<class T>
octave_idx_type Array< T >::numel ( void  ) const
inline

Number of elements in the array.

Synonymous with capacity(), length(), and nelem().

Definition at line 275 of file Array.h.

Referenced by Array< T >::Array(), Array< T >::assign(), binmap(), bitopxx(), QtHandles::boundingBoxToRect(), QtHandles::ButtonControl::ButtonControl(), axes::properties::calc_ticklabels(), axes::properties::calc_ticks_and_lims(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasWheelEvent(), Cell::Cell(), check_limit_vals(), ComplexNDArray::ComplexNDArray(), boolNDArray::concat(), charNDArray::concat(), ComplexNDArray::concat(), FloatComplexNDArray::concat(), FloatNDArray::concat(), NDArray::concat(), intNDArray< T >::concat(), concat(), convert_cdata(), convert_position(), convert_text_position(), tree_parameter_list::convert_to_const_vector(), default_numeric_conversion_function(), default_warning_state(), delete_graphics_objects(), cdef_class::cdef_class_rep::delete_object(), display_warning_options(), do_bitpack(), do_bsxfun_op(), do_cleanup_waitfor_listener(), gh_manager::do_close_all_figures(), children_property::do_init_children(), do_inplace_bsxfun_op(), do_minmax_bin_op< charNDArray >(), do_mx_check(), do_mx_inplace_op(), do_mx_unary_op(), do_rc_map(), string_array_property::do_set(), text_label_property::do_set(), color_property::do_set(), children_property::do_set(), do_simple_cellfun(), do_strcmp_fun(), symbol_table::do_workspace_info(), opengl_selector::draw_text(), F__get__(), F__go_delete__(), F__octave_link_input_dialog__(), F__octave_link_list_dialog__(), octave_base_matrix< Cell >::fast_elem_insert(), Fbase64_encode(), Fcell2struct(), Fcellindexmat(), Fcomplex(), Fellipj(), Feps(), Ffilter(), Fget(), cdef_object_array::fill_empty_values(), finalize_r(), cdef_class::cdef_class_rep::find_method(), cdef_class::cdef_class_rep::find_methods(), cdef_class::cdef_class_rep::find_names(), find_nonzero_elem_idx(), cdef_class::cdef_class_rep::find_properties(), cdef_class::cdef_class_rep::find_property(), Fisa(), Fisargout(), FloatComplexNDArray::FloatComplexNDArray(), FloatNDArray::FloatNDArray(), Flookup(), Fordschur(), curl_transfer::form_query_string(), Fregexprep(), Frepelems(), Frmfield(), QtHandles::Utils::fromRgb(), Fspparms(), Fstr2double(), Fstrfind(), Fstrrep(), Furlread(), Furlwrite(), Fwarning(), G__delaunayn__(), G__magick_finfo__(), G__voronoi__(), Gconvhulln(), cdef_object_scalar::get(), get_array_limits(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), get_children_limits(), get_dims_str(), get_object_dims(), axes::properties::get_scale(), get_sort_mode(), axes::properties::get_ticklabel_extents(), QtHandles::hasUiControlChildren(), QtHandles::hasUiMenuChildren(), idx_vector::idx_vector(), Array< T >::index(), initialize_r(), tree_parameter_list::initialize_undefined_elements(), ComplexNDArray::insert(), FloatComplexNDArray::insert(), octave_value::int_vector_value(), is_handle(), is_handle_visible(), Array< float >::is_sorted(), is_superclass(), QtHandles::ListBoxControl::ListBoxControl(), octave_perm_matrix::load_binary(), Array< T >::lookup(), lookup_classes(), map_2_xlog2(), cdef_object::map_value(), NDArray::NDArray(), null(), octave_fields::octave_fields(), octave_value::octave_idx_type_vector_value(), octcellregexp(), prepare_idx(), qs_preprocess(), qs_replace(), qs_search(), read_indexed_images(), read_mat5_binary_element(), read_mat5_binary_file_header(), figure::properties::remove_child(), ft_render::render(), safe_comparator(), octave_float_complex_diag_matrix::save_binary(), octave_float_diag_matrix::save_binary(), octave_complex_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), save_mat5_binary_element(), save_mat5_element_length(), log_scaler::scale(), neg_log_scaler::scale(), gnuplot_graphics_toolkit::send_quit(), graphics_object::set(), ft_render::set_color(), annotation_dialog::set_gui_props(), figure::properties::set_integerhandle(), ft_render::set_mode(), single_type_concat(), QtHandles::SliderControl::SliderControl(), Sparse< T >::Sparse(), strcmp_array_op(), strcmpi_array_op(), string_array_property::string_array_property(), strncmp_array_op(), strncmpi_array_op(), octave_struct::subsasgn(), octave_cell::subsasgn(), cdef_object_array::subsasgn(), octave_class::subsasgn_common(), cdef_object_array::subsref(), text_label_property::text_label_property(), ft_render::text_to_pixels(), try_cellfun_internal_ops(), octave_float_complex_matrix::try_narrowing_conversion(), octave_complex_matrix::try_narrowing_conversion(), QtHandles::ButtonControl::update(), QtHandles::SliderControl::update(), QtHandles::PopupMenuControl::update(), hggroup::update_axis_limits(), base_properties::update_boundingbox(), text::properties::update_position(), QtHandles::updateSelection(), vector_norm(), tree_evaluator::visit_complex_for_command(), warning_query(), octave_stream::write(), write_mat5_array(), and write_mat5_cell_array().

template<class T>
T& Array< T >::operator() ( octave_idx_type  n)
inline

Definition at line 403 of file Array.h.

template<class T>
T& Array< T >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
inline

Definition at line 404 of file Array.h.

template<class T>
T& Array< T >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inline

Definition at line 405 of file Array.h.

template<class T>
T& Array< T >::operator() ( const Array< octave_idx_type > &  ra_idx)
inline

Definition at line 407 of file Array.h.

template<class T>
crefT Array< T >::operator() ( octave_idx_type  n) const
inline

Definition at line 438 of file Array.h.

template<class T>
crefT Array< T >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const
inline

Definition at line 439 of file Array.h.

template<class T>
crefT Array< T >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inline

Definition at line 441 of file Array.h.

template<class T>
crefT Array< T >::operator() ( const Array< octave_idx_type > &  ra_idx) const
inline

Definition at line 444 of file Array.h.

template<class T>
Array<T>& Array< T >::operator= ( const Array< T > &  a)
inline
template<class T >
bool Array< T >::optimize_dimensions ( const dim_vector dv)

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

template<class T >
Array< T > Array< T >::page ( octave_idx_type  k) const

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

Definition at line 271 of file Array.cc.

References gripe_index_out_of_range().

template<class T>
octave_idx_type Array< T >::pages ( void  ) const
inline

Definition at line 330 of file Array.h.

template<class T >
Array< T > Array< T >::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const
template<class T >
void Array< T >::print_info ( std::ostream &  os,
const std::string &  prefix 
) const

Definition at line 2740 of file Array.cc.

Referenced by PermMatrix::print_info(), and DiagArray2< Complex >::print_info().

template<class T>
Array<T> Array< T >::reshape ( octave_idx_type  nr,
octave_idx_type  nc 
) const
inline
template<class T>
Array<T> Array< T >::reshape ( const dim_vector new_dims) const
inline

Definition at line 463 of file Array.h.

template<class T>
void Array< T >::resize ( const dim_vector dv,
const T &  rfv 
)

Definition at line 1033 of file Array.cc.

References dim_vector::any_neg(), Array< T >::fortran_vec(), gripe_invalid_resize(), dim_vector::length(), dim_vector::redim(), and rec_resize_helper::resize_fill().

Referenced by scanf_format_list::add_elt_to_list(), printf_format_list::add_elt_to_list(), jit_operation::add_overload(), airy(), betainc(), betaincinv(), biry(), bitopxx(), Cell::column(), Matrix::column_max(), FloatMatrix::column_max(), ComplexMatrix::column_max(), FloatComplexMatrix::column_max(), Matrix::column_min(), FloatMatrix::column_min(), ComplexMatrix::column_min(), FloatComplexMatrix::column_min(), regexp::compile_internal(), ComplexLU::ComplexLU(), Array< T >::diag(), dmsolve_permute(), do_bessel(), do_fft(), do_fft2(), do_fftn(), LSODE::do_integrate(), DASPK::do_integrate(), DASSL::do_integrate(), do_object2cell(), octave_value_typeinfo::do_register_type(), DiagArray2< T >::extract_diag(), F__get__(), Fbsxfun(), Ffilter(), Fget(), filter(), find_nonzero_elem_idx(), Matrix::finverse(), FloatMatrix::finverse(), ComplexMatrix::finverse(), FloatComplexMatrix::finverse(), FloatComplexLU::FloatComplexLU(), FloatLU::FloatLU(), Frandperm(), Fwarning(), G__glpk__(), G__magick_read__(), gammainc(), get_ra_idx(), ichol_t(), MArray< T >::idx_add_nd(), ilu_crout(), ilu_tp(), Array< T >::index(), FloatSVD::init(), ComplexSVD::init(), FloatComplexSVD::init(), SVD::init(), octave_value::int_vector_value(), DASRT::integrate(), intmap_to_ov(), octave_float_complex_matrix::load_hdf5(), octave_char_matrix_str::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_cell::load_hdf5(), octave_float_matrix::load_hdf5(), octave_bool_matrix::load_hdf5(), octave_matrix::load_hdf5(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), LU::LU(), make_indices(), make_subs_cell(), SparseMatrix::max(), SparseComplexMatrix::max(), SparseMatrix::min(), SparseComplexMatrix::min(), octave_base64_decode(), octave_value::octave_idx_type_vector_value(), octave_value_list::octave_value_list(), printf_format_list::printf_format_list(), boolMatrix::resize(), charMatrix::resize(), string_vector::resize(), RowVector::resize(), FloatRowVector::resize(), ColumnVector::resize(), octave_char_matrix_str::resize(), FloatColumnVector::resize(), octave_range::resize(), ComplexRowVector::resize(), FloatComplexRowVector::resize(), Matrix::resize(), FloatMatrix::resize(), ComplexColumnVector::resize(), FloatComplexColumnVector::resize(), DiagArray2< T >::resize(), ComplexMatrix::resize(), FloatComplexMatrix::resize(), octave_char_matrix_sq_str::resize(), octave_map::resize(), Matrix::row_max(), FloatMatrix::row_max(), ComplexMatrix::row_max(), FloatComplexMatrix::row_max(), Matrix::row_min(), FloatMatrix::row_min(), ComplexMatrix::row_min(), FloatComplexMatrix::row_min(), tree_cell::rvalue1(), scanf_format_list::scanf_format_list(), set_warning_option(), octave_base_scalar< bool >::sort(), Range::sort_internal(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), and patch::properties::update_data().

template<class T>
void Array< T >::resize ( const dim_vector dv)
inline

Definition at line 512 of file Array.h.

Referenced by Array< octave_value >::resize().

template<class T>
void Array< T >::resize1 ( octave_idx_type  n,
const T &  rfv 
)
template<class T>
void Array< T >::resize1 ( octave_idx_type  n)
inline

Definition at line 509 of file Array.h.

Referenced by Array< octave_value >::resize1().

template<class T>
void Array< T >::resize2 ( octave_idx_type  nr,
octave_idx_type  nc,
const T &  rfv 
)

Resizing (with fill).

Definition at line 988 of file Array.cc.

References c1, Array< T >::fortran_vec(), gripe_invalid_resize(), min(), and r1.

Referenced by Array< T >::find(), and Array< T >::index().

template<class T>
void Array< T >::resize2 ( octave_idx_type  nr,
octave_idx_type  nc 
)
inline

Definition at line 503 of file Array.h.

template<class T >
T Array< T >::resize_fill_value ( void  ) const
virtual

Reimplemented in Cell.

Definition at line 902 of file Array.cc.

template<class T>
octave_idx_type Array< T >::rows ( void  ) const
inline

Definition at line 313 of file Array.h.

Referenced by AEPBALANCE::AEPBALANCE(), airy(), octave_char_matrix_str::all_strings(), Matrix::append(), FloatMatrix::append(), ComplexMatrix::append(), FloatComplexMatrix::append(), AEPBALANCE::balancing_matrix(), FloatAEPBALANCE::balancing_matrix(), ComplexAEPBALANCE::balancing_matrix(), FloatComplexAEPBALANCE::balancing_matrix(), biry(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseComplexQR::SparseComplexQR_rep::C(), SparseQR::SparseQR_rep::C(), octave_char_matrix_str::cellstr_value(), chol2inv_internal(), cntr(), column_norms(), ComplexAEPBALANCE::ComplexAEPBALANCE(), ComplexLU::ComplexLU(), ComplexMatrix::ComplexMatrix(), ComplexSCHUR::ComplexSCHUR(), convert_cdata(), FloatQR::delete_col(), ComplexQR::delete_col(), FloatComplexQR::delete_col(), QR::delete_col(), FloatQR::delete_row(), ComplexQR::delete_row(), FloatComplexQR::delete_row(), QR::delete_row(), CHOL::delete_sym(), FloatCHOL::delete_sym(), ComplexCHOL::delete_sym(), FloatComplexCHOL::delete_sym(), octave_float_complex_matrix::diag(), octave_complex_matrix::diag(), octave_float_matrix::diag(), octave_matrix::diag(), dmsolve_insert(), dmsolve_permute(), do_bessel(), do_fftn(), do_repelems(), string_array_property::do_set(), do_sqrtm(), do_tril(), do_triu(), CHOL::downdate(), FloatCHOL::downdate(), FloatComplexCHOL::downdate(), ComplexCHOL::downdate(), opengl_selector::draw_image(), drawcn(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), encode_bool_image(), encode_indexed_images(), F__dsearchn__(), F__octave_link_file_dialog__(), F__octave_link_input_dialog__(), F__pchip_deriv__(), Fhex2num(), find_nonzero_elem_idx(), FloatAEPBALANCE::FloatAEPBALANCE(), FloatComplexAEPBALANCE::FloatComplexAEPBALANCE(), FloatComplexLU::FloatComplexLU(), FloatComplexMatrix::FloatComplexMatrix(), FloatComplexSCHUR::FloatComplexSCHUR(), FloatLU::FloatLU(), FloatMatrix::FloatMatrix(), FloatSCHUR::FloatSCHUR(), FloatQR::form(), ComplexQR::form(), FloatComplexQR::form(), QR::form(), Frepelems(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Ftsearch(), G__delaunayn__(), G__glpk__(), G__voronoi__(), gammainc(), Gaudiowrite(), Gconvhulln(), FloatEIG::hermitian_init(), EIG::hermitian_init(), Array< T >::index(), Sparse< T >::index(), FloatQR::init(), ComplexQR::init(), FloatComplexQR::init(), ComplexQRP::init(), QR::init(), FloatComplexQRP::init(), QRP::init(), FloatQRP::init(), HESS::init(), FloatHESS::init(), ComplexHESS::init(), FloatComplexHESS::init(), FloatGEPBALANCE::init(), GEPBALANCE::init(), ComplexGEPBALANCE::init(), SCHUR::init(), FloatSCHUR::init(), FloatComplexGEPBALANCE::init(), ComplexSCHUR::init(), FloatComplexSCHUR::init(), CHOL::init(), FloatSVD::init(), ComplexSVD::init(), FloatCHOL::init(), FloatComplexSVD::init(), ComplexCHOL::init(), FloatComplexCHOL::init(), SVD::init(), EIG::init(), FloatEIG::init(), ComplexMatrix::insert(), FloatComplexMatrix::insert(), Array< T >::insert(), FloatQR::insert_col(), ComplexQR::insert_col(), FloatComplexQR::insert_col(), QR::insert_col(), FloatQR::insert_row(), ComplexQR::insert_row(), FloatComplexQR::insert_row(), QR::insert_row(), CHOL::insert_sym(), FloatCHOL::insert_sym(), ComplexCHOL::insert_sym(), FloatComplexCHOL::insert_sym(), kron(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), Matrix::ltsolve(), FloatMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), LU::LU(), LuAminusSigmaB(), mark_facets(), mark_upper_triangular(), Matrix::Matrix(), matrix_real_probe(), max(), min(), null(), octave_print_internal(), operator*(), ComplexMatrix::operator+=(), FloatComplexMatrix::operator+=(), ComplexMatrix::operator-=(), FloatComplexMatrix::operator-=(), operator<<(), boolMatrix::operator==(), charMatrix::operator==(), FloatMatrix::operator==(), Matrix::operator==(), ComplexMatrix::operator==(), FloatComplexMatrix::operator==(), operator>>(), pr_max_internal(), pr_min_internal(), qrsolve(), row_norms(), octave_char_matrix_str::save_ascii(), octave_cell::save_ascii(), save_mat_ascii_data(), save_mat_binary_data(), save_three_d(), log_scaler::scale(), neg_log_scaler::scale(), graphics_xform::scale(), SCHUR::SCHUR(), FloatQR::shift_cols(), ComplexQR::shift_cols(), FloatComplexQR::shift_cols(), QR::shift_cols(), CHOL::shift_sym(), FloatCHOL::shift_sym(), ComplexCHOL::shift_sym(), FloatComplexCHOL::shift_sym(), sqrtm_utri_inplace(), Matrix::stack(), FloatMatrix::stack(), ComplexMatrix::stack(), FloatComplexMatrix::stack(), stack_complex_matrix(), Sylvester(), FloatEIG::symmetric_init(), EIG::symmetric_init(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_bool_matrix::try_narrowing_conversion(), unstack_complex_matrix(), FloatQR::update(), ComplexQR::update(), FloatComplexQR::update(), LU::update(), FloatLU::update(), QR::update(), FloatComplexLU::update(), ComplexLU::update(), CHOL::update(), FloatCHOL::update(), FloatComplexCHOL::update(), ComplexCHOL::update(), patch::properties::update_data(), patch::properties::update_fvc(), surface::properties::update_normals(), LU::update_piv(), FloatLU::update_piv(), ComplexLU::update_piv(), FloatComplexLU::update_piv(), Matrix::utsolve(), FloatMatrix::utsolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), vector_product(), x_el_div(), xgemm(), and xpow().

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

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

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

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

template<>
Array< scanf_format_elt_ptr > Array< scanf_format_elt_ptr >::sort ( Array< octave_idx_type > &  sidx,
int  ,
sortmode   
) const

Definition at line 40 of file Array-os.cc.

template<>
Array< scanf_format_elt_ptr > Array< scanf_format_elt_ptr >::sort ( int  ,
sortmode   
) const

Definition at line 40 of file Array-os.cc.

template<>
Array< printf_format_elt_ptr > Array< printf_format_elt_ptr >::sort ( int  ,
sortmode   
) const

Definition at line 43 of file Array-os.cc.

template<>
Array< printf_format_elt_ptr > Array< printf_format_elt_ptr >::sort ( Array< octave_idx_type > &  sidx,
int  ,
sortmode   
) const

Definition at line 43 of file Array-os.cc.

template<>
Array< octave_stream > Array< octave_stream >::sort ( Array< octave_idx_type > &  sidx,
int  ,
sortmode   
) const

Definition at line 46 of file Array-os.cc.

template<>
Array< octave_stream > Array< octave_stream >::sort ( int  ,
sortmode   
) const

Definition at line 46 of file Array-os.cc.

template<class T >
Array< T > Array< T >::sort ( int  dim = 0,
sortmode  mode = ASCENDING 
) const
template<class T >
Array< T > Array< T >::sort ( Array< octave_idx_type > &  sidx,
int  dim = 0,
sortmode  mode = ASCENDING 
) const
template<>
Array< octave_idx_type > Array< idx_vector >::sort_rows_idx ( sortmode  ) const

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

template<>
Array< octave_idx_type > Array< scanf_format_elt_ptr >::sort_rows_idx ( sortmode  ) const

Definition at line 40 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< printf_format_elt_ptr >::sort_rows_idx ( sortmode  ) const

Definition at line 43 of file Array-os.cc.

template<>
Array< octave_idx_type > Array< octave_stream >::sort_rows_idx ( sortmode  ) const

Definition at line 46 of file Array-os.cc.

template<class T >
Array< octave_idx_type > Array< T >::sort_rows_idx ( sortmode  mode = ASCENDING) const
template<class T >
Array< T > Array< T >::squeeze ( void  ) const

Chop off leading singleton dimensions.

Definition at line 114 of file Array.cc.

References dim_vector::resize().

Referenced by octave_lazy_index::squeeze(), MArray< Complex >::squeeze(), boolNDArray::squeeze(), charNDArray::squeeze(), and octave_matrix::squeeze().

template<class T>
template<class F , bool zero>
bool Array< T >::test ( F  fcn) const
inline

Generic any/all test functionality with arbitrary predicate.

Definition at line 702 of file Array.h.

Referenced by crati(), and cunhj().

template<class T>
template<class F >
bool Array< T >::test_all ( F  fcn) const
inline

Definition at line 714 of file Array.h.

template<class T>
bool Array< T >::test_all ( bool(&)(T)  fcn) const
inline

Definition at line 726 of file Array.h.

template<class T>
bool Array< T >::test_all ( bool(&)(const T &)  fcn) const
inline

Definition at line 729 of file Array.h.

template<class T>
template<class F >
bool Array< T >::test_any ( F  fcn) const
inline

Simpler calls.

Definition at line 710 of file Array.h.

template<class T>
bool Array< T >::test_any ( bool(&)(T)  fcn) const
inline

Overloads for function references.

Definition at line 720 of file Array.h.

template<class T>
bool Array< T >::test_any ( bool(&)(const T &)  fcn) const
inline

Definition at line 723 of file Array.h.

template<class T >
Array< T > Array< T >::transpose ( void  ) const
template<class T>
T& Array< T >::xelem ( octave_idx_type  n)
inline

Definition at line 353 of file Array.h.

Referenced by intNDArray< T >::abs(), SparseBoolMatrix::any(), DiagArray2< T >::array_value(), idx_vector::idx_range_rep::as_array(), idx_vector::idx_mask_rep::as_array(), Cell::cellstr_value(), octave_char_matrix_str::cellstr_value(), chol2inv_internal(), Cell::column(), column_norms(), Cell::delete_elements(), DiagArray2< Complex >::dgxelem(), Array< T >::diag(), dmsolve_extract(), children_property::do_init_children(), do_num2cell(), do_numeric_lookup(), do_object2cell(), children_property::do_set(), Array< octave_value >::elem(), elem_xpow(), RowVector::extract(), ColumnVector::extract(), FloatRowVector::extract(), FloatColumnVector::extract(), RowVector::extract_n(), ColumnVector::extract_n(), FloatRowVector::extract_n(), FloatColumnVector::extract_n(), F__octave_link_file_dialog__(), F__octave_link_input_dialog__(), F__octave_link_list_dialog__(), Fcomplex(), octave_fields::fieldnames(), cdef_object_array::fill_empty_values(), find_nonzero_elem_idx(), Flookup(), FloatQR::form(), ComplexQR::form(), FloatComplexQR::form(), QR::form(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gamd(), Gaudiowrite(), base_lu< lu_type >::getp(), Array< T >::hermitian(), idx_vector::idx_vector_rep::idx_vector_rep(), CHOL::init(), FloatCHOL::init(), ComplexCHOL::init(), FloatComplexCHOL::init(), octave_value::int_vector_value(), idx_vector::inverse_permutation(), is_handle(), is_handle_visible(), kron(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), map_2_xlog2(), octave_value::octave_idx_type_vector_value(), octave_jit_paren_scalar(), octave_jit_paren_scalar_subsasgn(), octave_jit_paren_subsasgn_matrix_range(), octave_scalar_map::orderfields(), octave_map::orderfields(), SparseComplexQR::SparseComplexQR_rep::P(), SparseQR::SparseQR_rep::P(), base_lu< lu_type >::P_vec(), sparse_base_lu< lu_type, lu_elt_type, p_type, p_elt_type >::Pc_vec(), SparseComplexQR::SparseComplexQR_rep::Pinv(), SparseQR::SparseQR_rep::Pinv(), sparse_base_lu< lu_type, lu_elt_type, p_type, p_elt_type >::Pr_vec(), put_int(), qrsolve(), qs_search(), read_mat_binary_data(), row_norms(), intNDArray< T >::signum(), idx_vector::idx_range_rep::sort_idx(), idx_vector::idx_mask_rep::sort_idx(), SparseBoolMatrix::sum(), PermMatrix::transpose(), Array< T >::transpose(), idx_vector::idx_vector_rep::unconvert(), idx_vector::idx_mask_rep::unconvert(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), DiagArray2< Complex >::xelem(), and xgemm().

template<class T>
crefT Array< T >::xelem ( octave_idx_type  n) const
inline

Definition at line 354 of file Array.h.

template<class T>
T& Array< T >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
inline

Definition at line 356 of file Array.h.

template<class T>
crefT Array< T >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inline

Definition at line 358 of file Array.h.

template<class T>
T& Array< T >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inline

Definition at line 361 of file Array.h.

template<class T>
crefT Array< T >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inline

Definition at line 363 of file Array.h.

template<class T>
T& Array< T >::xelem ( const Array< octave_idx_type > &  ra_idx)
inline

Definition at line 366 of file Array.h.

template<class T>
crefT Array< T >::xelem ( const Array< octave_idx_type > &  ra_idx) const
inline

Definition at line 369 of file Array.h.

Friends And Related Function Documentation

template<class T>
template<class U >
friend class Array
friend

Definition at line 733 of file Array.h.

Member Data Documentation

template<class T>
dim_vector Array< T >::dimensions
protected
template<class T>
Array<T>::ArrayRep* Array< T >::rep
protected
template<class T>
T* Array< T >::slice_data
protected
template<class T>
octave_idx_type Array< T >::slice_len
protected

Definition at line 139 of file Array.h.

Referenced by Array< octave_value >::operator=().


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