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

#include "fCDiagMatrix.h"

Inheritance diagram for FloatComplexDiagMatrix:
Collaboration diagram for FloatComplexDiagMatrix:

Public Types

typedef FloatComplex complex_elt_type
 
typedef FloatComplex element_type
 
typedef FloatComplexMatrix full_matrix_type
 
typedef float real_elt_type
 

Public Member Functions

 FloatComplexDiagMatrix (const Array< float > &a)
 
 FloatComplexDiagMatrix (const Array< FloatComplex > &a)
 
 FloatComplexDiagMatrix (const Array< FloatComplex > &a, octave_idx_type r, octave_idx_type c)
 
template<typename U >
 FloatComplexDiagMatrix (const DiagArray2< U > &a)
 
 FloatComplexDiagMatrix (const FloatComplexDiagMatrix &a)=default
 
OCTAVE_API FloatComplexDiagMatrix (const FloatDiagMatrix &a)
 
 FloatComplexDiagMatrix (const MDiagArray2< FloatComplex > &a)
 
 FloatComplexDiagMatrix (octave_idx_type r, octave_idx_type c)
 
 FloatComplexDiagMatrix (octave_idx_type r, octave_idx_type c, const FloatComplex &val)
 
 FloatComplexDiagMatrix (void)=default
 
 ~FloatComplexDiagMatrix (void)=default
 
OCTAVE_API FloatDiagMatrix abs (void) const
 
OCTAVE_API bool all_elements_are_real (void) const
 
MArray< FloatComplexarray_value () const
 
DiagArray2< T > build_diag_matrix () const
 
std::size_t byte_size (void) const
 
T & checkelem (octave_idx_type r, octave_idx_type c)
 
checkelem (octave_idx_type r, octave_idx_type c) const
 
octave_idx_type cols (void) const
 
OCTAVE_API FloatComplexColumnVector column (char *s) const
 
OCTAVE_API FloatComplexColumnVector column (octave_idx_type i) const
 
octave_idx_type columns (void) const
 
const T * data (void) const
 
OCTAVE_API FloatComplexDET determinant (void) const
 
T & dgelem (octave_idx_type i)
 
dgelem (octave_idx_type i) const
 
T & dgxelem (octave_idx_type i)
 
dgxelem (octave_idx_type i) const
 
MArray< FloatComplexdiag (octave_idx_type k=0) const
 
octave_idx_type diag_length (void) const
 
octave_idx_type dim1 (void) const
 
octave_idx_type dim2 (void) const
 
dim_vector dims (void) const
 
OCTAVE_API T & elem (octave_idx_type r, octave_idx_type c)
 
elem (octave_idx_type r, octave_idx_type c) const
 
OCTAVE_API FloatComplexMatrix extract (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
 
FloatComplexColumnVector extract_diag (octave_idx_type k=0) const
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatColumnVector &a)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatColumnVector &a, octave_idx_type beg)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatComplex &val)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatComplex &val, octave_idx_type beg, octave_idx_type end)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatComplexColumnVector &a)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatComplexColumnVector &a, octave_idx_type beg)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatComplexRowVector &a)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatComplexRowVector &a, octave_idx_type beg)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatRowVector &a)
 
OCTAVE_API FloatComplexDiagMatrixfill (const FloatRowVector &a, octave_idx_type beg)
 
OCTARRAY_API void fill (const T &val)
 
OCTAVE_API FloatComplexDiagMatrixfill (float val)
 
OCTAVE_API FloatComplexDiagMatrixfill (float val, octave_idx_type beg, octave_idx_type end)
 
T * fortran_vec (void)
 
MDiagArray2< FloatComplexhermitian (FloatComplex(*fcn)(const FloatComplex &)=nullptr) const
 
OCTAVE_API DiagArray2< T > hermitian (T(*fcn)(const T &)=nullptr) const
 
FloatComplexDiagMatrix hermitian (void) const
 
OCTAVE_API FloatComplexDiagMatrix inverse (octave_idx_type &info) const
 
OCTAVE_API FloatComplexDiagMatrix inverse (void) const
 
OCTAVE_API bool is_multiple_of_identity (FloatComplex val) const
 
bool isempty (void) const
 
octave_idx_type length (void) const
 
int ndims (void) const
 
octave_idx_type nelem (void) const
 
octave_idx_type nnz (void) const
 
octave_idx_type numel (void) const
 
OCTAVE_API bool operator!= (const FloatComplexDiagMatrix &a) const
 
T & operator() (octave_idx_type r, octave_idx_type c)
 
operator() (octave_idx_type r, octave_idx_type c) const
 
OCTAVE_API FloatComplexDiagMatrixoperator+= (const FloatDiagMatrix &a)
 
OCTAVE_API FloatComplexDiagMatrixoperator-= (const FloatDiagMatrix &a)
 
FloatComplexDiagMatrixoperator= (const FloatComplexDiagMatrix &a)=default
 
OCTAVE_API bool operator== (const FloatComplexDiagMatrix &a) const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_API FloatComplexDiagMatrix pseudo_inverse (float tol=0.0f) const
 
OCTAVE_API float rcond (void) const
 
void resize (octave_idx_type n, octave_idx_type m)
 
OCTAVE_API void resize (octave_idx_type n, octave_idx_type m, const T &rfv)
 
OCTAVE_API FloatComplexRowVector row (char *s) const
 
OCTAVE_API FloatComplexRowVector row (octave_idx_type i) const
 
octave_idx_type rows (void) const
 
FloatComplexDiagMatrix transpose (void) const
 
xelem (octave_idx_type r, octave_idx_type c) const
 

Protected Types

typedef bool(* compare_fcn_type) (typename ref_param< T >::type, typename ref_param< T >::type)
 
typedef ref_param< T >::type crefT
 
typedef octave_idx_type size_type
 Used for operator(), and returned by numel() and size() (beware: signed integer) More...
 
typedef T value_type
 

Protected Member Functions

OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocas_column (void) const
 Return the array as a column vector. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocas_matrix (void) const
 Return the array as a matrix. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocas_row (void) const
 Return the array as a row vector. More...
 
OCTARRAY_API void clear (const dim_vector &dv)
 
void clear (octave_idx_type r, octave_idx_type c)
 
OCTARRAY_API void clear (void)
 
OCTINTERP_API Array< octave_idx_typefind (octave_idx_type, bool) const
 
OCTAVE_API Array< octave_idx_typefind (octave_idx_type, bool) const
 
OCTINTERP_API sortmode is_sorted_rows (sortmode) const
 
OCTAVE_API sortmode is_sorted_rows (sortmode) const
 
