#include "dMatrix.h"
Public Types | |
typedef ColumnVector | column_vector_type |
typedef bool(* | compare_fcn_type) (typename ref_param< double >::type, typename ref_param< double >::type) |
typedef ComplexDiagMatrix | complex_diag_matrix_type |
typedef Complex | complex_elt_type |
typedef ComplexMatrix | complex_matrix_type |
typedef ref_param< double >::type | crefT |
typedef double | element_type |
typedef ColumnVector | real_column_vector_type |
typedef DiagMatrix | real_diag_matrix_type |
typedef double | real_elt_type |
typedef Matrix | real_matrix_type |
typedef RowVector | real_row_vector_type |
typedef RowVector | row_vector_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) More... | |
typedef void(* | solve_singularity_handler) (double rcon) |
typedef double | value_type |
Static Public Member Functions | |
static OCTAVE_API octave_idx_type | compute_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions) |
static OCTAVE_API void | increment_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0) |
Protected Attributes | |
dim_vector | m_dimensions |
Array< double, Alloc >::ArrayRep * | m_rep |
double * | m_slice_data |
octave_idx_type | m_slice_len |
Private Member Functions | |
Matrix | finverse (MatrixType &mattype, octave_idx_type &info, double &rcon, bool force, bool calc_cond) const |
Matrix | fsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
Matrix | ltsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false, blas_trans_type transt=blas_no_trans) const |
Matrix | tinverse (MatrixType &mattype, octave_idx_type &info, double &rcon, bool force, bool calc_cond) const |
Matrix | utsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false, blas_trans_type transt=blas_no_trans) const |
Static Private Member Functions | |
static OCTARRAY_API void | instantiation_guard () |
static OCTARRAY_API Array< double, Alloc >::ArrayRep * | nil_rep (void) |
Friends | |
class | ComplexMatrix |
OCTAVE_API Matrix | imag (const ComplexMatrix &a) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const Matrix &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, Matrix &a) |
OCTAVE_API Matrix | real (const ComplexMatrix &a) |
Third dimension | |
OCTARRAY_API Array< double, Alloc > & | insert (const Array< double, Alloc > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
OCTARRAY_API Array< double, Alloc > & | insert (const Array< double, Alloc > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. 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 Array< double, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | hermitian (double(*fcn)(const double &)=nullptr) const |
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_OVERRIDABLE_FUNC_API std::size_t | byte_size (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API const dim_vector & | dims (void) const |
Return a const-reference so that dims ()(i) works efficiently. 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_OVERRIDABLE_FUNC_API double & | 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 double & | xelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | 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 double & | 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 double & | checkelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API double & | checkelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_API double & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_API double & | 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) 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 double & | elem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | elem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | 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) 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_OVERRIDABLE_FUNC_API double & | operator() (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | operator() (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | 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) 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_API Array< double, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
OCTARRAY_API Array< double, 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 bool | issquare (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | isempty (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 const double * | data (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API double * | fortran_vec (void) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | is_shared (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API int | ndims (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i, bool resize_ok, const double &rfv) const |
Indexing with possible resizing and fill. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const double &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, 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< double, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok, const double &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok) const |
Size of the specified dimension. More... | |
virtual OCTARRAY_API double | resize_fill_value (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize2 (octave_idx_type nr, octave_idx_type nc, const double &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 double &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 | resize (const dim_vector &dv, const double &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize (const dim_vector &dv) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const Array< double, Alloc > &rhs, const double &rfv) |
Indexed assignment (always with resize & fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const Array< double, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< double, Alloc > &rhs, const double &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< double, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const Array< octave::idx_vector > &ia, const Array< double, Alloc > &rhs, const double &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const Array< octave::idx_vector > &ia, const Array< double, 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_OVERRIDABLE_FUNC_API void | maybe_economize (void) |
Size of the specified dimension. More... | |
OCTARRAY_API void | print_info (std::ostream &os, const std::string &prefix) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, 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 double &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
OCTARRAY_API Array< octave_idx_type > | lookup (const Array< double, Alloc > &values, sortmode mode=UNSORTED) const |
Ditto, but for an array of values, specializing on the case when values are sorted. More... | |
OCTARRAY_API octave_idx_type | nnz (void) const |
Count nonzero elements. 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< double, 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)(double)) const |
Overloads for function references. More... | |
Array< U, A > | map (U(&fcn)(const double &)) 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)(double)) const |
Overloads for function references. More... | |
bool | test_any (bool(&fcn)(const double &)) const |
Size of the specified dimension. More... | |
bool | test_all (F fcn) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(double)) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(const double &)) 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 Array< double, Alloc > | cat (int dim, octave_idx_type n, const Array< double, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
typedef Complex Matrix::complex_elt_type |
|
inherited |
typedef double Matrix::real_elt_type |
typedef Matrix Matrix::real_matrix_type |
typedef RowVector Matrix::row_vector_type |
|
inherited |
typedef void(* Matrix::solve_singularity_handler) (double rcon) |
|
inherited |
|
default |
Referenced by inverse(), lssolve(), ltsolve(), pseudo_inverse(), and utsolve().
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 68 of file dMatrix.cc.
|
explicit |
Definition at line 72 of file dMatrix.cc.
|
explicit |
Definition at line 76 of file dMatrix.cc.
References Array< double >::elem(), DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 83 of file dMatrix.cc.
References Array< double >::elem(), DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 90 of file dMatrix.cc.
References Array< double >::elem(), DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 97 of file dMatrix.cc.
References PermMatrix::col_perm_vec(), Array< double >::elem(), len, and PermMatrix::rows().
|
explicit |
Definition at line 108 of file dMatrix.cc.
|
explicit |
Definition at line 112 of file dMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< double >::elem(), and Array< T, Alloc >::rows().
Matrix Matrix::abs | ( | void | ) | const |
Definition at line 2401 of file dMatrix.cc.
References NDArray::abs().
Referenced by SparseMatrix::bsolve(), and norm1().
boolMatrix Matrix::all | ( | int | dim = -1 | ) | const |
Definition at line 2359 of file dMatrix.cc.
References NDArray::all().
|
inherited |
Definition at line 342 of file dNDArray.cc.
References is_int_or_inf_or_nan(), and Array< double >::test_all().
|
inherited |
Definition at line 336 of file dNDArray.cc.
References is_zero(), and Array< double >::test_all().
|
inherited |
Definition at line 351 of file dNDArray.cc.
References Array< double >::elem(), isinteger(), and Array< double >::numel().
Referenced by elem_xpow().
|
inherited |
Definition at line 381 of file dNDArray.cc.
References isinteger(), and Array< double >::test_all().
boolMatrix Matrix::any | ( | int | dim = -1 | ) | const |
Definition at line 2365 of file dMatrix.cc.
References NDArray::any().
|
inherited |
Definition at line 324 of file dNDArray.cc.
References mx_inline_all_finite().
Referenced by Fgsvd(), Fsvd(), and EIG::init().
|
inherited |
Definition at line 318 of file dNDArray.cc.
References mx_inline_any_nan().
Referenced by octave_matrix::bool_array_value(), and NDArray::operator!().
|
inherited |
Definition at line 304 of file dNDArray.cc.
References mx_inline_any_negative(), negative_sign(), and Array< double >::test_all().
Referenced by elem_xpow().
|
inherited |
Definition at line 311 of file dNDArray.cc.
References mx_inline_any_positive(), positive_sign(), and Array< double >::test_all().
|
inherited |
Definition at line 330 of file dNDArray.cc.
References is_one_or_zero(), and Array< double >::test_all().
Referenced by octave_matrix::bool_array_value().
Matrix Matrix::append | ( | const ColumnVector & | a | ) | const |
Definition at line 295 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T, Alloc >::numel(), and Array< double >::rows().
Matrix Matrix::append | ( | const DiagMatrix & | a | ) | const |
Definition at line 310 of file dMatrix.cc.
References Array< double >::cols(), DiagArray2< T >::cols(), insert(), Array< double >::rows(), and DiagArray2< T >::rows().
Definition at line 265 of file dMatrix.cc.
References Array< T, Alloc >::cols(), Array< double >::cols(), insert(), Array< T, Alloc >::rows(), and Array< double >::rows().
Referenced by add_point(), and end_contour().
Definition at line 280 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T, Alloc >::numel(), and Array< double >::rows().
|
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.
|
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.
|
inlineinherited |
Definition at line 162 of file dNDArray.h.
References MArray< T >::changesign().
|
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 556 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 588 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.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 586 of file Array-base.cc.
|
inherited |
Definition at line 407 of file Array-base.cc.
|
inlineinherited |
Definition at line 406 of file Array-base.cc.
|
inlineinherited |
ColumnVector Matrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 422 of file dMatrix.cc.
References Array< double >::index().
Referenced by qr< T >::insert_col(), Table::itemSelectionChanged(), qp(), solve(), SparseMatrix::solve(), lu< T >::update(), qr< T >::update(), and lu< T >::update_piv().
RowVector Matrix::column_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2601 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< T, Alloc >::elem(), isnan(), NaN, Array< T, Alloc >::resize(), RowVector::resize(), and Array< double >::rows().
RowVector Matrix::column_max | ( | void | ) | const |
Definition at line 2594 of file dMatrix.cc.
RowVector Matrix::column_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2546 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< T, Alloc >::elem(), isnan(), NaN, Array< T, Alloc >::resize(), RowVector::resize(), and Array< double >::rows().
RowVector Matrix::column_min | ( | void | ) | const |
Definition at line 2539 of file dMatrix.cc.
|
inlineinherited |
|
staticinherited |
Definition at line 602 of file dNDArray.cc.
References compute_index(), and 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 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 |
|
inherited |
Definition at line 514 of file dNDArray.cc.
References d, Array< double >::dims(), Array< T, Alloc >::elem(), Array< double >::elem(), charNDArray::insert(), Array< T, Alloc >::isempty(), isnan(), max(), nint_big(), Array< double >::numel(), and ra_idx.
|
inherited |
Definition at line 505 of file dNDArray.cc.
References ComplexNDArray::insert(), Array< T, Alloc >::numel(), and ra_idx.
|
inherited |
Definition at line 497 of file dNDArray.cc.
References NDArray::insert(), Array< T, Alloc >::numel(), and ra_idx.
|
inherited |
Definition at line 473 of file dNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 467 of file dNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 485 of file dNDArray.cc.
References mx_inline_cummin().
|
inherited |
Definition at line 479 of file dNDArray.cc.
References mx_inline_cummin().
Matrix Matrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 2371 of file dMatrix.cc.
References NDArray::cumprod().
Matrix Matrix::cumsum | ( | int | dim = -1 | ) | const |
Definition at line 2377 of file dMatrix.cc.
References NDArray::cumsum().
|
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 Matrix::determinant | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcon, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 880 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_unsymmetric(), norm1(), MatrixType::Rectangular, Array< double >::rows(), base_det< T >::square(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
DET Matrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 866 of file dMatrix.cc.
References determinant().
DET Matrix::determinant | ( | octave_idx_type & | info, |
double & | rcon, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 873 of file dMatrix.cc.
References determinant().
DET Matrix::determinant | ( | void | ) | const |
Definition at line 858 of file dMatrix.cc.
Referenced by determinant().
Matrix Matrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2407 of file dMatrix.cc.
References NDArray::diag().
Referenced by Range::diag(), octave_matrix::diag(), and ov_range< T >::diag().
DiagMatrix Matrix::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 2413 of file dMatrix.cc.
References Array< double >::cols(), current_liboctave_error_handler, DiagMatrix, m, n, and Array< double >::rows().
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Matrix Matrix::extract | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) | const |
Definition at line 397 of file dMatrix.cc.
References Array< double >::index().
Referenced by ft_text_renderer::compute_bbox(), Fdlmread(), pseudo_inverse(), save_three_d(), streameuler2d_internal(), and streameuler3d_internal().
Matrix Matrix::extract_n | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | nr, | ||
octave_idx_type | nc | ||
) | const |
Definition at line 407 of file dMatrix.cc.
References Array< double >::index().
Referenced by convert_label_position(), convert_text_position(), end_contour(), F__get_position__(), latex_renderer::get_extent(), qp(), and screen_size_pixels().
Definition at line 404 of file Array-base.cc.
Matrix & Matrix::fill | ( | double | val | ) |
Definition at line 221 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::make_unique(), Array< double >::rows(), and Array< double >::xelem().
Referenced by insert(), and updatePalette().
Matrix & Matrix::fill | ( | double | val, |
octave_idx_type | r1, | ||
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) |
Definition at line 239 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::make_unique(), Array< double >::rows(), and Array< double >::xelem().
|
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.
|
private |
Definition at line 550 of file dMatrix.cc.
References Array< double >::cols(), F77_XFCN, Array< T, Alloc >::fortran_vec(), isnan(), MatrixType::mark_as_rectangular(), NaN, norm1(), Array< T, Alloc >::resize(), and Array< double >::rows().
Referenced by inverse().
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 672 of file Array-base.cc.
|
inherited |
Definition at line 100 of file dNDArray.cc.
References NDArray::ComplexNDArray, Array< double >::data(), Array< double >::dims(), Array< T, Alloc >::fortran_vec(), n, dim_vector::ndims(), and Array< double >::numel().
Referenced by do_fft().
ComplexMatrix Matrix::fourier | ( | void | ) | const |
Definition at line 734 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::data(), Array< T, Alloc >::fortran_vec(), and Array< double >::rows().
ComplexMatrix Matrix::fourier2d | ( | void | ) | const |
Definition at line 793 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::data(), Array< T, Alloc >::fortran_vec(), and Array< double >::rows().
|
inherited |
Definition at line 200 of file dNDArray.cc.
References Array< double >::data(), Array< double >::dims(), Array< T, Alloc >::fortran_vec(), and dim_vector::ndims().
Referenced by do_fftn().
|
private |
Definition at line 1393 of file dMatrix.cc.
References Array< T, Alloc >::cols(), Array< double >::cols(), F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), norm1(), Array< double >::rows(), Array< T, Alloc >::rows(), MatrixType::type(), and warn_singular_matrix().
Referenced by solve().
|
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 661 of file Array-base.cc.
|
inline |
Definition at line 139 of file dMatrix.h.
References MArray< T >::transpose().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 131 of file dNDArray.cc.
References NDArray::ComplexNDArray, Array< double >::dims(), and dim_vector::ndims().
Referenced by do_fft().
ComplexMatrix Matrix::ifourier | ( | void | ) | const |
Definition at line 763 of file dMatrix.cc.
References Array< double >::cols(), Array< T, Alloc >::data(), Array< T, Alloc >::fortran_vec(), and Array< double >::rows().
ComplexMatrix Matrix::ifourier2d | ( | void | ) | const |
Definition at line 805 of file dMatrix.cc.
References Array< double >::cols(), Array< T, Alloc >::fortran_vec(), and Array< double >::rows().
|
inherited |
Definition at line 215 of file dNDArray.cc.
References Array< double >::dims(), Array< T, Alloc >::fortran_vec(), and dim_vector::ndims().
Referenced by do_fftn().
|
staticinherited |
Definition at line 594 of file dNDArray.cc.
References 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 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.
Matrix & Matrix::insert | ( | const ColumnVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 178 of file dMatrix.cc.
References Array< double >::cols(), Array< T, Alloc >::elem(), Array< double >::make_unique(), Array< T, Alloc >::numel(), r, Array< double >::rows(), and Array< double >::xelem().
Matrix & Matrix::insert | ( | const DiagMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 197 of file dMatrix.cc.
References Array< double >::cols(), DiagArray2< T >::cols(), DiagArray2< T >::elem(), fill(), DiagArray2< T >::length(), Array< double >::make_unique(), r, Array< double >::rows(), DiagArray2< T >::rows(), and Array< double >::xelem().
Matrix & Matrix::insert | ( | const Matrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 152 of file dMatrix.cc.
References Array< T, Alloc >::insert(), and r.
|
inherited |
Definition at line 563 of file dNDArray.cc.
References Array< T, Alloc >::insert(), and ra_idx.
|
inherited |
Definition at line 556 of file dNDArray.cc.
References Array< T, Alloc >::insert(), and r.
Referenced by NDArray::concat().
Matrix & Matrix::insert | ( | const RowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 159 of file dMatrix.cc.
References Array< double >::cols(), Array< T, Alloc >::elem(), Array< double >::make_unique(), Array< T, Alloc >::numel(), r, Array< double >::rows(), and Array< double >::xelem().
|
privateinherited |
Definition at line 37 of file MArray-i.cc.
|
privateinherited |
Definition at line 47 of file MArray-i.cc.
|
privateinherited |
Definition at line 48 of file MArray-i.cc.
|
privateinherited |
Definition at line 49 of file MArray-i.cc.
|
privateinherited |
Definition at line 50 of file MArray-i.cc.
|
privateinherited |
Definition at line 57 of file MArray-i.cc.
|
privateinherited |
Definition at line 58 of file MArray-i.cc.
|
privateinherited |
Definition at line 59 of file MArray-i.cc.
|
privateinherited |
Definition at line 60 of file MArray-i.cc.
|
privateinherited |
Definition at line 35 of file MArray-s.cc.
|
staticprivateinherited |
Matrix Matrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 476 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 484 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcon, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 639 of file dMatrix.cc.
References Matrix(), Array< double >::columns(), MatrixType::Diagonal, Array< double >::elem(), finverse(), Inf, chol< T >::inverse(), isfinite(), MatrixType::ishermitian(), isinf(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), NaN, chol< T >::rcond(), Array< double >::rows(), scalar(), tinverse(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
Matrix Matrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 460 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | octave_idx_type & | info, |
double & | rcon, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 468 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | void | ) | const |
Definition at line 451 of file dMatrix.cc.
|
inlineinherited |
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.
|
inherited |
Definition at line 588 of file dNDArray.cc.
|
inherited |
Definition at line 582 of file dNDArray.cc.
|
inherited |
Definition at line 576 of file dNDArray.cc.
|
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.
bool Matrix::issymmetric | ( | void | ) | const |
Definition at line 136 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< double >::issquare(), and Array< double >::rows().
Referenced by F__eigs__(), and EIG::init().
|
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 |
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 |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.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.
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b | ) | const |
Definition at line 2124 of file dMatrix.cc.
References lssolve().
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2133 of file dMatrix.cc.
References lssolve().
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2141 of file dMatrix.cc.
References lssolve().
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2149 of file dMatrix.cc.
References Array< double >::cols(), ColumnVector, Array< T, Alloc >::elem(), F77_FUNC(), F77_XFCN, Array< T, Alloc >::fortran_vec(), log2(), m, n, Array< T, Alloc >::numel(), Array< T, Alloc >::resize(), ColumnVector::resize(), Array< double >::rows(), and xilaenv().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2254 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2264 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2273 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2282 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexMatrix Matrix::lssolve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 2088 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexMatrix Matrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2098 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexMatrix Matrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2107 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexMatrix Matrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2116 of file dMatrix.cc.
References ComplexMatrix::lssolve().
Definition at line 1902 of file dMatrix.cc.
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1911 of file dMatrix.cc.
References lssolve().
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 1919 of file dMatrix.cc.
References lssolve().
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 1927 of file dMatrix.cc.
References Matrix(), Array< double >::cols(), Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), F77_FUNC(), F77_XFCN, Array< T, Alloc >::fortran_vec(), isinf(), isnan(), log2(), m, n, NaN, norm1(), Array< T, Alloc >::resize(), resize(), Array< T, Alloc >::rows(), Array< double >::rows(), and xilaenv().
|
private |
Definition at line 1296 of file dMatrix.cc.
References Matrix(), Array< T, Alloc >::cols(), Array< double >::cols(), Array< double >::data(), F77_XFCN, Array< T, Alloc >::fortran_vec(), get_blas_char(), isnan(), MatrixType::Lower, norm(), MatrixType::Permuted_Lower, Array< double >::rows(), Array< T, Alloc >::rows(), MatrixType::type(), and warn_singular_matrix().
Referenced by solve().
|
inherited |
Definition at line 449 of file dNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 443 of file dNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 461 of file dNDArray.cc.
References mx_inline_min().
|
inherited |
Definition at line 455 of file dNDArray.cc.
References mx_inline_min().
|
staticprivateinherited |
Definition at line 270 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 |
Count nonzero elements.
Definition at line 831 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 |
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 |
|
inherited |
Definition at line 295 of file dNDArray.cc.
References NDArray::any_element_is_nan(), err_nan_to_logical_conversion(), and mx_inline_not().
bool Matrix::operator!= | ( | const Matrix & | a | ) | const |
Definition at line 130 of file dMatrix.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Matrix & Matrix::operator+= | ( | const DiagMatrix & | a | ) |
Definition at line 2290 of file dMatrix.cc.
References Array< double >::cols(), DiagArray2< T >::cols(), Array< double >::elem(), DiagArray2< T >::elem(), err_nonconformant(), DiagArray2< T >::length(), Array< double >::rows(), and DiagArray2< T >::rows().
Matrix & Matrix::operator-= | ( | const DiagMatrix & | a | ) |
Definition at line 2308 of file dMatrix.cc.
References Array< double >::cols(), DiagArray2< T >::cols(), Array< double >::elem(), DiagArray2< T >::elem(), err_nonconformant(), DiagArray2< T >::length(), Array< double >::rows(), and DiagArray2< T >::rows().
bool Matrix::operator== | ( | const Matrix & | a | ) | const |
Definition at line 121 of file dMatrix.cc.
References Array< T, Alloc >::cols(), Array< double >::cols(), Array< T, Alloc >::data(), Array< double >::data(), mx_inline_equal(), Array< double >::numel(), Array< T, Alloc >::rows(), and Array< double >::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 |
|
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 806 of file Array-base.cc.
Matrix Matrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 2383 of file dMatrix.cc.
References NDArray::prod().
Matrix Matrix::pseudo_inverse | ( | double | tol = 0.0 | ) | const |
Definition at line 693 of file dMatrix.cc.
References Matrix(), Array< double >::cols(), DiagMatrix, Array< T, Alloc >::elem(), extract(), ColumnVector::extract(), DiagMatrix::extract_diag(), max(), min(), Array< T, Alloc >::numel(), r, Array< double >::rows(), transpose(), and V.
Referenced by qp().
double Matrix::rcond | ( | MatrixType & | mattype | ) | const |
Definition at line 1036 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::data(), F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, Inf, MatrixType::Lower, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), NaN, norm(), norm1(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, Array< double >::rows(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
double Matrix::rcond | ( | void | ) | const |
Definition at line 1029 of file dMatrix.cc.
|
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.
|
inline |
Definition at line 158 of file dMatrix.h.
References Array< T >::resize().
Referenced by opengl_renderer::patch_tessellator::combine(), convert_text_position(), coplanar_partition(), LSODE::do_integrate(), base_stream::do_scanf(), do_scanf_conv(), opengl_renderer::draw_patch(), opengl_renderer::draw_scatter(), SparseMatrix::dsolve(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), F__contourc__(), Fconvhulln(), Fdlmread(), find_nonzero_elem_idx(), Flu(), SparseMatrix::fsolve(), tree_evaluator::ignored_fcn_outputs(), qr< T >::init(), qrp< T >::init(), CollocWt::init(), DASRT::integrate(), DASPK::integrate(), DASSL::integrate(), lssolve(), SparseMatrix::ltsolve(), regexp::match(), null(), stream_list::open_file_numbers(), qp(), octave_class::size(), start_contour(), and SparseMatrix::utsolve().
|
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 Matrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 416 of file dMatrix.cc.
References Array< double >::index().
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Table::itemSelectionChanged(), norm1(), qp(), and ListBoxControl::sendSelectionChange().
ColumnVector Matrix::row_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2491 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< T, Alloc >::elem(), isnan(), NaN, Array< T, Alloc >::resize(), ColumnVector::resize(), and Array< double >::rows().
ColumnVector Matrix::row_max | ( | void | ) | const |
Definition at line 2484 of file dMatrix.cc.
ColumnVector Matrix::row_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2436 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< T, Alloc >::elem(), isnan(), NaN, Array< T, Alloc >::resize(), ColumnVector::resize(), and Array< double >::rows().
ColumnVector Matrix::row_min | ( | void | ) | const |
Definition at line 2429 of file dMatrix.cc.
|
inlineinherited |
ColumnVector Matrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 1841 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1848 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1855 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1861 of file dMatrix.cc.
References solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 1870 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1877 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1884 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1892 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 1810 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1817 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1824 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1832 of file dMatrix.cc.
References ComplexMatrix::solve().
Definition at line 1780 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1788 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1795 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1801 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b | ||
) | const |
Definition at line 1714 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1721 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1729 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1736 of file dMatrix.cc.
ComplexColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 1747 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1754 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1762 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1770 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b | ||
) | const |
Definition at line 1648 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1656 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1664 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true , |
||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1702 of file dMatrix.cc.
References solve(), stack_complex_matrix(), and unstack_complex_matrix().
Matrix Matrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b | ||
) | const |
Definition at line 1591 of file dMatrix.cc.
Referenced by solve(), xdiv(), and xleftdiv().
Matrix Matrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1599 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1607 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true , |
||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1614 of file dMatrix.cc.
References blas_conj_trans, blas_trans, fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, lssolve(), ltsolve(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, MatrixType::Rectangular, solve(), transpose(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
|
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.
|
inlineinherited |
Definition at line 143 of file dNDArray.h.
References MArray< T >::squeeze().
Referenced by octave_matrix::squeeze().
Matrix Matrix::stack | ( | const ColumnVector & | a | ) | const |
Definition at line 355 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T, Alloc >::numel(), and Array< double >::rows().
Matrix Matrix::stack | ( | const DiagMatrix & | a | ) | const |
Definition at line 370 of file dMatrix.cc.
References Array< double >::cols(), DiagArray2< T >::cols(), insert(), Array< double >::rows(), and DiagArray2< T >::rows().
Definition at line 325 of file dMatrix.cc.
References Array< T, Alloc >::cols(), Array< double >::cols(), insert(), Array< T, Alloc >::rows(), and Array< double >::rows().
Referenced by qp().
Definition at line 340 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T, Alloc >::numel(), and Array< double >::rows().
Matrix Matrix::sum | ( | int | dim = -1 | ) | const |
Definition at line 2389 of file dMatrix.cc.
References NDArray::sum().
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), and norm1().
Matrix Matrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 2395 of file dMatrix.cc.
References NDArray::sumsq().
|
private |
Definition at line 491 of file dMatrix.cc.
References Array< double >::cols(), F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::Lower, OCTAVE_LOCAL_BUFFER, Array< double >::rows(), and MatrixType::type().
Referenced by inverse().
|
inherited |
Definition at line 387 of file dNDArray.cc.
References Array< double >::test_any(), and too_large_for_float().
|
inline |
Definition at line 140 of file dMatrix.h.
References MArray< T >::transpose().
Referenced by coplanar_partition(), do_fftn(), F__delaunayn__(), F__voronoi__(), Faudiowrite(), Fconvhulln(), Fordqz(), LuAminusSigmaB(), make_cholb(), oct_unop_transpose(), pseudo_inverse(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), qp(), read_mat_binary_data(), solve(), Sylvester(), and xdiv().
|
private |
Definition at line 1198 of file dMatrix.cc.
References Matrix(), Array< T, Alloc >::cols(), Array< double >::cols(), Array< double >::data(), F77_XFCN, Array< T, Alloc >::fortran_vec(), get_blas_char(), isnan(), norm(), MatrixType::Permuted_Upper, Array< double >::rows(), Array< T, Alloc >::rows(), MatrixType::type(), MatrixType::Upper, and warn_singular_matrix().
Referenced by solve().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
friend |
|
friend |
Definition at line 391 of file dMatrix.cc.
|
friend |
Definition at line 2648 of file dMatrix.cc.
|
friend |
Definition at line 2664 of file dMatrix.cc.
|
friend |
Definition at line 385 of file dMatrix.cc.
|
protectedinherited |
|
protectedinherited |