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

#include "CDiagMatrix.h"

Inheritance diagram for ComplexDiagMatrix:
Collaboration diagram for ComplexDiagMatrix:

Public Types

typedef Complex complex_elt_type
 
typedef Complex element_type
 
typedef ComplexMatrix full_matrix_type
 
typedef double real_elt_type
 

Public Member Functions

 ComplexDiagMatrix (const Array< Complex > &a)
 
 ComplexDiagMatrix (const Array< Complex > &a, octave_idx_type r, octave_idx_type c)
 
 ComplexDiagMatrix (const Array< double > &a)
 
 ComplexDiagMatrix (const ComplexDiagMatrix &a)=default
 
template<typename U >
 ComplexDiagMatrix (const DiagArray2< U > &a)
 
OCTAVE_API ComplexDiagMatrix (const DiagMatrix &a)
 
 ComplexDiagMatrix (const MDiagArray2< Complex > &a)
 
 ComplexDiagMatrix (octave_idx_type r, octave_idx_type c)
 
 ComplexDiagMatrix (octave_idx_type r, octave_idx_type c, const Complex &val)
 
 ComplexDiagMatrix (void)=default
 
 ~ComplexDiagMatrix (void)=default
 
DiagMatrix abs (void) const
 
OCTAVE_API bool all_elements_are_real (void) const
 
MArray< Complexarray_value () const
 
DiagArray2< Complexbuild_diag_matrix () const
 
std::size_t byte_size (void) const
 
Complexcheckelem (octave_idx_type r, octave_idx_type c)
 
Complex checkelem (octave_idx_type r, octave_idx_type c) const
 
octave_idx_type cols (void) const
 
OCTAVE_API ComplexColumnVector column (char *s) const
 
OCTAVE_API ComplexColumnVector column (octave_idx_type i) const
 
octave_idx_type columns (void) const
 
const Complexdata (void) const
 
OCTAVE_API ComplexDET determinant (void) const
 
Complexdgelem (octave_idx_type i)
 
Complex dgelem (octave_idx_type i) const
 
Complexdgxelem (octave_idx_type i)
 
Complex dgxelem (octave_idx_type i) const
 
MArray< Complexdiag (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 Complexelem (octave_idx_type r, octave_idx_type c)
 
Complex elem (octave_idx_type r, octave_idx_type c) const
 
OCTAVE_API ComplexMatrix extract (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
 
ComplexColumnVector extract_diag (octave_idx_type k=0) const
 
OCTAVE_API ComplexDiagMatrixfill (const ColumnVector &a)
 
OCTAVE_API ComplexDiagMatrixfill (const ColumnVector &a, octave_idx_type beg)
 
OCTARRAY_API void fill (const Complex &val)
 
OCTAVE_API ComplexDiagMatrixfill (const Complex &val)
 
OCTAVE_API ComplexDiagMatrixfill (const Complex &val, octave_idx_type beg, octave_idx_type end)
 
OCTAVE_API ComplexDiagMatrixfill (const ComplexColumnVector &a)
 
OCTAVE_API ComplexDiagMatrixfill (const ComplexColumnVector &a, octave_idx_type beg)
 
OCTAVE_API ComplexDiagMatrixfill (const ComplexRowVector &a)
 
OCTAVE_API ComplexDiagMatrixfill (const ComplexRowVector &a, octave_idx_type beg)
 
OCTAVE_API ComplexDiagMatrixfill (const RowVector &a)
 
OCTAVE_API ComplexDiagMatrixfill (const RowVector &a, octave_idx_type beg)
 
OCTAVE_API ComplexDiagMatrixfill (double val)
 
OCTAVE_API ComplexDiagMatrixfill (double val, octave_idx_type beg, octave_idx_type end)
 
Complexfortran_vec (void)
 
MDiagArray2< Complexhermitian (Complex(*fcn)(const Complex &)=nullptr) const
 
ComplexDiagMatrix hermitian (void) const
 
OCTAVE_API ComplexDiagMatrix inverse (octave_idx_type &info) const
 
OCTAVE_API ComplexDiagMatrix inverse (void) const
 
OCTAVE_API bool is_multiple_of_identity (Complex 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 ComplexDiagMatrix &a) const
 
Complexoperator() (octave_idx_type r, octave_idx_type c)
 
Complex operator() (octave_idx_type r, octave_idx_type c) const
 
OCTAVE_API ComplexDiagMatrixoperator+= (const DiagMatrix &a)
 
OCTAVE_API ComplexDiagMatrixoperator-= (const DiagMatrix &a)
 
ComplexDiagMatrixoperator= (const ComplexDiagMatrix &a)=default
 
OCTAVE_API bool operator== (const ComplexDiagMatrix &a) const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_API ComplexDiagMatrix pseudo_inverse (double tol=0.0) const
 
OCTAVE_API double 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 Complex &rfv)
 
OCTAVE_API ComplexRowVector row (char *s) const
 
OCTAVE_API ComplexRowVector row (octave_idx_type i) const
 
octave_idx_type rows (void) const
 
ComplexDiagMatrix transpose (void) const
 
Complex xelem (octave_idx_type r, octave_idx_type c) const
 

Protected Types

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

Protected Member Functions

Array< Complex, Allocas_column (void) const
 Return the array as a column vector. More...
 
Array< Complex, Allocas_matrix (void) const
 Return the array as a matrix. More...
 
Array< Complex, 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)
 