OCTAVE_API sortmode issorted (sortmode mode) const
 
OCTINTERP_API sortmode issorted (sortmode) const
 
OCTAVE_API sortmode issorted (sortmode) const
 
OCTINTERP_API Array< octave_idx_typelookup (const Array< octave::cdef_object > &, sortmode) const
 
OCTAVE_API Array< octave_idx_typelookup (const Array< octave::idx_vector > &, sortmode) const
 
OCTINTERP_API octave_idx_type lookup (octave::cdef_object const &, sortmode) const
 
OCTAVE_API octave_idx_type lookup (octave::idx_vector const &, sortmode) const
 
OCTARRAY_OVERRIDABLE_FUNC_API void make_unique (void)
 
OCTINTERP_API Array< octave::cdef_objectnth_element (const octave::idx_vector &, int) const
 
OCTAVE_API Array< octave::idx_vectornth_element (const octave::idx_vector &, int) const
 
OCTINTERP_API Array< octave::cdef_objectsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
OCTAVE_API Array< octave::idx_vectorsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
OCTINTERP_API Array< octave::cdef_objectsort (int, sortmode) const
 
OCTAVE_API Array< octave::idx_vectorsort (int, sortmode) const
 
OCTINTERP_API Array< octave_idx_typesort_rows_idx (sortmode) const
 
OCTAVE_API Array< octave_idx_typesort_rows_idx (sortmode) const
 

Protected Attributes

octave_idx_type m_d1
 
octave_idx_type m_d2
 
dim_vector m_dimensions
 
Array< T, Alloc >::ArrayRep * m_rep
 
T * m_slice_data
 
octave_idx_type m_slice_len
 

Private Member Functions

bool check_idx (octave_idx_type r, octave_idx_type c) const
 
OCTINTERP_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void instantiation_guard ()
 

Static Private Member Functions

static OCTARRAY_API Array< T, Alloc >::ArrayRep * nil_rep (void)
 

Friends

OCTAVE_API FloatComplexDiagMatrix conj (const FloatComplexDiagMatrix &a)
 
OCTAVE_API std::ostream & operator<< (std::ostream &os, const FloatComplexDiagMatrix &a)
 

Third dimension

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

