GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "CDiagMatrix.h"
Protected Types | |
typedef bool(* | compare_fcn_type )(typename ref_param< Complex >::type, typename ref_param< Complex >::type) |
typedef ref_param< Complex >::type | crefT |
typedef Complex | element_type |
Protected Member Functions | |
Array< Complex > | as_column (void) const |
Return the array as a column vector. More... | |
Array< Complex > | as_matrix (void) const |
Return the array as a matrix. More... | |
Array< Complex > | as_row (void) const |
Return the array as a row vector. More... | |
Complex & | checkelem (octave_idx_type n) |
Complex & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Complex & | checkelem (const Array< octave_idx_type > &ra_idx) |
crefT | checkelem (octave_idx_type n) const |
crefT | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
crefT | checkelem (const Array< octave_idx_type > &ra_idx) const |
void | clear (void) |
void | clear (const dim_vector &dv) |
void | clear (octave_idx_type r, octave_idx_type c) |
octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j) const |
octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
octave_idx_type | compute_index (const Array< octave_idx_type > &ra_idx) const |
octave_idx_type | compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const |
Complex & | elem (octave_idx_type n) |
Complex & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Complex & | elem (const Array< octave_idx_type > &ra_idx) |
crefT | elem (octave_idx_type n) const |
crefT | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
crefT | elem (const Array< octave_idx_type > &ra_idx) const |
Array< octave_idx_type > | find (octave_idx_type n=-1, bool backward=false) const |
Find indices of (at most n) nonzero elements. More... | |
Array< Complex > & | insert (const Array< Complex > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
Array< Complex > & | insert (const Array< Complex > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. More... | |
Array< Complex > | ipermute (const Array< octave_idx_type > &vec) const |
bool | is_empty (void) const |
bool | is_shared (void) |
sortmode | is_sorted (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
sortmode | is_sorted_rows (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
bool | is_square (void) const |
bool | is_vector (void) const |
Array< Complex > | linear_slice (octave_idx_type lo, octave_idx_type up) const |
Extract a slice from this array as a column vector: A(:)(lo+1:up). More... | |
octave_idx_type | lookup (const Complex &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
Array< octave_idx_type > | lookup (const Array< Complex > &values, sortmode mode=UNSORTED) const |
Ditto, but for an array of values, specializing on the case when values are sorted. More... | |
void | make_unique (void) |
Array< U > | map (F fcn) const |
Apply function fcn to each element of the Array<T>. More... | |
void | maybe_economize (void) |
void * | mex_get_data (void) const |
Give a pointer to the data in mex format. More... | |
int | ndims (void) const |
Array< Complex > | nth_element (const idx_vector &n, int dim=0) const |
Returns the n-th element in increasing order, using the same ordering as used for sort. More... | |
Complex & | operator() (octave_idx_type n) |
Complex & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Complex & | operator() (const Array< octave_idx_type > &ra_idx) |
crefT | operator() (octave_idx_type n) const |
crefT | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
crefT | operator() (const Array< octave_idx_type > &ra_idx) const |
bool | optimize_dimensions (const dim_vector &dv) |
Returns true if this->dims () == dv, and if so, replaces this->dimensions by a shallow copy of dv. More... | |
Array< Complex > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
Array< Complex > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
Array< Complex > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Array< Complex > | reshape (const dim_vector &new_dims) const |
virtual Complex | resize_fill_value (void) const |
Array< Complex > | sort (int dim=0, sortmode mode=ASCENDING) const |
Array< Complex > | sort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const |
Array< octave_idx_type > | sort_rows_idx (sortmode mode=ASCENDING) const |
Sort by rows returns only indices. More... | |
Array< Complex > | squeeze (void) const |
Chop off leading singleton dimensions. More... | |
bool | test (F fcn) const |
Generic any/all test functionality with arbitrary predicate. More... | |
Complex & | xelem (octave_idx_type n) |
crefT | xelem (octave_idx_type n) const |
Complex & | xelem (octave_idx_type i, octave_idx_type j) |
Complex & | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
crefT | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Complex & | xelem (const Array< octave_idx_type > &ra_idx) |
crefT | xelem (const Array< octave_idx_type > &ra_idx) const |
void | resize (const dim_vector &dv, const Complex &rfv) |
void | resize (const dim_vector &dv) |
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) |
void | resize1 (octave_idx_type n, const Complex &rfv) |
void | resize1 (octave_idx_type n) |
octave_idx_type | capacity (void) const |
Number of elements in the array. More... | |
Third dimension | |
Get the third dimension of the array (number of pages) | |
octave_idx_type | dim3 (void) const |
octave_idx_type | pages (void) const |
Array< Complex > | index (const idx_vector &i) const |
Indexing without resizing. More... | |
Array< Complex > | index (const idx_vector &i, const idx_vector &j) const |
Array< Complex > | index (const Array< idx_vector > &ia) const |
Array< Complex > | index (const idx_vector &i, bool resize_ok, const Complex &rfv) const |
Indexing with possible resizing and fill. More... | |
Array< Complex > | index (const idx_vector &i, bool resize_ok) const |
Array< Complex > | index (const idx_vector &i, const idx_vector &j, bool resize_ok, const Complex &rfv) const |
Array< Complex > | index (const idx_vector &i, const idx_vector &j, bool resize_ok) const |
Array< Complex > | index (const Array< idx_vector > &ia, bool resize_ok, const Complex &rfv) const |
Array< Complex > | index (const Array< idx_vector > &ia, bool resize_ok) const |
void | assign (const idx_vector &i, const Array< Complex > &rhs, const Complex &rfv) |
Indexed assignment (always with resize & fill). More... | |
void | assign (const idx_vector &i, const Array< Complex > &rhs) |
void | assign (const idx_vector &i, const idx_vector &j, const Array< Complex > &rhs, const Complex &rfv) |
void | assign (const idx_vector &i, const idx_vector &j, const Array< Complex > &rhs) |
void | assign (const Array< idx_vector > &ia, const Array< Complex > &rhs, const Complex &rfv) |
void | assign (const Array< idx_vector > &ia, const Array< Complex > &rhs) |
void | delete_elements (const idx_vector &i) |
Deleting elements. More... | |
void | delete_elements (int dim, const idx_vector &i) |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon) More... | |
void | delete_elements (const Array< idx_vector > &ia) |
Dispatcher to the above two. More... | |
Array< U > | map (U(&fcn)(Complex)) const |
Overloads for function references. More... | |
Array< U > | map (U(&fcn)(const Complex &)) const |
bool | test_any (F fcn) const |
Simpler calls. More... | |
bool | test_all (F fcn) const |
bool | test_any (bool(&fcn)(Complex)) const |
Overloads for function references. More... | |
bool | test_any (bool(&fcn)(const Complex &)) const |
bool | test_all (bool(&fcn)(Complex)) const |
bool | test_all (bool(&fcn)(const Complex &)) const |
int * | jit_ref_count (void) |
WARNING: Only call these functions from jit. More... | |
Complex * | jit_slice_data (void) const |
octave_idx_type * | jit_dimensions (void) const |
void * | jit_array_rep (void) const |
Static Protected Member Functions | |
static Array< Complex > | cat (int dim, octave_idx_type n, const Array< Complex > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
Protected Attributes | |
octave_idx_type | d1 |
octave_idx_type | d2 |
dim_vector | dimensions |
Array< Complex >::ArrayRep * | rep |
Complex * | slice_data |
octave_idx_type | slice_len |
Friends | |
OCTAVE_API ComplexDiagMatrix | conj (const ComplexDiagMatrix &a) |
std::ostream & | operator<< (std::ostream &os, const ComplexDiagMatrix &a) |
Definition at line 36 of file CDiagMatrix.h.
|
inline |
Definition at line 42 of file CDiagMatrix.h.
Referenced by inverse().
|
inline |
Definition at line 44 of file CDiagMatrix.h.
|
inline |
Definition at line 47 of file CDiagMatrix.h.
Definition at line 50 of file CDiagMatrix.h.
Definition at line 53 of file CDiagMatrix.h.
|
inline |
Definition at line 56 of file CDiagMatrix.h.
|
explicit |
Definition at line 40 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), DiagArray2< T >::elem(), and DiagArray2< Complex >::length().
|
inline |
Definition at line 62 of file CDiagMatrix.h.
|
inline |
Definition at line 65 of file CDiagMatrix.h.
|
inline |
Definition at line 69 of file CDiagMatrix.h.
DiagMatrix ComplexDiagMatrix::abs | ( | void | ) | const |
Definition at line 238 of file CDiagMatrix.cc.
References DiagArray2< Complex >::columns(), extract_diag(), and DiagArray2< Complex >::rows().
Referenced by octave_complex_diag_matrix::map().
bool ComplexDiagMatrix::all_elements_are_real | ( | void | ) | const |
Definition at line 407 of file CDiagMatrix.cc.
References DiagArray2< Complex >::data(), DiagArray2< Complex >::length(), and mx_inline_all_real().
Referenced by octave_complex_diag_matrix::try_narrowing_conversion().
|
inlineinherited |
Definition at line 72 of file MDiagArray2.h.
References DiagArray2< T >::array_value().
|
inherited |
Indexed assignment (always with resize & fill).
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
Definition at line 102 of file DiagArray2.h.
|
inlineinherited |
Definition at line 96 of file DiagArray2.h.
References Array< T >::byte_size().
|
inlineinherited |
|
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.
|
inlineinherited |
Definition at line 127 of file DiagArray2.h.
References elem.
|
inlineinherited |
Definition at line 141 of file DiagArray2.h.
References elem.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 87 of file DiagArray2.h.
Referenced by column(), determinant(), inverse(), operator+=(), operator==(), pseudo_inverse(), and row().
ComplexColumnVector ComplexDiagMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 312 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), ComplexRowVector::ComplexColumnVector, DiagArray2< Complex >::elem(), Array< T >::elem(), and DiagArray2< Complex >::rows().
Referenced by column().
ComplexColumnVector ComplexDiagMatrix::column | ( | char * | s | ) | const |
Definition at line 330 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), column(), and ComplexRowVector::ComplexColumnVector.
|
inlineinherited |
Definition at line 88 of file DiagArray2.h.
Referenced by abs().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 180 of file DiagArray2.h.
References Array< T >::data().
Referenced by all_elements_are_real(), and operator==().
|
inherited |
Deleting elements.
A(I) = [] (with a single subscript)
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
|
inherited |
Dispatcher to the above two.
ComplexDET ComplexDiagMatrix::determinant | ( | void | ) | const |
Definition at line 532 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), DiagArray2< Complex >::elem(), DiagArray2< Complex >::length(), and DiagArray2< Complex >::rows().
Referenced by Fdet().
|
inlineinherited |
Definition at line 121 of file DiagArray2.h.
References Array< T >::elem().
|
inlineinherited |
Definition at line 124 of file DiagArray2.h.
References Array< T >::elem().
|
inlineinherited |
Definition at line 163 of file DiagArray2.h.
References Array< T >::xelem().
|
inlineinherited |
Definition at line 166 of file DiagArray2.h.
References Array< T >::xelem().
|
inlineinherited |
Definition at line 94 of file MDiagArray2.h.
References DiagArray2< T >::extract_diag().
|
inherited |
|
inlineinherited |
Definition at line 90 of file DiagArray2.h.
References Array< T >::length().
|
inlineinherited |
Definition at line 83 of file DiagArray2.h.
|
inlineinherited |
Definition at line 84 of file DiagArray2.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 98 of file DiagArray2.h.
|
inlineinherited |
Definition at line 110 of file DiagArray2.h.
References Array< T >::elem().
Referenced by column(), ComplexDiagMatrix(), determinant(), extract(), fill(), inverse(), pseudo_inverse(), and row().
|
inlineinherited |
Definition at line 115 of file DiagArray2.h.
References Array< T >::elem().
|
inlineinherited |
Definition at line 380 of file Array.h.
Referenced by ComplexNDArray::all_integers(), ComplexMatrix::column_is_real_only(), ComplexMatrix::column_max(), ComplexMatrix::column_min(), ComplexMatrix::ComplexMatrix(), ComplexMatrix::determinant(), ComplexRowVector::extract(), ComplexColumnVector::extract(), ComplexRowVector::extract_n(), ComplexColumnVector::extract_n(), ComplexNDArray::insert(), ComplexMatrix::insert(), ComplexMatrix::is_hermitian(), ComplexRowVector::max(), ComplexColumnVector::max(), ComplexRowVector::min(), ComplexColumnVector::min(), ComplexMatrix::operator+=(), ComplexMatrix::operator-=(), ComplexMatrix::row_is_real_only(), ComplexMatrix::row_max(), and ComplexMatrix::row_min().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
ComplexMatrix ComplexDiagMatrix::extract | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) | const |
Definition at line 252 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), and Array< T >::elem().
|
inline |
Definition at line 130 of file CDiagMatrix.h.
References DiagArray2< T >::extract_diag().
Referenced by abs(), conj(), imag(), octave_complex_diag_matrix::map(), rcond(), real(), and octave_complex_diag_matrix::save_binary().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | double | val | ) |
Definition at line 63 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), and DiagArray2< Complex >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const Complex & | val | ) |
Definition at line 71 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), and DiagArray2< Complex >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | double | val, |
octave_idx_type | beg, | ||
octave_idx_type | end | ||
) |
Definition at line 79 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), and DiagArray2< Complex >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const Complex & | val, |
octave_idx_type | beg, | ||
octave_idx_type | end | ||
) |
Definition at line 94 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), and DiagArray2< Complex >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const ColumnVector & | a | ) |
Definition at line 110 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const ComplexColumnVector & | a | ) |
Definition at line 126 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const RowVector & | a | ) |
Definition at line 142 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const ComplexRowVector & | a | ) |
Definition at line 158 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const ColumnVector & | a, |
octave_idx_type | beg | ||
) |
Definition at line 174 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const ComplexColumnVector & | a, |
octave_idx_type | beg | ||
) |
Definition at line 190 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const RowVector & | a, |
octave_idx_type | beg | ||
) |
Definition at line 206 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
ComplexDiagMatrix & ComplexDiagMatrix::fill | ( | const ComplexRowVector & | a, |
octave_idx_type | beg | ||
) |
Definition at line 222 of file CDiagMatrix.cc.
References DiagArray2< Complex >::elem(), Array< T >::elem(), DiagArray2< Complex >::length(), and Array< T >::length().
|
inherited |
Find indices of (at most n) nonzero elements.
If n is specified, backward specifies search from backward.
|
inlineinherited |
Definition at line 182 of file DiagArray2.h.
References Array< T >::fortran_vec().
Referenced by operator+=().
|
inlineinherited |
Definition at line 184 of file DiagArray2.h.
References Array< T >::fortran_vec().
|
inline |
Definition at line 96 of file CDiagMatrix.h.
References conj(), and MDiagArray2< T >::hermitian().
|
inlineinherited |
Definition at line 98 of file MDiagArray2.h.
References DiagArray2< T >::hermitian().
|
inherited |
Indexing without resizing.
Referenced by ComplexMatrix::column(), ComplexMatrix::extract(), ComplexMatrix::extract_n(), and ComplexMatrix::row().
|
inherited |
|
inherited |
Indexing with possible resizing and fill.
|
inherited |
|
inlineinherited |
|
inherited |
|
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.
|
inherited |
This is just a special case for idx = [r c 0 ...].
ComplexDiagMatrix ComplexDiagMatrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 358 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), ComplexDiagMatrix(), DiagArray2< Complex >::elem(), DiagArray2< T >::elem(), DiagArray2< Complex >::length(), and DiagArray2< Complex >::rows().
Referenced by Finv().
ComplexDiagMatrix ComplexDiagMatrix::inverse | ( | void | ) | const |
Definition at line 351 of file CDiagMatrix.cc.
|
inherited |
Ordering is auto-detected or can be specified.
Ordering is auto-detected or can be specified.
Definition at line 470 of file Array.h.
Referenced by ComplexMatrix::is_hermitian().
|
inlineinherited |
|
inlineinherited |
Definition at line 92 of file DiagArray2.h.
References Array< T >::length().
Referenced by all_elements_are_real(), ComplexDiagMatrix(), determinant(), fill(), inverse(), operator+=(), operator==(), and pseudo_inverse().
|
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.
|
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.
|
inherited |
Ditto, but for an array of values, specializing on the case when values are sorted.
NaNs get the value N.
Definition at line 104 of file Array.h.
Referenced by ComplexRowVector::fill(), ComplexColumnVector::fill(), ComplexMatrix::fill(), ComplexRowVector::insert(), ComplexColumnVector::insert(), and ComplexMatrix::insert().
|
inlineinherited |
Definition at line 93 of file DiagArray2.h.
|
inlineinherited |
Definition at line 77 of file MDiagArray2.h.
References d, Sparse< Complex >::data(), and jit_convention::length.
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.
|
inlineinherited |
Definition at line 94 of file DiagArray2.h.
bool ComplexDiagMatrix::operator!= | ( | const ComplexDiagMatrix & | a | ) | const |
Definition at line 57 of file CDiagMatrix.cc.
|
inlineinherited |
Definition at line 132 of file DiagArray2.h.
References elem.
|
inlineinherited |
Definition at line 147 of file DiagArray2.h.
References elem.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
ComplexDiagMatrix & ComplexDiagMatrix::operator+= | ( | const DiagMatrix & | a | ) |
Definition at line 415 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), DiagArray2< T >::cols(), d, DiagArray2< T >::data(), DiagArray2< Complex >::fortran_vec(), gripe_nonconformant(), DiagArray2< Complex >::length(), mx_inline_add2(), DiagArray2< T >::rows(), and DiagArray2< Complex >::rows().
ComplexDiagMatrix& ComplexDiagMatrix::operator-= | ( | const DiagMatrix & | a | ) |
|
inline |
Definition at line 72 of file CDiagMatrix.h.
References MDiagArray2< T >::operator=().
bool ComplexDiagMatrix::operator== | ( | const ComplexDiagMatrix & | a | ) | const |
Definition at line 48 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), DiagArray2< T >::cols(), DiagArray2< T >::data(), DiagArray2< Complex >::data(), DiagArray2< Complex >::length(), mx_inline_equal(), DiagArray2< Complex >::rows(), and DiagArray2< T >::rows().
|
inherited |
Returns true if this->dims () == dv, and if so, replaces this->dimensions by a shallow copy of dv.
This is useful for maintaining several arrays with supposedly equal dimensions (e.g. structs in the interpreter).
|
inherited |
Extract page: A(:,:,k+1).
|
inlineinherited |
|
inherited |
|
inlineinherited |
Definition at line 186 of file DiagArray2.h.
References Array< T >::print_info().
ComplexDiagMatrix ComplexDiagMatrix::pseudo_inverse | ( | double | tol = 0.0 | ) | const |
Definition at line 386 of file CDiagMatrix.cc.
References abs(), DiagArray2< Complex >::cols(), DiagArray2< Complex >::elem(), DiagArray2< T >::elem(), DiagArray2< Complex >::length(), and DiagArray2< Complex >::rows().
Referenced by Fpinv().
double ComplexDiagMatrix::rcond | ( | void | ) | const |
Definition at line 551 of file CDiagMatrix.cc.
References abs(), extract_diag(), Array< T >::map(), ColumnVector::max(), and ColumnVector::min().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
Definition at line 170 of file DiagArray2.h.
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
Resizing (with fill).
|
inlineinherited |
ComplexRowVector ComplexDiagMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 273 of file CDiagMatrix.cc.
References DiagArray2< Complex >::cols(), ComplexRowVector::ComplexRowVector(), DiagArray2< Complex >::elem(), Array< T >::elem(), and DiagArray2< Complex >::rows().
Referenced by row().
ComplexRowVector ComplexDiagMatrix::row | ( | char * | s | ) | const |
Definition at line 291 of file CDiagMatrix.cc.
References ComplexRowVector::ComplexRowVector(), row(), and DiagArray2< Complex >::rows().
|
inlineinherited |
Definition at line 86 of file DiagArray2.h.
Referenced by abs(), column(), determinant(), inverse(), operator+=(), operator==(), pseudo_inverse(), and row().
Referenced by FloatComplexSCHUR::init().
|
inherited |
Sort by rows returns only indices.
Chop off leading singleton dimensions.
Simpler calls.
Definition at line 710 of file Array.h.
Referenced by ComplexNDArray::too_large_for_float().
|
inline |
Definition at line 98 of file CDiagMatrix.h.
References MDiagArray2< T >::transpose().
|
inlineinherited |
Definition at line 158 of file DiagArray2.h.
References Array< T >::xelem().
|
inlineinherited |
Definition at line 353 of file Array.h.
Referenced by ComplexMatrix::ComplexMatrix(), ComplexNDArray::ComplexNDArray(), ComplexRowVector::fill(), ComplexColumnVector::fill(), ComplexMatrix::fill(), ComplexRowVector::insert(), ComplexColumnVector::insert(), and ComplexMatrix::insert().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Definition at line 244 of file CDiagMatrix.cc.
|
friend |
Definition at line 562 of file CDiagMatrix.cc.
|
protectedinherited |
Definition at line 42 of file DiagArray2.h.
|
protectedinherited |
Definition at line 42 of file DiagArray2.h.
|
protectedinherited |
Definition at line 127 of file Array.h.
Referenced by ComplexNDArray::insert().
|
protectedinherited |