OCTAVE_API Array< octave_idx_typefind (octave_idx_type, bool) const
 
OCTAVE_API sortmode is_sorted_rows (sortmode) const
 
OCTAVE_API sortmode issorted (sortmode) const
 
OCTAVE_API Array< octave_idx_typelookup (const Array< octave::idx_vector > &, sortmode) const
 
OCTAVE_API octave_idx_type lookup (octave::idx_vector const &, sortmode) const
 
void make_unique (void)
 
OCTAVE_API Array< octave::idx_vectornth_element (const octave::idx_vector &, int) const
 
OCTAVE_API Array< octave::idx_vectorsort (Array< octave_idx_type > &sidx, int, sortmode) const
 
OCTAVE_API Array< octave::idx_vectorsort (int, 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< Complex, Alloc >::ArrayRep * m_rep
 
Complexm_slice_data
 
octave_idx_type m_slice_len
 

Private Member Functions

bool check_idx (octave_idx_type r, octave_idx_type c) const
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 
OCTAVE_API void instantiation_guard ()
 

Static Private Member Functions

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

Friends

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

Third dimension

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

OCTARRAY_API Array< Complex, Allocdiag (octave_idx_type m, octave_idx_type n) const
 Size of the specified dimension. More...
 
Complexelem (octave_idx_type n)
 Size of the specified dimension. More...
 
Complexelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
Complexelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT elem (octave_idx_type n) const
 Size of the specified dimension. More...
 
crefT elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
crefT elem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_API Complexcheckelem (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_API Complexcheckelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
OCTARRAY_API Complexcheckelem (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...
 
Complexoperator() (octave_idx_type n)
 Size of the specified dimension. More...
 
Complexoperator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
Complexoperator() (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT operator() (octave_idx_type n) const
 Size of the specified dimension. More...
 
crefT operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
crefT operator() (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
Complexxelem (octave_idx_type n)
 Size of the specified dimension. More...
 
crefT xelem (octave_idx_type n) const
 Size of the specified dimension. More...
 
Complexxelem (octave_idx_type i, octave_idx_type j)
 Size of the specified dimension. More...
 
Complexxelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
 Size of the specified dimension. More...
 
crefT xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
 Size of the specified dimension. More...
 
Complexxelem (const Array< octave_idx_type > &ra_idx)
 Size of the specified dimension. More...
 
crefT xelem (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_API void resize (const dim_vector &dv, const Complex &rfv)
 Size of the specified dimension. More...
 
void resize (const dim_vector &dv)
 Size of the specified dimension. More...
 
octave_idx_type dim3 (void) const
 Size of the specified dimension. More...
 
octave_idx_type pages (void) const
 Size of the specified dimension. More...
 
size_type size (const size_type d) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, 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...
 
octave_idx_type compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocpage (octave_idx_type k) const
 Extract page: A(:,:,k+1). More...
 
OCTARRAY_API Array< Complex, 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...
 
Array< Complex, Allocreshape (octave_idx_type nr, octave_idx_type nc) const
 Size of the specified dimension. More...
 
Array< Complex, Allocreshape (const dim_vector &new_dims) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocpermute (const Array< octave_idx_type > &vec, bool inv=false) const
 Size of the specified dimension. More...
 
Array< Complex, Allocipermute (const Array< octave_idx_type > &vec) const
 Size of the specified dimension. More...
 
bool issquare (void) const
 Size of the specified dimension. More...
 
bool isvector (void) const
 Size of the specified dimension. More...
 
bool is_nd_vector (void) const
 Size of the specified dimension. More...
 
bool is_shared (void)
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocindex (const octave::idx_vector &i) const
 Indexing without resizing. More...
 
OCTARRAY_API Array< Complex, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocindex (const Array< octave::idx_vector > &ia) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocindex (const octave::idx_vector &i, bool resize_ok, const Complex &rfv) const
 Indexing with possible resizing and fill. More...
 
Array< Complex, Allocindex (const octave::idx_vector &i, bool resize_ok) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const Complex &rfv) const
 Size of the specified dimension. More...
 
Array< Complex, Allocindex (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocindex (const Array< octave::idx_vector > &ia, bool resize_ok, const Complex &rfv) const
 Size of the specified dimension. More...
 
Array< Complex, Allocindex (const Array< octave::idx_vector > &ia, bool resize_ok) const
 Size of the specified dimension. More...
 
virtual OCTARRAY_API Complex resize_fill_value (void) const
 Size of the specified dimension. More...
 
OCTARRAY_API void resize2 (octave_idx_type nr, octave_idx_type nc, const Complex &rfv)
 Resizing (with fill). More...
 
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 Complex &rfv)
 Size of the specified dimension. More...
 
void resize1 (octave_idx_type n)
 Size of the specified dimension. More...
 
OCTARRAY_API void assign (const octave::idx_vector &i, const Array< Complex, Alloc > &rhs, const Complex &rfv)
 Indexed assignment (always with resize & fill). More...
 
void assign (const octave::idx_vector &i, const Array< Complex, Alloc > &rhs)
 Size of the specified dimension. More...
 
OCTARRAY_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< Complex, Alloc > &rhs, const Complex &rfv)
 Size of the specified dimension. More...
 
void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< Complex, Alloc > &rhs)
 Size of the specified dimension. More...
 
OCTARRAY_API void assign (const Array< octave::idx_vector > &ia, const Array< Complex, Alloc > &rhs, const Complex &rfv)
 Size of the specified dimension. More...
 
void assign (const Array< octave::idx_vector > &ia, const Array< Complex, 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< Complex, Alloc > & insert (const Array< Complex, Alloc > &a, const Array< octave_idx_type > &idx)
 Insert an array into another at a specified position. More...
 
OCTARRAY_API Array< Complex, Alloc > & insert (const Array< Complex, Alloc > &a, octave_idx_type r, octave_idx_type c)
 This is just a special case for idx = [r c 0 ...]. More...
 
void maybe_economize (void)
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, Allocsort (int dim=0, sortmode mode=ASCENDING) const
 Size of the specified dimension. More...
 
OCTARRAY_API Array< Complex, 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 Complex &value, sortmode mode=UNSORTED) const
 Do a binary lookup in a sorted array. More...
 
OCTARRAY_API Array< octave_idx_typelookup (const Array< Complex, 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< Complex, 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)(Complex)) const
 Overloads for function references. More...
 
Array< U, Amap (U(&fcn)(const Complex &)) 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)(Complex)) const
 Overloads for function references. More...
 