OCTARRAY_API Array< T, Allocdiag (octave_idx_type m, octave_idx_type n) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & elem (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & elem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & elem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT elem (octave_idx_type n) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT elem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_API T & checkelem (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_API T & checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
OCTARRAY_API T & checkelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
OCTARRAY_API crefT checkelem (octave_idx_type n) const
 Size of the specified dimension. More...
 
OCTARRAY_API crefT checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
OCTARRAY_API crefT checkelem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & operator() (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & operator() (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT operator() (octave_idx_type n) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT operator() (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & xelem (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT xelem (octave_idx_type n) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & xelem (octave_idx_type i, octave_idx_type j)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API T & xelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API crefT xelem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_API void resize (const dim_vector &dv, const T &rfv)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void resize (const dim_vector &dv)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type dim3 (void) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type pages (void) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API size_type size (const size_type d) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocsqueeze (void) const
 Chop off leading singleton dimensions. More...
 
OCTARRAY_API octave_idx_type compute_index (octave_idx_type i, octave_idx_type j) const
 Size of the specified dimension. More...
 
OCTARRAY_API octave_idx_type compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
OCTARRAY_API octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocpage (octave_idx_type k) const
 Extract page: A(:,:,k+1). More...
 
OCTARRAY_API Array< T, Alloclinear_slice (octave_idx_type lo, octave_idx_type up) const
 Extract a slice from this array as a column vector: A(:)(lo+1:up). More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocreshape (octave_idx_type nr, octave_idx_type nc) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocreshape (const dim_vector &new_dims) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocpermute (const Array< octave_idx_type > &vec, bool inv=false) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocipermute (const Array< octave_idx_type > &vec) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API bool issquare (void) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API bool isvector (void) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API bool is_nd_vector (void) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API bool is_shared (void) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocindex (const octave::idx_vector &i) const
 Indexing without resizing. More...
 
OCTARRAY_API Array< T, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocindex (const Array< octave::idx_vector > &ia) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocindex (const octave::idx_vector &i, bool resize_ok, const T &rfv) const
 Indexing with possible resizing and fill. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocindex (const octave::idx_vector &i, bool resize_ok) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const T &rfv) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocindex (const Array< octave::idx_vector > &ia, bool resize_ok, const T &rfv) const
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Allocindex (const Array< octave::idx_vector > &ia, bool resize_ok) const
 Size of the specified dimension. More...
 
virtual OCTARRAY_API T resize_fill_value (void) const
 Size of the specified dimension. More...
 
OCTARRAY_API void resize2 (octave_idx_type nr, octave_idx_type nc, const T &rfv)
 Resizing (with fill). More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void resize2 (octave_idx_type nr, octave_idx_type nc)
 Size of the specified dimension. More...
 
OCTARRAY_API void resize1 (octave_idx_type n, const T &rfv)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void resize1 (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_API void assign (const octave::idx_vector &i, const Array< T, Alloc > &rhs, const T &rfv)
 Indexed assignment (always with resize & fill). More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void assign (const octave::idx_vector &i, const Array< T, Alloc > &rhs)
 Size of the specified dimension. More...
 
OCTARRAY_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< T, Alloc > &rhs, const T &rfv)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< T, Alloc > &rhs)
 Size of the specified dimension. More...
 
OCTARRAY_API void assign (const Array< octave::idx_vector > &ia, const Array< T, Alloc > &rhs, const T &rfv)
 Size of the specified dimension. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void assign (const Array< octave::idx_vector > &ia, const Array< T, Alloc > &rhs)
 Size of the specified dimension. More...
 
OCTARRAY_API void delete_elements (const octave::idx_vector &i)
 Deleting elements. More...
 
OCTARRAY_API void delete_elements (int dim, const octave::idx_vector &i)
 A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon) More...
 
OCTARRAY_API void delete_elements (const Array< octave::idx_vector > &ia)
 Dispatcher to the above two. More...
 
OCTARRAY_API Array< T, Alloc > & insert (const Array< T, Alloc > &a, const Array< octave_idx_type > &idx)
 Insert an array into another at a specified position. More...
 
OCTARRAY_API Array< T, Alloc > & insert (const Array< T, Alloc > &a, octave_idx_type r, octave_idx_type c)
 This is just a special case for idx = [r c 0 ...]. More...
 
OCTARRAY_OVERRIDABLE_FUNC_API void maybe_economize (void)
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocsort (int dim=0, sortmode mode=ASCENDING) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< T, Allocsort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const
 Size of the specified dimension. More...
 
OCTARRAY_API sortmode issorted (sortmode mode=UNSORTED) const
 Ordering is auto-detected or can be specified. More...
 
OCTARRAY_API Array< octave_idx_typesort_rows_idx (sortmode mode=ASCENDING) const
 Sort by rows returns only indices. More...
 
OCTARRAY_API sortmode is_sorted_rows (sortmode mode=UNSORTED) const
 Ordering is auto-detected or can be specified. More...
 
OCTARRAY_API octave_idx_type lookup (const T &value, sortmode mode=UNSORTED) const
 Do a binary lookup in a sorted array. More...
 
OCTARRAY_API Array< octave_idx_typelookup (const Array< T, Alloc > &values, sortmode mode=UNSORTED) const
 Ditto, but for an array of values, specializing on the case when values are sorted. More...
 
OCTARRAY_API Array< octave_idx_typefind (octave_idx_type n=-1, bool backward=false) const
 Find indices of (at most n) nonzero elements. More...
 
OCTARRAY_API Array< T, Allocnth_element (const octave::idx_vector &n, int dim=0) const
 Returns the n-th element in increasing order, using the same ordering as used for sort. More...
 
Array< U, Amap (F fcn) const
 Apply function fcn to each element of the Array<T, Alloc>. More...
 
Array< U, Amap (U(&fcn)(T)) const
 Overloads for function references. More...
 
Array< U, Amap (U(&fcn)(const T &)) const
 Size of the specified dimension. More...
 
bool test (F fcn) const
 Generic any/all test functionality with arbitrary predicate. More...
 
bool test_any (F fcn) const
 Simpler calls. More...
 
bool test_any (bool(&fcn)(T)) const
 Overloads for function references. More...
 
bool test_any (bool(&fcn)(const T &)) const
 Size of the specified dimension. More...
 
bool test_all (F fcn) const
 Size of the specified dimension. More...
 
bool test_all (bool(&fcn)(T)) const
 Size of the specified dimension. More...
 
bool test_all (bool(&fcn)(const T &)) const
 Size of the specified dimension. More...
 
OCTARRAY_API bool optimize_dimensions (const dim_vector &dv)
 Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv. More...
 
static OCTARRAY_API void instantiation_guard ()
 Size of the specified dimension. More...
 
static OCTARRAY_API Array< T, Alloccat (int dim, octave_idx_type n, const Array< T, Alloc > *array_list)
 Concatenation along a specified (0-based) dimension, equivalent to cat(). More...
 

Detailed Description

Definition at line 39 of file fCDiagMatrix.h.

Member Typedef Documentation

◆ compare_fcn_type

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

Definition at line 240 of file Array.h.

◆ complex_elt_type

◆ crefT

typedef ref_param<T>::type Array< T, Alloc >::crefT
inherited

Definition at line 238 of file Array.h.

◆ element_type

◆ full_matrix_type

◆ real_elt_type

Definition at line 47 of file fCDiagMatrix.h.

◆ size_type

typedef octave_idx_type Array< T, Alloc >::size_type
inherited

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

Definition at line 236 of file Array.h.

◆ value_type

typedef T Array< T, Alloc >::value_type
inherited

Definition at line 232 of file Array.h.

Constructor & Destructor Documentation

◆ FloatComplexDiagMatrix() [1/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( void  )
default

◆ FloatComplexDiagMatrix() [2/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const FloatComplexDiagMatrix a)
default

◆ ~FloatComplexDiagMatrix()

FloatComplexDiagMatrix::~FloatComplexDiagMatrix ( void  )
default

◆ FloatComplexDiagMatrix() [3/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 59 of file fCDiagMatrix.h.

◆ FloatComplexDiagMatrix() [4/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( octave_idx_type  r,
octave_idx_type  c,
const FloatComplex val 
)
inline

Definition at line 63 of file fCDiagMatrix.h.

◆ FloatComplexDiagMatrix() [5/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const Array< FloatComplex > &  a)
inlineexplicit

Definition at line 67 of file fCDiagMatrix.h.

◆ FloatComplexDiagMatrix() [6/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const Array< FloatComplex > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 70 of file fCDiagMatrix.h.

◆ FloatComplexDiagMatrix() [7/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const Array< float > &  a)
inlineexplicit

Definition at line 74 of file fCDiagMatrix.h.

◆ FloatComplexDiagMatrix() [8/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const FloatDiagMatrix a)
explicit

Definition at line 41 of file fCDiagMatrix.cc.

References DiagArray2< T >::elem(), and DiagArray2< T >::length().

◆ FloatComplexDiagMatrix() [9/10]

FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const MDiagArray2< FloatComplex > &  a)
inline

Definition at line 79 of file fCDiagMatrix.h.

◆ FloatComplexDiagMatrix() [10/10]

template<typename U >
FloatComplexDiagMatrix::FloatComplexDiagMatrix ( const DiagArray2< U > &  a)
inline

Definition at line 83 of file fCDiagMatrix.h.

Member Function Documentation

◆ abs()

FloatDiagMatrix FloatComplexDiagMatrix::abs ( void  ) const

◆ all_elements_are_real()

bool FloatComplexDiagMatrix::all_elements_are_real ( void  ) const

◆ array_value()

MArray<FloatComplex > MDiagArray2< FloatComplex >::array_value ( void  ) const
inlineinherited

Definition at line 86 of file MDiagArray2.h.

◆ as_column()

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::as_column ( void  ) const
inlineinherited

Return the array as a column vector.

Definition at line 420 of file Array.h.

◆ as_matrix()

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::as_matrix ( void  ) const
inlineinherited

Return the array as a matrix.

Definition at line 442 of file Array.h.

◆ as_row()

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::as_row ( void  ) const
inlineinherited

Return the array as a row vector.

Definition at line 431 of file Array.h.

◆ assign() [1/6]

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::assign ( const Array< octave::idx_vector > &  ia,
const Array< T, Alloc > &  rhs 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 765 of file Array.h.

◆ assign() [2/6]

void Array< T, Alloc >::assign ( const Array< octave::idx_vector > &  ia,
const Array< T, Alloc > &  rhs,
const T &  rfv 
)
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 763 of file Array-base.cc.

◆ assign() [3/6]

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::assign ( const octave::idx_vector i,
const Array< T, Alloc > &  rhs 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 747 of file Array.h.

◆ assign() [4/6]

void Array< T, Alloc >::assign ( const octave::idx_vector i,
const Array< T, Alloc > &  rhs,
const T &  rfv 
)
inherited

Indexed assignment (always with resize & fill).

Definition at line 745 of file Array-base.cc.

◆ assign() [5/6]

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const Array< T, Alloc > &  rhs 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 756 of file Array.h.

◆ assign() [6/6]

void Array< T, Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const Array< T, Alloc > &  rhs,
const T &  rfv 
)
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 753 of file Array-base.cc.

◆ build_diag_matrix()

template<typename T >
DiagArray2<T> DiagArray2< T >::build_diag_matrix ( ) const
inlineinherited

Definition at line 109 of file DiagArray2.h.

◆ byte_size()

template<typename T >
std::size_t DiagArray2< T >::byte_size ( void  ) const
inlineinherited

Definition at line 99 of file DiagArray2.h.

References Array< T, Alloc >::byte_size().

◆ cat()

Array< T, Alloc > Array< T, Alloc >::cat ( int  dim,
octave_idx_type  n,
const Array< T, Alloc > *  array_list 
)
staticinherited

Concatenation along a specified (0-based) dimension, equivalent to cat().

dim = -1 corresponds to dim = 0 and dim = -2 corresponds to dim = 1, but apply the looser matching rules of vertcat/horzcat.

Definition at line 854 of file Array-base.cc.

◆ check_idx()

template<typename T >
bool DiagArray2< T >::check_idx ( octave_idx_type  r,
octave_idx_type  c 
) const
privateinherited

Definition at line 128 of file DiagArray2.cc.

References err_index_out_of_range(), and r.

◆ checkelem() [1/8]

T & Array< T, Alloc >::checkelem ( const Array< octave_idx_type > &  ra_idx)
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 560 of file Array-base.cc.

◆ checkelem() [2/8]

Array< T, Alloc >::crefT Array< T, Alloc >::checkelem ( const Array< octave_idx_type > &  ra_idx) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 593 of file Array-base.cc.

◆ checkelem() [3/8]

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

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 558 of file Array-base.cc.

◆ checkelem() [4/8]

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

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 590 of file Array-base.cc.

◆ checkelem() [5/8]

T & Array< T, Alloc >::checkelem ( octave_idx_type  n)
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 554 of file Array-base.cc.

◆ checkelem() [6/8]

Array< T, Alloc >::crefT Array< T, Alloc >::checkelem ( octave_idx_type  n) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 586 of file Array-base.cc.

◆ checkelem() [7/8]

template<typename T >
T & DiagArray2< T >::checkelem ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 93 of file DiagArray2.cc.

References elem, and r.

◆ checkelem() [8/8]

template<typename T >
T DiagArray2< T >::checkelem ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 130 of file DiagArray2.h.

References elem, and r.

◆ clear() [1/3]

void Array< T, Alloc >::clear ( const dim_vector dv)
inherited

Definition at line 407 of file Array-base.cc.

◆ clear() [2/3]

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

Definition at line 409 of file Array.h.

◆ clear() [3/3]

void Array< T, Alloc >::clear ( void  )
inherited

Definition at line 406 of file Array-base.cc.

◆ cols()

template<typename T >
octave_idx_type DiagArray2< T >::cols ( void  ) const
inlineinherited

Definition at line 90 of file DiagArray2.h.

Referenced by SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), ComplexMatrix::append(), Matrix::append(), FloatComplexMatrix::append(), FloatMatrix::append(), ComplexDiagMatrix::column(), DiagMatrix::column(), column(), FloatDiagMatrix::column(), ComplexDiagMatrix::determinant(), DiagMatrix::determinant(), determinant(), FloatDiagMatrix::determinant(), octave_diag_matrix::do_index_op(), ComplexMatrix::insert(), Matrix::insert(), FloatComplexMatrix::insert(), FloatMatrix::insert(), ComplexDiagMatrix::inverse(), DiagMatrix::inverse(), inverse(), FloatDiagMatrix::inverse(), kron(), octave_float_diag_matrix::map(), octave_diag_matrix::map(), operator*(), ComplexDiagMatrix::operator+=(), ComplexMatrix::operator+=(), Matrix::operator+=(), operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), ComplexDiagMatrix::operator==(), DiagMatrix::operator==(), operator==(), FloatDiagMatrix::operator==(), ComplexDiagMatrix::pseudo_inverse(), DiagMatrix::pseudo_inverse(), pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::row(), DiagMatrix::row(), row(), FloatDiagMatrix::row(), octave_complex_diag_matrix::save_binary(), octave_float_complex_diag_matrix::save_binary(), octave_float_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), ComplexMatrix::stack(), Matrix::stack(), FloatComplexMatrix::stack(), FloatMatrix::stack(), and xpow().

◆ column() [1/2]

FloatComplexColumnVector FloatComplexDiagMatrix::column ( char *  s) const

◆ column() [2/2]

FloatComplexColumnVector FloatComplexDiagMatrix::column ( octave_idx_type  i) const

Definition at line 278 of file fCDiagMatrix.cc.

References DiagArray2< T >::cols(), DiagArray2< T >::elem(), r, and DiagArray2< T >::rows().

Referenced by column().

◆ columns()

◆ compute_index() [1/3]

octave_idx_type Array< T, Alloc >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 514 of file Array-base.cc.

◆ compute_index() [2/3]

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

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 510 of file Array-base.cc.

◆ compute_index() [3/3]

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

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 512 of file Array-base.cc.

◆ compute_index_unchecked()

OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type Array< T, Alloc >::compute_index_unchecked ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 517 of file Array.h.

◆ data()

◆ delete_elements() [1/3]

void Array< T, Alloc >::delete_elements ( const Array< octave::idx_vector > &  ia)
inherited

Dispatcher to the above two.

Definition at line 781 of file Array-base.cc.

◆ delete_elements() [2/3]

void Array< T, Alloc >::delete_elements ( const octave::idx_vector i)
inherited

Deleting elements.

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

Definition at line 775 of file Array-base.cc.

◆ delete_elements() [3/3]

void Array< T, Alloc >::delete_elements ( int  dim,
const octave::idx_vector i 
)
inherited

A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)

Definition at line 778 of file Array-base.cc.

◆ determinant()

FloatComplexDET FloatComplexDiagMatrix::determinant ( void  ) const

◆ dgelem() [1/2]

template<typename T >
T& DiagArray2< T >::dgelem ( octave_idx_type  i)
inlineinherited

Definition at line 127 of file DiagArray2.h.

References Array< T, Alloc >::elem().

◆ dgelem() [2/2]

template<typename T >
T DiagArray2< T >::dgelem ( octave_idx_type  i) const
inlineinherited

Definition at line 124 of file DiagArray2.h.

References Array< T, Alloc >::elem().

Referenced by kron(), and operator*().

◆ dgxelem() [1/2]

template<typename T >
T& DiagArray2< T >::dgxelem ( octave_idx_type  i)
inlineinherited

Definition at line 152 of file DiagArray2.h.

References Array< T, Alloc >::xelem().

Referenced by operator*(), and xpow().

◆ dgxelem() [2/2]

template<typename T >
T DiagArray2< T >::dgxelem ( octave_idx_type  i) const
inlineinherited

Definition at line 155 of file DiagArray2.h.

References Array< T, Alloc >::xelem().

◆ diag() [1/2]

MArray<FloatComplex > MDiagArray2< FloatComplex >::diag ( octave_idx_type  k = 0) const
inlineinherited

Definition at line 103 of file MDiagArray2.h.

◆ diag() [2/2]

Array< T, Alloc > Array< T, Alloc >::diag ( octave_idx_type  m,
octave_idx_type  n 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 847 of file Array-base.cc.

◆ diag_length()

template<typename T >
octave_idx_type DiagArray2< T >::diag_length ( void  ) const
inlineinherited

Definition at line 93 of file DiagArray2.h.

References Array< T, Alloc >::numel().

Referenced by kron().

◆ dim1()

template<typename T >
octave_idx_type DiagArray2< T >::dim1 ( void  ) const
inlineinherited

Definition at line 86 of file DiagArray2.h.

◆ dim2()

template<typename T >
octave_idx_type DiagArray2< T >::dim2 ( void  ) const
inlineinherited

Definition at line 87 of file DiagArray2.h.

◆ dim3()

OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type Array< T, Alloc >::dim3 ( void  ) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 479 of file Array.h.

◆ dims()

template<typename T >
dim_vector DiagArray2< T >::dims ( void  ) const
inlineinherited

Definition at line 101 of file DiagArray2.h.

◆ elem() [1/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::elem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 574 of file Array.h.

◆ elem() [2/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::elem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 607 of file Array.h.

◆ elem() [3/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 571 of file Array.h.

◆ elem() [4/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 603 of file Array.h.

◆ elem() [5/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::elem ( octave_idx_type  n)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 562 of file Array.h.

◆ elem() [6/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::elem ( octave_idx_type  n) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 595 of file Array.h.

◆ elem() [7/8]

template<typename T >
T & DiagArray2< T >::elem ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 85 of file DiagArray2.cc.

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

◆ elem() [8/8]

◆ extract()

FloatComplexMatrix FloatComplexDiagMatrix::extract ( octave_idx_type  r1,
octave_idx_type  c1,
octave_idx_type  r2,
octave_idx_type  c2 
) const

Definition at line 227 of file fCDiagMatrix.cc.

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

◆ extract_diag()

FloatComplexColumnVector FloatComplexDiagMatrix::extract_diag ( octave_idx_type  k = 0) const
inline

◆ fill() [1/13]

◆ fill() [2/13]

◆ fill() [3/13]

FloatComplexDiagMatrix & FloatComplexDiagMatrix::fill ( const FloatComplex val)

Definition at line 72 of file fCDiagMatrix.cc.

References DiagArray2< T >::elem(), and DiagArray2< T >::length().

◆ fill() [4/13]

FloatComplexDiagMatrix & FloatComplexDiagMatrix::fill ( const FloatComplex val,
octave_idx_type  beg,
octave_idx_type  end 
)

Definition at line 93 of file fCDiagMatrix.cc.

References DiagArray2< T >::elem(), and DiagArray2< T >::length().

◆ fill() [5/13]

◆ fill() [6/13]

◆ fill() [7/13]

◆ fill() [8/13]

◆ fill() [9/13]

FloatComplexDiagMatrix & FloatComplexDiagMatrix::fill ( const FloatRowVector a)

◆ fill() [10/13]

FloatComplexDiagMatrix & FloatComplexDiagMatrix::fill ( const FloatRowVector a,
octave_idx_type  beg 
)

◆ fill() [11/13]

void Array< T, Alloc >::fill ( const T &  val)
inherited

Definition at line 404 of file Array-base.cc.

◆ fill() [12/13]

FloatComplexDiagMatrix & FloatComplexDiagMatrix::fill ( float  val)

Definition at line 64 of file fCDiagMatrix.cc.

References DiagArray2< T >::elem(), and DiagArray2< T >::length().

◆ fill() [13/13]

FloatComplexDiagMatrix & FloatComplexDiagMatrix::fill ( float  val,
octave_idx_type  beg,
octave_idx_type  end 
)

Definition at line 80 of file fCDiagMatrix.cc.

References DiagArray2< T >::elem(), and DiagArray2< T >::length().

◆ find() [1/3]

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

Find indices of (at most n) nonzero elements.

If n is specified, backward specifies search from backward.

Definition at line 835 of file Array-base.cc.

◆ find() [2/3]

OCTINTERP_API Array< octave_idx_type > Array< octave::cdef_object >::find ( octave_idx_type  ,
bool   
) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ find() [3/3]

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

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

◆ fortran_vec()

template<typename T >
T* DiagArray2< T >::fortran_vec ( void  )
inlineinherited

Definition at line 176 of file DiagArray2.h.

References Array< T, Alloc >::fortran_vec().

Referenced by ComplexDiagMatrix::operator+=(), and operator+=().

◆ hermitian() [1/3]

MDiagArray2<FloatComplex > MDiagArray2< FloatComplex >::hermitian ( FloatComplex (*)(const FloatComplex &)  fcn = nullptr) const
inlineinherited

Definition at line 107 of file MDiagArray2.h.

◆ hermitian() [2/3]

template<typename T >
DiagArray2< T > DiagArray2< T >::hermitian ( T(*)(const T &)  fcn = nullptr) const
inherited

Definition at line 76 of file DiagArray2.cc.

Referenced by MDiagArray2< T >::hermitian().

◆ hermitian() [3/3]

FloatComplexDiagMatrix FloatComplexDiagMatrix::hermitian ( void  ) const
inline

Definition at line 108 of file fCDiagMatrix.h.

References conj(), and MDiagArray2< T >::hermitian().

Referenced by oct_unop_hermitian().

◆ index() [1/9]

Array< T, Alloc > Array< T, Alloc >::index ( const Array< octave::idx_vector > &  ia) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 686 of file Array-base.cc.

◆ index() [2/9]

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::index ( const Array< octave::idx_vector > &  ia,
bool  resize_ok 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 736 of file Array.h.

◆ index() [3/9]

Array< T, Alloc > Array< T, Alloc >::index ( const Array< octave::idx_vector > &  ia,
bool  resize_ok,
const T &  rfv 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 733 of file Array-base.cc.

◆ index() [4/9]

Array< T, Alloc > Array< T, Alloc >::index ( const octave::idx_vector i) const
inherited

Indexing without resizing.

Definition at line 682 of file Array-base.cc.

◆ index() [5/9]

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::index ( const octave::idx_vector i,
bool  resize_ok 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 717 of file Array.h.

◆ index() [6/9]

Array< T, Alloc > Array< T, Alloc >::index ( const octave::idx_vector i,
bool  resize_ok,
const T &  rfv 
) const
inherited

Indexing with possible resizing and fill.

Definition at line 715 of file Array-base.cc.

◆ index() [7/9]

Array< T, Alloc > Array< T, Alloc >::index ( const octave::idx_vector i,
const octave::idx_vector j 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 684 of file Array-base.cc.

◆ index() [8/9]

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::index ( const octave::idx_vector i,
const octave::idx_vector j,
bool  resize_ok 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 726 of file Array.h.

◆ index() [9/9]

Array< T, Alloc > Array< T, Alloc >::index ( const octave::idx_vector i,
const octave::idx_vector j,
bool  resize_ok,
const T &  rfv 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 723 of file Array-base.cc.

◆ insert() [1/2]

Array< T, Alloc > & Array< T, Alloc >::insert ( const Array< T, Alloc > &  a,
const Array< octave_idx_type > &  idx 
)
inherited

Insert an array into another at a specified position.

If size (a) is [d1 d2 ... dN] and idx is [i1 i2 ... iN], this method is equivalent to x(i1:i1+d1-1, i2:i2+d2-1, ... , iN:iN+dN-1) = a.

Definition at line 789 of file Array-base.cc.

◆ insert() [2/2]

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

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

Definition at line 793 of file Array-base.cc.

◆ instantiation_guard() [1/21]

OCTINTERP_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave::cdef_object >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [2/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< Complex >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [3/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< float >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [4/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< FloatComplex >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [5/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< signed char >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [6/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< long >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [7/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< unsigned char >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [8/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< unsigned short >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [9/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< unsigned int >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [10/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< unsigned long >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [11/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_int8 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [12/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_int16 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [13/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_int32 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [14/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_int64 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [15/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_uint8 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [16/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_uint16 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [17/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_uint32 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [18/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave_uint64 >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [19/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< octave::idx_vector >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [20/21]

OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void Array< short >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [21/21]

void Array< T, Alloc >::instantiation_guard
staticprivateinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 955 of file Array-base.cc.

◆ inverse() [1/2]

FloatComplexDiagMatrix FloatComplexDiagMatrix::inverse ( octave_idx_type info) const

◆ inverse() [2/2]

FloatComplexDiagMatrix FloatComplexDiagMatrix::inverse ( void  ) const

Definition at line 308 of file fCDiagMatrix.cc.

◆ ipermute()

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::ipermute ( const Array< octave_idx_type > &  vec) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 645 of file Array.h.

◆ is_multiple_of_identity()

bool MDiagArray2< FloatComplex >::is_multiple_of_identity ( FloatComplex  val) const
inherited

Definition at line 110 of file MDiagArray2.cc.

◆ is_nd_vector()

OCTARRAY_OVERRIDABLE_FUNC_API bool Array< T, Alloc >::is_nd_vector ( void  ) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 657 of file Array.h.

◆ is_shared()

OCTARRAY_OVERRIDABLE_FUNC_API bool Array< T, Alloc >::is_shared ( void  ) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 674 of file Array.h.

◆ is_sorted_rows() [1/3]

sortmode Array< T, Alloc >::is_sorted_rows ( sortmode  mode = UNSORTED) const
inherited

Ordering is auto-detected or can be specified.

Definition at line 819 of file Array-base.cc.

◆ is_sorted_rows() [2/3]

OCTINTERP_API sortmode Array< octave::cdef_object >::is_sorted_rows ( sortmode  ) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ is_sorted_rows() [3/3]

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

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

◆ isempty()

template<typename T >
bool DiagArray2< T >::isempty ( void  ) const
inlineinherited

Definition at line 103 of file DiagArray2.h.

References numel().

◆ issorted() [1/4]

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

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

◆ issorted() [2/4]

sortmode Array< T, Alloc >::issorted ( sortmode  mode = UNSORTED) const
inherited

Ordering is auto-detected or can be specified.

Definition at line 813 of file Array-base.cc.

◆ issorted() [3/4]

OCTINTERP_API sortmode Array< octave::cdef_object >::issorted ( sortmode  ) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ issorted() [4/4]

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

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

◆ issquare()

OCTARRAY_OVERRIDABLE_FUNC_API bool Array< T, Alloc >::issquare ( void  ) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 648 of file Array.h.

◆ isvector()

OCTARRAY_OVERRIDABLE_FUNC_API bool Array< T, Alloc >::isvector ( void  ) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 654 of file Array.h.

◆ length()

template<typename T >
octave_idx_type DiagArray2< T >::length ( void  ) const
inlineinherited

◆ linear_slice()

Array< T, Alloc > Array< T, Alloc >::linear_slice ( octave_idx_type  lo,
octave_idx_type  up 
) const
inherited

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

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

Definition at line 632 of file Array-base.cc.

◆ lookup() [1/6]

OCTINTERP_API Array< octave_idx_type > Array< octave::cdef_object >::lookup ( const Array< octave::cdef_object > &  ,
sortmode   
) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ lookup() [2/6]

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

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

◆ lookup() [3/6]

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

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

NaNs get the value N.

Definition at line 827 of file Array-base.cc.

◆ lookup() [4/6]

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

Do a binary lookup in a sorted array.

Must not contain NaNs. Mode can be specified or is auto-detected by comparing 1st and last element.

Definition at line 823 of file Array-base.cc.

◆ lookup() [5/6]

OCTINTERP_API octave_idx_type Array< octave::cdef_object >::lookup ( octave::cdef_object const &  ,
sortmode   
) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ lookup() [6/6]

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

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

◆ make_unique()

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::make_unique ( void  )
inlineinherited

Definition at line 216 of file Array.h.

◆ map() [1/3]

Array<U, A> Array< T, Alloc >::map ( fcn) const
inlineinherited

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

This function is optimized with a manually unrolled loop.

Definition at line 865 of file Array.h.

◆ map() [2/3]

Array<U, A> Array< T, Alloc >::map ( U(&)(const T &)  fcn) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 910 of file Array.h.

◆ map() [3/3]

Array<U, A> Array< T, Alloc >::map ( U(&)(T)  fcn) const
inlineinherited

Overloads for function references.

Definition at line 901 of file Array.h.

◆ maybe_economize()

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::maybe_economize ( void  )
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 795 of file Array.h.

◆ ndims()

template<typename T >
int DiagArray2< T >::ndims ( void  ) const
inlineinherited

Definition at line 105 of file DiagArray2.h.

◆ nelem()

◆ nil_rep()

Array< T, Alloc >::ArrayRep * Array< T, Alloc >::nil_rep ( void  )
staticprivateinherited

Definition at line 270 of file Array-base.cc.

◆ nnz()

octave_idx_type MDiagArray2< FloatComplex >::nnz ( void  ) const
inlineinherited

Definition at line 91 of file MDiagArray2.h.

◆ nth_element() [1/3]

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

Definition at line 52 of file Array-tc.cc.

◆ nth_element() [2/3]

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

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

◆ nth_element() [3/3]

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

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

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

Definition at line 841 of file Array-base.cc.

◆ numel()

template<typename T >
octave_idx_type DiagArray2< T >::numel ( void  ) const
inlineinherited

Definition at line 97 of file DiagArray2.h.

◆ operator!=()

Definition at line 58 of file fCDiagMatrix.cc.

◆ operator()() [1/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::operator() ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 583 of file Array.h.

◆ operator()() [2/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::operator() ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 619 of file Array.h.

◆ operator()() [3/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 581 of file Array.h.

◆ operator()() [4/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 616 of file Array.h.

◆ operator()() [5/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::operator() ( octave_idx_type  n)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 577 of file Array.h.

◆ operator()() [6/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::operator() ( octave_idx_type  n) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 611 of file Array.h.

◆ operator()() [7/8]

template<typename T >
T& DiagArray2< T >::operator() ( octave_idx_type  r,
octave_idx_type  c 
)
inlineinherited

Definition at line 140 of file DiagArray2.h.

References elem, and r.

◆ operator()() [8/8]

template<typename T >
T DiagArray2< T >::operator() ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 133 of file DiagArray2.h.

References elem, and r.

◆ operator+=()

◆ operator-=()

OCTAVE_API FloatComplexDiagMatrix& FloatComplexDiagMatrix::operator-= ( const FloatDiagMatrix a)

◆ operator=()

FloatComplexDiagMatrix& FloatComplexDiagMatrix::operator= ( const FloatComplexDiagMatrix a)
default

◆ operator==()

bool FloatComplexDiagMatrix::operator== ( const FloatComplexDiagMatrix a) const

◆ optimize_dimensions()

bool Array< T, Alloc >::optimize_dimensions ( const dim_vector dv)
inherited

Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv.

This is useful for maintaining several arrays with supposedly equal dimensions (e.g. structs in the interpreter).

Definition at line 952 of file Array-base.cc.

◆ page()

Array< T, Alloc > Array< T, Alloc >::page ( octave_idx_type  k) const
inherited

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

Definition at line 627 of file Array-base.cc.

◆ pages()

OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type Array< T, Alloc >::pages ( void  ) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 481 of file Array.h.

◆ permute()

Array< T, Alloc > Array< T, Alloc >::permute ( const Array< octave_idx_type > &  vec,
bool  inv = false 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 643 of file Array-base.cc.

◆ print_info()

template<typename T >
void DiagArray2< T >::print_info ( std::ostream &  os,
const std::string &  prefix 
) const
inlineinherited

Definition at line 178 of file DiagArray2.h.

References Array< T, Alloc >::print_info().

◆ pseudo_inverse()

FloatComplexDiagMatrix FloatComplexDiagMatrix::pseudo_inverse ( float  tol = 0.0f) const

◆ rcond()

float FloatComplexDiagMatrix::rcond ( void  ) const

◆ reshape() [1/2]

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::reshape ( const dim_vector new_dims) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 639 of file Array.h.

◆ reshape() [2/2]

OCTARRAY_OVERRIDABLE_FUNC_API Array<T, Alloc> Array< T, Alloc >::reshape ( octave_idx_type  nr,
octave_idx_type  nc 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 635 of file Array.h.

◆ resize() [1/4]

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::resize ( const dim_vector dv)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 704 of file Array.h.

◆ resize() [2/4]

void Array< T, Alloc >::resize ( const dim_vector dv,
const T &  rfv 
)
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 703 of file Array-base.cc.

◆ resize() [3/4]

template<typename T >
void DiagArray2< T >::resize ( octave_idx_type  n,
octave_idx_type  m 
)
inlineinherited

Definition at line 159 of file DiagArray2.h.

References m, and n.

◆ resize() [4/4]

template<typename T >
void DiagArray2< T >::resize ( octave_idx_type  n,
octave_idx_type  m,
const T &  rfv 
)
inherited

Definition at line 101 of file DiagArray2.cc.

References min(), r, and Array< T, Alloc >::resize().

◆ resize1() [1/2]

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::resize1 ( octave_idx_type  n)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 700 of file Array.h.

◆ resize1() [2/2]

void Array< T, Alloc >::resize1 ( octave_idx_type  n,
const T &  rfv 
)
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 699 of file Array-base.cc.

◆ resize2() [1/2]

OCTARRAY_OVERRIDABLE_FUNC_API void Array< T, Alloc >::resize2 ( octave_idx_type  nr,
octave_idx_type  nc 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 694 of file Array.h.

◆ resize2() [2/2]

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

Resizing (with fill).

Definition at line 693 of file Array-base.cc.

◆ resize_fill_value()

T Array< T, Alloc >::resize_fill_value ( void  ) const
virtualinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 689 of file Array-base.cc.

◆ row() [1/2]

FloatComplexRowVector FloatComplexDiagMatrix::row ( char *  s) const

Definition at line 263 of file fCDiagMatrix.cc.

References current_liboctave_error_handler, row(), and DiagArray2< T >::rows().

◆ row() [2/2]

FloatComplexRowVector FloatComplexDiagMatrix::row ( octave_idx_type  i) const

Definition at line 248 of file fCDiagMatrix.cc.

References DiagArray2< T >::cols(), DiagArray2< T >::elem(), r, and DiagArray2< T >::rows().

Referenced by row().

◆ rows()

template<typename T >
octave_idx_type DiagArray2< T >::rows ( void  ) const
inlineinherited

Definition at line 89 of file DiagArray2.h.

Referenced by ComplexDiagMatrix::abs(), DiagMatrix::abs(), abs(), FloatDiagMatrix::abs(), ComplexMatrix::append(), Matrix::append(), FloatComplexMatrix::append(), FloatMatrix::append(), ComplexDiagMatrix::column(), DiagMatrix::column(), column(), FloatDiagMatrix::column(), ComplexDiagMatrix::determinant(), DiagMatrix::determinant(), determinant(), FloatDiagMatrix::determinant(), octave_diag_matrix::do_index_op(), ComplexMatrix::insert(), Matrix::insert(), FloatComplexMatrix::insert(), FloatMatrix::insert(), ComplexDiagMatrix::inverse(), DiagMatrix::inverse(), inverse(), FloatDiagMatrix::inverse(), kron(), octave_complex_diag_matrix::map(), octave_float_complex_diag_matrix::map(), octave_float_diag_matrix::map(), octave_diag_matrix::map(), operator*(), ComplexDiagMatrix::operator+=(), ComplexMatrix::operator+=(), Matrix::operator+=(), operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), ComplexDiagMatrix::operator==(), DiagMatrix::operator==(), operator==(), FloatDiagMatrix::operator==(), ComplexDiagMatrix::pseudo_inverse(), DiagMatrix::pseudo_inverse(), pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::row(), DiagMatrix::row(), row(), FloatDiagMatrix::row(), octave_complex_diag_matrix::save_binary(), octave_float_complex_diag_matrix::save_binary(), octave_float_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), ComplexMatrix::stack(), Matrix::stack(), FloatComplexMatrix::stack(), FloatMatrix::stack(), and xpow().

◆ size()

OCTARRAY_OVERRIDABLE_FUNC_API size_type Array< T, Alloc >::size ( const size_type  d) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 492 of file Array.h.

◆ sort() [1/6]

Array< T, Alloc > Array< T, Alloc >::sort ( Array< octave_idx_type > &  sidx,
int  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 809 of file Array-base.cc.

◆ sort() [2/6]

OCTINTERP_API Array< octave::cdef_object > Array< octave::cdef_object >::sort ( Array< octave_idx_type > &  sidx,
int  ,
sortmode   
) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ sort() [3/6]

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

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

◆ sort() [4/6]

Array< T, Alloc > Array< T, Alloc >::sort ( int  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 808 of file Array-base.cc.

◆ sort() [5/6]

OCTINTERP_API Array< octave::cdef_object > Array< octave::cdef_object >::sort ( int  ,
sortmode   
) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ sort() [6/6]

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

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

◆ sort_rows_idx() [1/3]

Array< octave_idx_type > Array< T, Alloc >::sort_rows_idx ( sortmode  mode = ASCENDING) const
inherited

Sort by rows returns only indices.

Definition at line 816 of file Array-base.cc.

◆ sort_rows_idx() [2/3]

OCTINTERP_API Array< octave_idx_type > Array< octave::cdef_object >::sort_rows_idx ( sortmode  ) const
inherited

Definition at line 52 of file Array-tc.cc.

◆ sort_rows_idx() [3/3]

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

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

◆ squeeze()

Array< T, Alloc > Array< T, Alloc >::squeeze ( void  ) const
inherited

Chop off leading singleton dimensions.

Definition at line 507 of file Array-base.cc.

◆ test()

bool Array< T, Alloc >::test ( fcn) const
inlineinherited

Generic any/all test functionality with arbitrary predicate.

Definition at line 916 of file Array.h.

◆ test_all() [1/3]

bool Array< T, Alloc >::test_all ( bool(&)(const T &)  fcn) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 943 of file Array.h.

◆ test_all() [2/3]

bool Array< T, Alloc >::test_all ( bool(&)(T)  fcn) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 940 of file Array.h.

◆ test_all() [3/3]

bool Array< T, Alloc >::test_all ( fcn) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 928 of file Array.h.

◆ test_any() [1/3]

bool Array< T, Alloc >::test_any ( bool(&)(const T &)  fcn) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 937 of file Array.h.

◆ test_any() [2/3]

bool Array< T, Alloc >::test_any ( bool(&)(T)  fcn) const
inlineinherited

Overloads for function references.

Definition at line 934 of file Array.h.

◆ test_any() [3/3]

bool Array< T, Alloc >::test_any ( fcn) const
inlineinherited

Simpler calls.

Definition at line 924 of file Array.h.

◆ transpose()

FloatComplexDiagMatrix FloatComplexDiagMatrix::transpose ( void  ) const
inline

Definition at line 110 of file fCDiagMatrix.h.

References MDiagArray2< T >::transpose().

Referenced by oct_unop_transpose().

◆ xelem() [1/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::xelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 544 of file Array.h.

◆ xelem() [2/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::xelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 548 of file Array.h.

◆ xelem() [3/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 530 of file Array.h.

◆ xelem() [4/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 537 of file Array.h.

◆ xelem() [5/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 540 of file Array.h.

◆ xelem() [6/8]

OCTARRAY_OVERRIDABLE_FUNC_API T& Array< T, Alloc >::xelem ( octave_idx_type  n)
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 524 of file Array.h.

◆ xelem() [7/8]

OCTARRAY_OVERRIDABLE_FUNC_API crefT Array< T, Alloc >::xelem ( octave_idx_type  n) const
inlineinherited

Size of the specified dimension.

Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.

Equivalent to Octave's 'size (A, DIM)'

Definition at line 526 of file Array.h.

◆ xelem() [8/8]

template<typename T >
T DiagArray2< T >::xelem ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 147 of file DiagArray2.h.

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

Referenced by ComplexDiagMatrix::inverse(), and DiagMatrix::inverse().

Friends And Related Function Documentation

◆ conj

Definition at line 218 of file fCDiagMatrix.cc.

◆ operator<<

OCTAVE_API std::ostream& operator<< ( std::ostream &  os,
const FloatComplexDiagMatrix a 
)
friend

Definition at line 501 of file fCDiagMatrix.cc.

Member Data Documentation

◆ m_d1

template<typename T >
octave_idx_type DiagArray2< T >::m_d1
protectedinherited

Definition at line 45 of file DiagArray2.h.

Referenced by DiagArray2< T >::operator=().

◆ m_d2

template<typename T >
octave_idx_type DiagArray2< T >::m_d2
protectedinherited

Definition at line 45 of file DiagArray2.h.

Referenced by DiagArray2< T >::operator=().

◆ m_dimensions

dim_vector Array< T, Alloc >::m_dimensions
protectedinherited

Definition at line 245 of file Array.h.

◆ m_rep

Array<T, Alloc>::ArrayRep* Array< T, Alloc >::m_rep
protectedinherited

Definition at line 247 of file Array.h.

◆ m_slice_data

T* Array< T, Alloc >::m_slice_data
protectedinherited

Definition at line 256 of file Array.h.

◆ m_slice_len

octave_idx_type Array< T, Alloc >::m_slice_len
protectedinherited

Definition at line 257 of file Array.h.


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