#include "dDiagMatrix.h"
Public Types | |
typedef Matrix | full_matrix_type |
Protected Types | |
typedef bool(* | compare_fcn_type) (typename ref_param< T >::type, typename ref_param< T >::type) |
typedef ref_param< T >::type | crefT |
typedef T | element_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) More... | |
typedef T | value_type |
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 DiagMatrix | imag (const ComplexDiagMatrix &a) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const DiagMatrix &a) |
OCTAVE_API DiagMatrix | real (const ComplexDiagMatrix &a) |
Third dimension | |
OCTARRAY_API Array< T, Alloc > | diag (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, Alloc > | squeeze (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, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
OCTARRAY_API Array< T, Alloc > | 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... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | reshape (const dim_vector &new_dims) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | ipermute (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, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. More... | |
OCTARRAY_API Array< T, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (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, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (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, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (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, Alloc > | index (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, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | sort (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_type > | sort_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_type > | lookup (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_type > | find (octave_idx_type n=-1, bool backward=false) const |
Find indices of (at most n) nonzero elements. More... | |
OCTARRAY_API Array< T, Alloc > | nth_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, A > | map (F fcn) const |
Apply function fcn to each element of the Array<T, Alloc>. More... | |
Array< U, A > | map (U(&fcn)(T)) const |
Overloads for function references. More... | |
Array< U, A > | map (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, Alloc > | cat (int dim, octave_idx_type n, const Array< T, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
Definition at line 37 of file dDiagMatrix.h.
|
inherited |
typedef Matrix DiagMatrix::full_matrix_type |
Definition at line 43 of file dDiagMatrix.h.
|
inherited |
|
inherited |
|
default |
Referenced by abs().
|
default |
|
default |
|
inline |
Definition at line 53 of file dDiagMatrix.h.
|
inline |
Definition at line 56 of file dDiagMatrix.h.
|
inline |
Definition at line 59 of file dDiagMatrix.h.
|
inline |
Definition at line 62 of file dDiagMatrix.h.
|
inlineexplicit |
Definition at line 64 of file dDiagMatrix.h.
|
inline |
Definition at line 66 of file dDiagMatrix.h.
DiagMatrix DiagMatrix::abs | ( | void | ) | const |
Definition at line 128 of file dDiagMatrix.cc.
References DiagMatrix(), DiagArray2< T >::columns(), extract_diag(), and DiagArray2< T >::rows().
Referenced by octave_diag_matrix::map().
|
inlineinherited |
Definition at line 86 of file MDiagArray2.h.
|
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.
|
inlineinherited |
|
inherited |
Indexed assignment (always with resize & fill).
Definition at line 745 of file Array-base.cc.
|
inlineinherited |
|
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.
|
inlineinherited |
Definition at line 109 of file DiagArray2.h.
|
inlineinherited |
Definition at line 99 of file DiagArray2.h.
References Array< T, Alloc >::byte_size().
|
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.
|
privateinherited |
Definition at line 128 of file DiagArray2.cc.
References err_index_out_of_range(), and r.
|
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.
|
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.
|
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.
|
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.
|
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.
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.
|
inherited |
Definition at line 93 of file DiagArray2.cc.
|
inlineinherited |
Definition at line 130 of file DiagArray2.h.
|
inherited |
Definition at line 407 of file Array-base.cc.
|
inlineinherited |
Definition at line 406 of file Array-base.cc.
|
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(), column(), FloatComplexDiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::determinant(), determinant(), FloatComplexDiagMatrix::determinant(), FloatDiagMatrix::determinant(), octave_diag_matrix::do_index_op(), ComplexMatrix::insert(), Matrix::insert(), FloatComplexMatrix::insert(), FloatMatrix::insert(), ComplexDiagMatrix::inverse(), inverse(), FloatComplexDiagMatrix::inverse(), FloatDiagMatrix::inverse(), kron(), octave_float_diag_matrix::map(), octave_diag_matrix::map(), operator*(), ComplexDiagMatrix::operator+=(), ComplexMatrix::operator+=(), Matrix::operator+=(), FloatComplexDiagMatrix::operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), ComplexDiagMatrix::operator==(), operator==(), FloatComplexDiagMatrix::operator==(), FloatDiagMatrix::operator==(), ComplexDiagMatrix::pseudo_inverse(), pseudo_inverse(), FloatComplexDiagMatrix::pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::row(), row(), FloatComplexDiagMatrix::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().
ColumnVector DiagMatrix::column | ( | char * | s | ) | const |
Definition at line 212 of file dDiagMatrix.cc.
References DiagArray2< T >::cols(), column(), and current_liboctave_error_handler.
ColumnVector DiagMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 197 of file dDiagMatrix.cc.
References DiagArray2< T >::cols(), DiagArray2< T >::elem(), r, and DiagArray2< T >::rows().
Referenced by column().
|
inlineinherited |
Definition at line 91 of file DiagArray2.h.
Referenced by ComplexDiagMatrix::abs(), abs(), FloatComplexDiagMatrix::abs(), FloatDiagMatrix::abs(), octave_complex_diag_matrix::map(), octave_float_complex_diag_matrix::map(), octave_float_diag_matrix::map(), and octave_diag_matrix::map().
|
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.
|
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.
|
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.
|
inlineinherited |
|
inlineinherited |
Definition at line 169 of file DiagArray2.h.
References Array< T, Alloc >::data().
Referenced by ComplexDiagMatrix::all_elements_are_real(), FloatComplexDiagMatrix::all_elements_are_real(), ComplexDiagMatrix::inverse(), inverse(), MDiagArray2< T >::nnz(), ComplexDiagMatrix::operator+=(), FloatComplexDiagMatrix::operator+=(), ComplexDiagMatrix::operator==(), operator==(), FloatComplexDiagMatrix::operator==(), and FloatDiagMatrix::operator==().
|
inherited |
Dispatcher to the above two.
Definition at line 781 of file Array-base.cc.
|
inherited |
Deleting elements.
A(I) = [] (with a single subscript)
Definition at line 775 of file Array-base.cc.
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
Definition at line 778 of file Array-base.cc.
DET DiagMatrix::determinant | ( | void | ) | const |
Definition at line 331 of file dDiagMatrix.cc.
References DiagArray2< T >::cols(), DiagArray2< T >::elem(), len, DiagArray2< T >::length(), and DiagArray2< T >::rows().
Referenced by Fdet().
|
inlineinherited |
Definition at line 127 of file DiagArray2.h.
References Array< T, Alloc >::elem().
|
inlineinherited |
Definition at line 124 of file DiagArray2.h.
References Array< T, Alloc >::elem().
Referenced by kron(), and operator*().
|
inlineinherited |
Definition at line 152 of file DiagArray2.h.
References Array< T, Alloc >::xelem().
Referenced by operator*(), and xpow().
|
inlineinherited |
Definition at line 155 of file DiagArray2.h.
References Array< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 103 of file MDiagArray2.h.
|
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.
|
inlineinherited |
Definition at line 93 of file DiagArray2.h.
References Array< T, Alloc >::numel().
Referenced by kron().
|
inlineinherited |
Definition at line 86 of file DiagArray2.h.
|
inlineinherited |
Definition at line 87 of file DiagArray2.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 101 of file DiagArray2.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 85 of file DiagArray2.cc.
References Array< T, Alloc >::elem(), and r.
|
inlineinherited |
Definition at line 117 of file DiagArray2.h.
References Array< T, Alloc >::elem(), and r.
Referenced by ComplexDiagMatrix::ComplexDiagMatrix(), ComplexMatrix::ComplexMatrix(), FloatComplexDiagMatrix::FloatComplexDiagMatrix(), FloatComplexMatrix::FloatComplexMatrix(), FloatMatrix::FloatMatrix(), Matrix::Matrix(), ComplexDiagMatrix::column(), column(), FloatComplexDiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::determinant(), determinant(), FloatComplexDiagMatrix::determinant(), FloatDiagMatrix::determinant(), ComplexDiagMatrix::extract(), extract(), FloatComplexDiagMatrix::extract(), FloatDiagMatrix::extract(), ComplexDiagMatrix::fill(), fill(), FloatComplexDiagMatrix::fill(), FloatDiagMatrix::fill(), ComplexMatrix::insert(), Matrix::insert(), FloatComplexMatrix::insert(), FloatMatrix::insert(), FloatComplexDiagMatrix::inverse(), FloatDiagMatrix::inverse(), operator*(), ComplexMatrix::operator+=(), Matrix::operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), ComplexDiagMatrix::pseudo_inverse(), pseudo_inverse(), FloatComplexDiagMatrix::pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::row(), row(), FloatComplexDiagMatrix::row(), and FloatDiagMatrix::row().
Matrix DiagMatrix::extract | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) | const |
Definition at line 146 of file dDiagMatrix.cc.
References Array< T, Alloc >::elem(), and DiagArray2< T >::elem().
|
inline |
Definition at line 107 of file dDiagMatrix.h.
References DiagArray2< T >::extract_diag().
Referenced by abs(), Fsvd(), octave_diag_matrix::map(), null(), ComplexMatrix::pseudo_inverse(), Matrix::pseudo_inverse(), rcond(), and octave_diag_matrix::save_binary().
DiagMatrix & DiagMatrix::fill | ( | const ColumnVector & | a | ) |
Definition at line 76 of file dDiagMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), len, DiagArray2< T >::length(), and Array< T, Alloc >::numel().
DiagMatrix & DiagMatrix::fill | ( | const ColumnVector & | a, |
octave_idx_type | beg | ||
) |
Definition at line 102 of file dDiagMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), DiagArray2< T >::length(), and Array< T, Alloc >::numel().
DiagMatrix & DiagMatrix::fill | ( | const RowVector & | a | ) |
Definition at line 89 of file dDiagMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), len, DiagArray2< T >::length(), and Array< T, Alloc >::numel().
DiagMatrix & DiagMatrix::fill | ( | const RowVector & | a, |
octave_idx_type | beg | ||
) |
Definition at line 115 of file dDiagMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), DiagArray2< T >::length(), and Array< T, Alloc >::numel().
Definition at line 404 of file Array-base.cc.
DiagMatrix & DiagMatrix::fill | ( | double | val | ) |
Definition at line 56 of file dDiagMatrix.cc.
References DiagArray2< T >::elem(), and DiagArray2< T >::length().
DiagMatrix & DiagMatrix::fill | ( | double | val, |
octave_idx_type | beg, | ||
octave_idx_type | end | ||
) |
Definition at line 64 of file dDiagMatrix.cc.
References DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
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.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inlineinherited |
Definition at line 176 of file DiagArray2.h.
References Array< T, Alloc >::fortran_vec().
Referenced by ComplexDiagMatrix::operator+=(), and FloatComplexDiagMatrix::operator+=().
|
inlineinherited |
Definition at line 107 of file MDiagArray2.h.
|
inherited |
Definition at line 76 of file DiagArray2.cc.
Referenced by MDiagArray2< T >::hermitian().
|
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.
|
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.
|
inherited |
Indexing without resizing.
Definition at line 682 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Indexing with possible resizing and fill.
Definition at line 715 of file Array-base.cc.
|
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.
|
inlineinherited |
|
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.
|
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.
|
inherited |
This is just a special case for idx = [r c 0 ...].
Definition at line 793 of file Array-base.cc.
|
privateinherited |
Definition at line 53 of file Array-tc.cc.
|
privateinherited |
Definition at line 98 of file Array-C.cc.
|
privateinherited |
Definition at line 169 of file Array-f.cc.
|
privateinherited |
Definition at line 98 of file Array-fC.cc.
|
privateinherited |
Definition at line 55 of file Array-i.cc.
|
privateinherited |
Definition at line 58 of file Array-i.cc.
|
privateinherited |
Definition at line 71 of file Array-i.cc.
|
privateinherited |
Definition at line 72 of file Array-i.cc.
|
privateinherited |
Definition at line 73 of file Array-i.cc.
|
privateinherited |
Definition at line 74 of file Array-i.cc.
|
privateinherited |
Definition at line 84 of file Array-i.cc.
|
privateinherited |
Definition at line 85 of file Array-i.cc.
|
privateinherited |
Definition at line 86 of file Array-i.cc.
|
privateinherited |
Definition at line 87 of file Array-i.cc.
|
privateinherited |
Definition at line 94 of file Array-i.cc.
|
privateinherited |
Definition at line 95 of file Array-i.cc.
|
privateinherited |
Definition at line 96 of file Array-i.cc.
|
privateinherited |
Definition at line 97 of file Array-i.cc.
|
privateinherited |
Definition at line 45 of file Array-idx-vec.cc.
|
privateinherited |
Definition at line 48 of file Array-s.cc.
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.
DiagMatrix DiagMatrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 234 of file dDiagMatrix.cc.
References DiagArray2< T >::cols(), DiagArray2< T >::data(), Inf, len, r, DiagArray2< T >::rows(), and DiagArray2< T >::xelem().
DiagMatrix DiagMatrix::inverse | ( | void | ) | const |
Definition at line 227 of file dDiagMatrix.cc.
Referenced by Finv().
|
inherited |
Definition at line 110 of file MDiagArray2.cc.
Ordering is auto-detected or can be specified.
Definition at line 819 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inlineinherited |
Definition at line 103 of file DiagArray2.h.
References numel().
|
inherited |
Definition at line 101 of file Array-f.cc.
Ordering is auto-detected or can be specified.
Definition at line 813 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inlineinherited |
Definition at line 95 of file DiagArray2.h.
References Array< T, Alloc >::numel().
Referenced by ComplexDiagMatrix::ComplexDiagMatrix(), ComplexMatrix::ComplexMatrix(), FloatComplexDiagMatrix::FloatComplexDiagMatrix(), FloatComplexMatrix::FloatComplexMatrix(), FloatMatrix::FloatMatrix(), Matrix::Matrix(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), ComplexDiagMatrix::all_elements_are_real(), FloatComplexDiagMatrix::all_elements_are_real(), ComplexDiagMatrix::determinant(), determinant(), FloatComplexDiagMatrix::determinant(), FloatDiagMatrix::determinant(), ComplexDiagMatrix::fill(), fill(), FloatComplexDiagMatrix::fill(), FloatDiagMatrix::fill(), ComplexMatrix::insert(), Matrix::insert(), FloatComplexMatrix::insert(), FloatMatrix::insert(), FloatComplexDiagMatrix::inverse(), FloatDiagMatrix::inverse(), MDiagArray2< T >::nnz(), operator*(), ComplexDiagMatrix::operator+=(), ComplexMatrix::operator+=(), Matrix::operator+=(), FloatComplexDiagMatrix::operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), ComplexDiagMatrix::operator==(), operator==(), FloatComplexDiagMatrix::operator==(), FloatDiagMatrix::operator==(), ComplexDiagMatrix::pseudo_inverse(), pseudo_inverse(), FloatComplexDiagMatrix::pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), octave_complex_diag_matrix::save_binary(), octave_float_complex_diag_matrix::save_binary(), octave_float_diag_matrix::save_binary(), and octave_diag_matrix::save_binary().
|
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.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
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.
|
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.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inlineinherited |
Definition at line 105 of file DiagArray2.h.
|
inlineinherited |
Definition at line 270 of file Array-base.cc.
|
inlineinherited |
Definition at line 91 of file MDiagArray2.h.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
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.
|
inlineinherited |
Definition at line 97 of file DiagArray2.h.
bool DiagMatrix::operator!= | ( | const DiagMatrix & | a | ) | const |
Definition at line 50 of file dDiagMatrix.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 140 of file DiagArray2.h.
|
inlineinherited |
Definition at line 133 of file DiagArray2.h.
|
default |
bool DiagMatrix::operator== | ( | const DiagMatrix & | a | ) | const |
Definition at line 41 of file dDiagMatrix.cc.
References DiagArray2< T >::cols(), DiagArray2< T >::data(), DiagArray2< T >::length(), mx_inline_equal(), and DiagArray2< T >::rows().
|
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.
|
inherited |
Extract page: A(:,:,k+1).
Definition at line 627 of file Array-base.cc.
|
inlineinherited |
|
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.
|
inlineinherited |
Definition at line 178 of file DiagArray2.h.
References Array< T, Alloc >::print_info().
DiagMatrix DiagMatrix::pseudo_inverse | ( | double | tol = 0.0 | ) | const |
Definition at line 279 of file dDiagMatrix.cc.
References abs(), DiagArray2< T >::cols(), DiagArray2< T >::elem(), len, DiagArray2< T >::length(), r, and DiagArray2< T >::rows().
Referenced by Fpinv().
double DiagMatrix::rcond | ( | void | ) | const |
Definition at line 345 of file dDiagMatrix.cc.
References extract_diag(), Array< T, Alloc >::map(), ColumnVector::max(), and ColumnVector::min().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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.
|
inlineinherited |
Definition at line 159 of file DiagArray2.h.
|
inherited |
Definition at line 101 of file DiagArray2.cc.
References min(), r, and Array< T, Alloc >::resize().
|
inlineinherited |
|
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.
|
inlineinherited |
|
inherited |
Resizing (with fill).
Definition at line 693 of file Array-base.cc.
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.
RowVector DiagMatrix::row | ( | char * | s | ) | const |
Definition at line 182 of file dDiagMatrix.cc.
References current_liboctave_error_handler, row(), and DiagArray2< T >::rows().
RowVector DiagMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 167 of file dDiagMatrix.cc.
References DiagArray2< T >::cols(), DiagArray2< T >::elem(), r, and DiagArray2< T >::rows().
Referenced by row().
|
inlineinherited |
Definition at line 89 of file DiagArray2.h.
Referenced by ComplexDiagMatrix::abs(), abs(), FloatComplexDiagMatrix::abs(), FloatDiagMatrix::abs(), ComplexMatrix::append(), Matrix::append(), FloatComplexMatrix::append(), FloatMatrix::append(), ComplexDiagMatrix::column(), column(), FloatComplexDiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::determinant(), determinant(), FloatComplexDiagMatrix::determinant(), FloatDiagMatrix::determinant(), octave_diag_matrix::do_index_op(), ComplexMatrix::insert(), Matrix::insert(), FloatComplexMatrix::insert(), FloatMatrix::insert(), ComplexDiagMatrix::inverse(), inverse(), FloatComplexDiagMatrix::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+=(), FloatComplexDiagMatrix::operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), ComplexDiagMatrix::operator==(), operator==(), FloatComplexDiagMatrix::operator==(), FloatDiagMatrix::operator==(), ComplexDiagMatrix::pseudo_inverse(), pseudo_inverse(), FloatComplexDiagMatrix::pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::row(), row(), FloatComplexDiagMatrix::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().
|
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.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
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.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Sort by rows returns only indices.
Definition at line 816 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
Chop off leading singleton dimensions.
Definition at line 507 of file Array-base.cc.
|
inline |
Definition at line 80 of file dDiagMatrix.h.
References MDiagArray2< T >::transpose().
Referenced by oct_unop_transpose().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 147 of file DiagArray2.h.
References r, and Array< T, Alloc >::xelem().
Referenced by ComplexDiagMatrix::inverse(), and inverse().
|
friend |
Definition at line 140 of file dDiagMatrix.cc.
|
friend |
Definition at line 353 of file dDiagMatrix.cc.
|
friend |
Definition at line 134 of file dDiagMatrix.cc.
|
protectedinherited |
Definition at line 45 of file DiagArray2.h.
Referenced by DiagArray2< T >::operator=().
|
protectedinherited |
Definition at line 45 of file DiagArray2.h.
Referenced by DiagArray2< T >::operator=().
|
protectedinherited |
|
protectedinherited |