bool test_any (bool(&fcn)(const Complex &)) const
 Size of the specified dimension. More...
 
bool test_all (F fcn) const
 Size of the specified dimension. More...
 
bool test_all (bool(&fcn)(Complex)) const
 Size of the specified dimension. More...
 
bool test_all (bool(&fcn)(const Complex &)) 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< Complex, Alloccat (int dim, octave_idx_type n, const Array< Complex, Alloc > *array_list)
 Concatenation along a specified (0-based) dimension, equivalent to cat(). More...
 

Detailed Description

Definition at line 39 of file CDiagMatrix.h.

Member Typedef Documentation

◆ compare_fcn_type

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

Definition at line 239 of file Array.h.

◆ complex_elt_type

Definition at line 48 of file CDiagMatrix.h.

◆ crefT

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

Definition at line 237 of file Array.h.

◆ element_type

Definition at line 49 of file CDiagMatrix.h.

◆ full_matrix_type

◆ real_elt_type

Definition at line 47 of file CDiagMatrix.h.

◆ size_type

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

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

Definition at line 235 of file Array.h.

◆ value_type

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

Definition at line 231 of file Array.h.

Constructor & Destructor Documentation

◆ ComplexDiagMatrix() [1/10]

ComplexDiagMatrix::ComplexDiagMatrix ( void  )
default

◆ ComplexDiagMatrix() [2/10]

ComplexDiagMatrix::ComplexDiagMatrix ( const ComplexDiagMatrix a)
default

◆ ~ComplexDiagMatrix()

ComplexDiagMatrix::~ComplexDiagMatrix ( void  )
default

◆ ComplexDiagMatrix() [3/10]

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

Definition at line 59 of file CDiagMatrix.h.

◆ ComplexDiagMatrix() [4/10]

ComplexDiagMatrix::ComplexDiagMatrix ( octave_idx_type  r,
octave_idx_type  c,
const Complex val 
)
inline

Definition at line 62 of file CDiagMatrix.h.

◆ ComplexDiagMatrix() [5/10]

ComplexDiagMatrix::ComplexDiagMatrix ( const Array< Complex > &  a)
inlineexplicit

Definition at line 65 of file CDiagMatrix.h.

◆ ComplexDiagMatrix() [6/10]

ComplexDiagMatrix::ComplexDiagMatrix ( const Array< double > &  a)
inlineexplicit

Definition at line 68 of file CDiagMatrix.h.

◆ ComplexDiagMatrix() [7/10]

ComplexDiagMatrix::ComplexDiagMatrix ( const Array< Complex > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 71 of file CDiagMatrix.h.

◆ ComplexDiagMatrix() [8/10]

ComplexDiagMatrix::ComplexDiagMatrix ( const DiagMatrix a)
explicit

◆ ComplexDiagMatrix() [9/10]

ComplexDiagMatrix::ComplexDiagMatrix ( const MDiagArray2< Complex > &  a)
inline

Definition at line 77 of file CDiagMatrix.h.

◆ ComplexDiagMatrix() [10/10]

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

Definition at line 81 of file CDiagMatrix.h.

Member Function Documentation

◆ abs()

DiagMatrix ComplexDiagMatrix::abs ( void  ) const

◆ all_elements_are_real()

bool ComplexDiagMatrix::all_elements_are_real ( void  ) const

◆ array_value()

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

Definition at line 86 of file MDiagArray2.h.

◆ as_column()

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

Return the array as a column vector.

Definition at line 415 of file Array.h.

◆ as_matrix()

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

Return the array as a matrix.

Definition at line 435 of file Array.h.

◆ as_row()

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

Return the array as a row vector.

Definition at line 425 of file Array.h.

◆ assign() [1/6]

void Array< Complex , Alloc >::assign ( const Array< octave::idx_vector > &  ia,
const Array< Complex , 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 701 of file Array.h.

◆ assign() [2/6]

void Array< Complex , Alloc >::assign ( const Array< octave::idx_vector > &  ia,
const Array< Complex , Alloc > &  rhs,
const Complex 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 700 of file Array.cc.

◆ assign() [3/6]

void Array< Complex , Alloc >::assign ( const octave::idx_vector i,
const Array< Complex , 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 687 of file Array.h.

◆ assign() [4/6]

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

Indexed assignment (always with resize & fill).

Definition at line 686 of file Array.cc.

◆ assign() [5/6]

void Array< Complex , Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const Array< Complex , 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 695 of file Array.h.

◆ assign() [6/6]

void Array< Complex , Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const Array< Complex , Alloc > &  rhs,
const Complex 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 692 of file Array.cc.

◆ build_diag_matrix()

DiagArray2< Complex > DiagArray2< Complex >::build_diag_matrix ( ) const
inlineinherited

Definition at line 109 of file DiagArray2.h.

◆ byte_size()

std::size_t DiagArray2< Complex >::byte_size ( void  ) const
inlineinherited

Definition at line 99 of file DiagArray2.h.

◆ cat()

Array< Complex , Alloc > Array< Complex , Alloc >::cat ( int  dim,
octave_idx_type  n,
const Array< Complex , 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 788 of file Array.cc.

◆ check_idx()

bool DiagArray2< Complex >::check_idx ( octave_idx_type  r,
octave_idx_type  c 
) const
privateinherited

Definition at line 183 of file DiagArray2.cc.

◆ checkelem() [1/8]

Complex & Array< Complex , 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 532 of file Array.cc.

◆ checkelem() [2/8]

Array< Complex , Alloc >::crefT Array< Complex , 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 562 of file Array.cc.

◆ checkelem() [3/8]

Complex & Array< Complex , 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 530 of file Array.cc.

◆ checkelem() [4/8]

Array< Complex , Alloc >::crefT Array< Complex , 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 559 of file Array.cc.

◆ checkelem() [5/8]

Complex & Array< Complex , 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 526 of file Array.cc.

◆ checkelem() [6/8]

Array< Complex , Alloc >::crefT Array< Complex , 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 555 of file Array.cc.

◆ checkelem() [7/8]

Complex & DiagArray2< Complex >::checkelem ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 138 of file DiagArray2.cc.

◆ checkelem() [8/8]

Complex DiagArray2< Complex >::checkelem ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 130 of file DiagArray2.h.

◆ clear() [1/3]

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

Definition at line 405 of file Array.cc.

◆ clear() [2/3]

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

Definition at line 407 of file Array.h.

◆ clear() [3/3]

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

Definition at line 404 of file Array.cc.

◆ cols()

octave_idx_type DiagArray2< Complex >::cols ( void  ) const
inlineinherited

Definition at line 90 of file DiagArray2.h.

◆ column() [1/2]

ComplexColumnVector ComplexDiagMatrix::column ( char *  s) const

◆ column() [2/2]

ComplexColumnVector ComplexDiagMatrix::column ( octave_idx_type  i) const

◆ columns()

octave_idx_type DiagArray2< Complex >::columns ( void  ) const
inlineinherited

Definition at line 91 of file DiagArray2.h.

◆ compute_index() [1/3]

octave_idx_type Array< Complex , 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 495 of file Array.cc.

◆ compute_index() [2/3]

octave_idx_type Array< Complex , 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 492 of file Array.cc.

◆ compute_index() [3/3]

octave_idx_type Array< Complex , 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 493 of file Array.cc.

◆ compute_index_unchecked()

octave_idx_type Array< Complex , 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 497 of file Array.h.

◆ data()

const Complex * DiagArray2< Complex >::data ( void  ) const
inlineinherited

Definition at line 169 of file DiagArray2.h.

◆ delete_elements() [1/3]

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

Dispatcher to the above two.

Definition at line 717 of file Array.cc.

◆ delete_elements() [2/3]

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

Deleting elements.

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

Definition at line 711 of file Array.cc.

◆ delete_elements() [3/3]

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

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

Definition at line 714 of file Array.cc.

◆ determinant()

ComplexDET ComplexDiagMatrix::determinant ( void  ) const

◆ dgelem() [1/2]

Complex & DiagArray2< Complex >::dgelem ( octave_idx_type  i)
inlineinherited

Definition at line 127 of file DiagArray2.h.

◆ dgelem() [2/2]

Complex DiagArray2< Complex >::dgelem ( octave_idx_type  i) const
inlineinherited

Definition at line 124 of file DiagArray2.h.

◆ dgxelem() [1/2]

Complex & DiagArray2< Complex >::dgxelem ( octave_idx_type  i)
inlineinherited

Definition at line 152 of file DiagArray2.h.

◆ dgxelem() [2/2]

Complex DiagArray2< Complex >::dgxelem ( octave_idx_type  i) const
inlineinherited

Definition at line 155 of file DiagArray2.h.

◆ diag() [1/2]

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

Definition at line 103 of file MDiagArray2.h.

◆ diag() [2/2]

Array< Complex , Alloc > Array< Complex , 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 781 of file Array.cc.

◆ diag_length()

octave_idx_type DiagArray2< Complex >::diag_length ( void  ) const
inlineinherited

Definition at line 93 of file DiagArray2.h.

◆ dim1()

octave_idx_type DiagArray2< Complex >::dim1 ( void  ) const
inlineinherited

Definition at line 86 of file DiagArray2.h.

◆ dim2()

octave_idx_type DiagArray2< Complex >::dim2 ( void  ) const
inlineinherited

Definition at line 87 of file DiagArray2.h.

◆ dim3()

octave_idx_type Array< Complex , 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 465 of file Array.h.

◆ dims()

dim_vector DiagArray2< Complex >::dims ( void  ) const
inlineinherited

Definition at line 101 of file DiagArray2.h.

◆ elem() [1/8]

Complex & Array< Complex , 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 545 of file Array.h.

◆ elem() [2/8]

crefT Array< Complex , 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 572 of file Array.h.

◆ elem() [3/8]

Complex & Array< Complex , 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 542 of file Array.h.

◆ elem() [4/8]

crefT Array< Complex , 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 569 of file Array.h.

◆ elem() [5/8]

Complex & Array< Complex , 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 534 of file Array.h.

◆ elem() [6/8]

crefT Array< Complex , 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 564 of file Array.h.

◆ elem() [7/8]

Complex & DiagArray2< Complex >::elem ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 122 of file DiagArray2.cc.

◆ elem() [8/8]

Complex DiagArray2< Complex >::elem ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 117 of file DiagArray2.h.

◆ extract()

ComplexMatrix ComplexDiagMatrix::extract ( octave_idx_type  r1,
octave_idx_type  c1,
octave_idx_type  r2,
octave_idx_type  c2 
) const

Definition at line 223 of file CDiagMatrix.cc.

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

◆ extract_diag()

ComplexColumnVector ComplexDiagMatrix::extract_diag ( octave_idx_type  k = 0) const
inline

◆ fill() [1/13]

ComplexDiagMatrix & ComplexDiagMatrix::fill ( const ColumnVector a)

Definition at line 105 of file CDiagMatrix.cc.

References len, DiagArray2< Complex >::length(), and Array< T, Alloc >::numel().

◆ fill() [2/13]

◆ fill() [3/13]

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

Definition at line 402 of file Array.cc.

◆ fill() [4/13]

ComplexDiagMatrix & ComplexDiagMatrix::fill ( const Complex val)

◆ fill() [5/13]

ComplexDiagMatrix & ComplexDiagMatrix::fill ( const Complex val,
octave_idx_type  beg,
octave_idx_type  end 
)

◆ fill() [6/13]

◆ fill() [7/13]

◆ fill() [8/13]

◆ fill() [9/13]

◆ fill() [10/13]

◆ fill() [11/13]

◆ fill() [12/13]

ComplexDiagMatrix & ComplexDiagMatrix::fill ( double  val)

◆ fill() [13/13]

ComplexDiagMatrix & ComplexDiagMatrix::fill ( double  val,
octave_idx_type  beg,
octave_idx_type  end 
)

◆ find() [1/2]

Array< octave_idx_type > Array< Complex , 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 769 of file Array.cc.

◆ find() [2/2]

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

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

◆ fortran_vec()

Complex * DiagArray2< Complex >::fortran_vec ( void  )
inlineinherited

Definition at line 176 of file DiagArray2.h.

◆ hermitian() [1/2]

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

Definition at line 107 of file MDiagArray2.h.

◆ hermitian() [2/2]

ComplexDiagMatrix ComplexDiagMatrix::hermitian ( void  ) const
inline

Definition at line 105 of file CDiagMatrix.h.

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

Referenced by oct_unop_hermitian().

◆ index() [1/9]

Array< Complex , Alloc > Array< Complex , 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 635 of file Array.cc.

◆ index() [2/9]

Array< Complex , Alloc > Array< Complex , 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 678 of file Array.h.

◆ index() [3/9]

Array< Complex , Alloc > Array< Complex , Alloc >::index ( const Array< octave::idx_vector > &  ia,
bool  resize_ok,
const Complex 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 676 of file Array.cc.

◆ index() [4/9]

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

Indexing without resizing.

Definition at line 631 of file Array.cc.

◆ index() [5/9]

Array< Complex , Alloc > Array< Complex , 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 662 of file Array.h.

◆ index() [6/9]

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

Indexing with possible resizing and fill.

Definition at line 661 of file Array.cc.

◆ index() [7/9]

Array< Complex , Alloc > Array< Complex , 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 633 of file Array.cc.

◆ index() [8/9]

Array< Complex , Alloc > Array< Complex , 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 670 of file Array.h.

◆ index() [9/9]

Array< Complex , Alloc > Array< Complex , Alloc >::index ( const octave::idx_vector i,
const octave::idx_vector j,
bool  resize_ok,
const Complex 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 667 of file Array.cc.

◆ insert() [1/2]

Array< Complex , Alloc > & Array< Complex , Alloc >::insert ( const Array< Complex , 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 724 of file Array.cc.

◆ insert() [2/2]

Array< Complex , Alloc > & Array< Complex , Alloc >::insert ( const Array< Complex , 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 727 of file Array.cc.

◆ instantiation_guard() [1/14]

OCTAVE_API void Array< signedchar >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [2/14]

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

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

◆ instantiation_guard() [3/14]

OCTAVE_API void Array< unsignedchar >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [4/14]

OCTAVE_API void Array< unsignedshort >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [5/14]

OCTAVE_API void Array< unsignedint >::instantiation_guard ( )
privateinherited

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

◆ instantiation_guard() [6/14]

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

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

◆ instantiation_guard() [7/14]

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

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

◆ instantiation_guard() [8/14]

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

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

◆ instantiation_guard() [9/14]

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

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

◆ instantiation_guard() [10/14]

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

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

◆ instantiation_guard() [11/14]

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

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

◆ instantiation_guard() [12/14]

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

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

◆ instantiation_guard() [13/14]

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

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

◆ instantiation_guard() [14/14]

void Array< Complex , 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 889 of file Array.cc.

◆ inverse() [1/2]

ComplexDiagMatrix ComplexDiagMatrix::inverse ( octave_idx_type info) const

◆ inverse() [2/2]

ComplexDiagMatrix ComplexDiagMatrix::inverse ( void  ) const

Definition at line 304 of file CDiagMatrix.cc.

References inverse().

Referenced by inverse().

◆ ipermute()

Array< Complex , Alloc > Array< Complex , 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 602 of file Array.h.

◆ is_multiple_of_identity()

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

Definition at line 110 of file MDiagArray2.cc.

◆ is_nd_vector()

bool Array< Complex , 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 611 of file Array.h.

◆ is_shared()

bool Array< Complex , Alloc >::is_shared ( void  )
inlineinherited

Size of the specified dimension.

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

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

Definition at line 625 of file Array.h.

◆ is_sorted_rows() [1/2]

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

Ordering is auto-detected or can be specified.

Definition at line 753 of file Array.cc.

◆ is_sorted_rows() [2/2]

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

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

◆ isempty()

bool DiagArray2< Complex >::isempty ( void  ) const
inlineinherited

Definition at line 103 of file DiagArray2.h.

◆ issorted() [1/2]

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

Ordering is auto-detected or can be specified.

Definition at line 747 of file Array.cc.

◆ issorted() [2/2]

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

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

◆ issquare()

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

◆ isvector()

bool Array< Complex , 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 609 of file Array.h.

◆ length()

octave_idx_type DiagArray2< Complex >::length ( void  ) const
inlineinherited

Definition at line 95 of file DiagArray2.h.

◆ linear_slice()

Array< Complex , Alloc > Array< Complex , 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 593 of file Array.cc.

◆ lookup() [1/4]

Array< octave_idx_type > Array< Complex , Alloc >::lookup ( const Array< Complex , 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 761 of file Array.cc.

◆ lookup() [2/4]

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

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

◆ lookup() [3/4]

octave_idx_type Array< Complex , Alloc >::lookup ( const Complex 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 757 of file Array.cc.

◆ lookup() [4/4]

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

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

◆ make_unique()

void Array< Complex , Alloc >::make_unique ( void  )
inlineinherited

Definition at line 215 of file Array.h.

◆ map() [1/3]

Array< U, A > Array< Complex , Alloc >::map ( F  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 799 of file Array.h.

◆ map() [2/3]

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

Overloads for function references.

Definition at line 835 of file Array.h.

◆ map() [3/3]

Array< U, A > Array< Complex , Alloc >::map ( U(&)(const Complex &)  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 844 of file Array.h.

◆ maybe_economize()

void Array< Complex , 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 729 of file Array.h.

◆ ndims()

int DiagArray2< Complex >::ndims ( void  ) const
inlineinherited

Definition at line 105 of file DiagArray2.h.

◆ nelem()

octave_idx_type DiagArray2< Complex >::nelem ( void  ) const
inlineinherited

Definition at line 96 of file DiagArray2.h.

◆ nil_rep()

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

Definition at line 269 of file Array.cc.

◆ nnz()

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

Definition at line 91 of file MDiagArray2.h.

◆ nth_element() [1/2]

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

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

◆ nth_element() [2/2]

Array< Complex , Alloc > Array< Complex , 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 775 of file Array.cc.

◆ numel()

octave_idx_type DiagArray2< Complex >::numel ( void  ) const
inlineinherited

Definition at line 97 of file DiagArray2.h.

◆ operator!=()

Definition at line 58 of file CDiagMatrix.cc.

◆ operator()() [1/8]

Complex & Array< Complex , 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 552 of file Array.h.

◆ operator()() [2/8]

crefT Array< Complex , 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 581 of file Array.h.

◆ operator()() [3/8]

Complex & Array< Complex , 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 550 of file Array.h.

◆ operator()() [4/8]

crefT Array< Complex , 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 578 of file Array.h.

◆ operator()() [5/8]

Complex & Array< Complex , 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 548 of file Array.h.

◆ operator()() [6/8]

crefT Array< Complex , 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 575 of file Array.h.

◆ operator()() [7/8]

Complex & DiagArray2< Complex >::operator() ( octave_idx_type  r,
octave_idx_type  c 
)
inlineinherited

Definition at line 140 of file DiagArray2.h.

◆ operator()() [8/8]

Complex DiagArray2< Complex >::operator() ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 133 of file DiagArray2.h.

◆ operator+=()

◆ operator-=()

OCTAVE_API ComplexDiagMatrix & ComplexDiagMatrix::operator-= ( const DiagMatrix a)

◆ operator=()

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

◆ operator==()

◆ optimize_dimensions()

bool Array< Complex , 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 886 of file Array.cc.

◆ page()

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

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

Definition at line 589 of file Array.cc.

◆ pages()

octave_idx_type Array< Complex , 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 466 of file Array.h.

◆ permute()

Array< Complex , Alloc > Array< Complex , 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 601 of file Array.cc.

◆ print_info()

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

Definition at line 178 of file DiagArray2.h.

◆ pseudo_inverse()

ComplexDiagMatrix ComplexDiagMatrix::pseudo_inverse ( double  tol = 0.0) const

◆ rcond()

double ComplexDiagMatrix::rcond ( void  ) const

Definition at line 507 of file CDiagMatrix.cc.

References abs(), extract_diag(), Array< T, Alloc >::map(), ColumnVector::max(), and ColumnVector::min().

Referenced by Fdet(), and Finv().

◆ reshape() [1/2]

Array< Complex , Alloc > Array< Complex , 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 598 of file Array.h.

◆ reshape() [2/2]

Array< Complex , Alloc > Array< Complex , 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 595 of file Array.h.

◆ resize() [1/4]

void Array< Complex , 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 652 of file Array.h.

◆ resize() [2/4]

void Array< Complex , Alloc >::resize ( const dim_vector dv,
const Complex 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 651 of file Array.cc.

◆ resize() [3/4]

void DiagArray2< Complex >::resize ( octave_idx_type  n,
octave_idx_type  m 
)
inlineinherited

Definition at line 159 of file DiagArray2.h.

◆ resize() [4/4]

void DiagArray2< Complex >::resize ( octave_idx_type  n,
octave_idx_type  m,
const Complex rfv 
)
inherited

Definition at line 158 of file DiagArray2.cc.

◆ resize1() [1/2]

void Array< Complex , 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 649 of file Array.h.

◆ resize1() [2/2]

void Array< Complex , Alloc >::resize1 ( octave_idx_type  n,
const Complex 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 648 of file Array.cc.

◆ resize2() [1/2]

void Array< Complex , 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 643 of file Array.h.

◆ resize2() [2/2]

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

Resizing (with fill).

Definition at line 642 of file Array.cc.

◆ resize_fill_value()

Complex Array< Complex , 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 638 of file Array.cc.

◆ row() [1/2]

ComplexRowVector ComplexDiagMatrix::row ( char *  s) const

◆ row() [2/2]

ComplexRowVector ComplexDiagMatrix::row ( octave_idx_type  i) const

◆ rows()

octave_idx_type DiagArray2< Complex >::rows ( void  ) const
inlineinherited

Definition at line 89 of file DiagArray2.h.

◆ size()

size_type Array< Complex , 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 476 of file Array.h.

◆ sort() [1/4]

Array< Complex , Alloc > Array< Complex , 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 743 of file Array.cc.

◆ sort() [2/4]

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

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

◆ sort() [3/4]

Array< Complex , Alloc > Array< Complex , 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 742 of file Array.cc.

◆ sort() [4/4]

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

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

◆ sort_rows_idx() [1/2]

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

Sort by rows returns only indices.

Definition at line 750 of file Array.cc.

◆ sort_rows_idx() [2/2]

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

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

◆ squeeze()

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

Chop off leading singleton dimensions.

Definition at line 490 of file Array.cc.

◆ test()

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

Generic any/all test functionality with arbitrary predicate.

Definition at line 850 of file Array.h.

◆ test_all() [1/3]

bool Array< Complex , Alloc >::test_all ( bool(&)(Complex 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 874 of file Array.h.

◆ test_all() [2/3]

bool Array< Complex , Alloc >::test_all ( bool(&)(const Complex &)  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 877 of file Array.h.

◆ test_all() [3/3]

bool Array< Complex , Alloc >::test_all ( F  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 862 of file Array.h.

◆ test_any() [1/3]

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

Overloads for function references.

Definition at line 868 of file Array.h.

◆ test_any() [2/3]

bool Array< Complex , Alloc >::test_any ( bool(&)(const Complex &)  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 871 of file Array.h.

◆ test_any() [3/3]

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

Simpler calls.

Definition at line 858 of file Array.h.

◆ transpose()

ComplexDiagMatrix ComplexDiagMatrix::transpose ( void  ) const
inline

Definition at line 107 of file CDiagMatrix.h.

References MDiagArray2< T >::transpose().

Referenced by oct_unop_transpose().

◆ xelem() [1/8]

Complex & Array< Complex , 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 517 of file Array.h.

◆ xelem() [2/8]

crefT Array< Complex , 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 520 of file Array.h.

◆ xelem() [3/8]

Complex & Array< Complex , 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 507 of file Array.h.

◆ xelem() [4/8]

Complex & Array< Complex , 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 512 of file Array.h.

◆ xelem() [5/8]

crefT Array< Complex , 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 514 of file Array.h.

◆ xelem() [6/8]

Complex & Array< Complex , 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 504 of file Array.h.

◆ xelem() [7/8]

crefT Array< Complex , 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 505 of file Array.h.

◆ xelem() [8/8]

Complex DiagArray2< Complex >::xelem ( octave_idx_type  r,
octave_idx_type  c 
) const
inlineinherited

Definition at line 147 of file DiagArray2.h.

Friends And Related Function Documentation

◆ conj

OCTAVE_API ComplexDiagMatrix conj ( const ComplexDiagMatrix a)
friend

Definition at line 215 of file CDiagMatrix.cc.

◆ operator<<

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

Definition at line 517 of file CDiagMatrix.cc.

Member Data Documentation

◆ m_d1

octave_idx_type DiagArray2< Complex >::m_d1
protectedinherited

Definition at line 45 of file DiagArray2.h.

◆ m_d2

octave_idx_type DiagArray2< Complex >::m_d2
protectedinherited

Definition at line 45 of file DiagArray2.h.

◆ m_dimensions

dim_vector Array< Complex , Alloc >::m_dimensions
protectedinherited

Definition at line 244 of file Array.h.

◆ m_rep

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

Definition at line 246 of file Array.h.

◆ m_slice_data

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

Definition at line 255 of file Array.h.

◆ m_slice_len

octave_idx_type Array< Complex , Alloc >::m_slice_len
protectedinherited

Definition at line 256 of file Array.h.


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