GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 ref_param< double >::type | crefT |
typedef double | element_type |
typedef RowVector | row_vector_type |
typedef void(* | solve_singularity_handler )(double rcon) |
Static Public Member Functions | |
static Array< double > | cat (int dim, octave_idx_type n, const Array< double > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
static octave_idx_type | compute_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions) |
static void | increment_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0) |
Protected Attributes | |
dim_vector | dimensions |
Array< double >::ArrayRep * | rep |
double * | slice_data |
octave_idx_type | slice_len |
Private Member Functions | |
Matrix | finverse (MatrixType &mattype, octave_idx_type &info, double &rcon, int force, int calc_cond) const |
Matrix | fsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false) const |
Matrix | ltsolve (MatrixType &typ, 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, int force, int calc_cond) const |
Matrix | utsolve (MatrixType &typ, 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 |
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) |
typedef RowVector Matrix::row_vector_type |
typedef void(* Matrix::solve_singularity_handler)(double rcon) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 248 of file dMatrix.cc.
|
explicit |
Definition at line 253 of file dMatrix.cc.
|
explicit |
Definition at line 258 of file dMatrix.cc.
References DiagArray2< T >::elem(), Array< double >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 265 of file dMatrix.cc.
References DiagArray2< T >::elem(), Array< double >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 272 of file dMatrix.cc.
References DiagArray2< T >::elem(), Array< double >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 279 of file dMatrix.cc.
References PermMatrix::col_perm_vec(), Array< double >::elem(), and PermMatrix::rows().
|
explicit |
Definition at line 290 of file dMatrix.cc.
|
explicit |
Definition at line 295 of file dMatrix.cc.
References Array< T >::cols(), Array< T >::elem(), Array< double >::elem(), and Array< T >::rows().
Matrix Matrix::abs | ( | void | ) | const |
Definition at line 2706 of file dMatrix.cc.
References NDArray::abs().
Referenced by SparseMatrix::bsolve(), finverse(), fsolve(), rcond(), and set_format().
boolMatrix Matrix::all | ( | int | dim = -1 | ) | const |
Definition at line 2664 of file dMatrix.cc.
References NDArray::all().
Referenced by octave_range::all().
|
inherited |
Definition at line 588 of file dNDArray.cc.
References Array< double >::test_all(), and xis_int_or_inf_or_nan().
Referenced by set_format().
|
inherited |
Definition at line 582 of file dNDArray.cc.
References Array< double >::test_all(), and xis_zero().
Definition at line 597 of file dNDArray.cc.
References Array< double >::elem(), Array< double >::nelem(), and xisinteger().
Referenced by elem_xpow(), octave_diag_matrix::save_binary(), octave_matrix::save_binary(), octave_matrix::save_hdf5(), and write_mat5_array().
|
inherited |
Definition at line 627 of file dNDArray.cc.
References Array< double >::test_all(), and xisinteger().
boolMatrix Matrix::any | ( | int | dim = -1 | ) | const |
Definition at line 2670 of file dMatrix.cc.
References NDArray::any().
Referenced by octave_range::any().
|
inherited |
Definition at line 570 of file dNDArray.cc.
References mx_inline_all_finite().
Referenced by Fsvd(), EIG::init(), set_format(), and patch::properties::update_data().
|
inherited |
Definition at line 564 of file dNDArray.cc.
References mx_inline_any_nan().
Referenced by octave_sparse_matrix::bool_array_value(), octave_matrix::bool_array_value(), octave_range::bool_array_value(), and NDArray::operator!().
Definition at line 550 of file dNDArray.cc.
References mx_inline_any_negative(), Array< double >::test_all(), and xnegative_sign().
Referenced by do_sqrtm(), and elem_xpow().
Definition at line 557 of file dNDArray.cc.
References mx_inline_any_positive(), Array< double >::test_all(), and xpositive_sign().
|
inherited |
Definition at line 576 of file dNDArray.cc.
References Array< double >::test_all(), and xis_one_or_zero().
Referenced by octave_sparse_matrix::bool_array_value(), octave_matrix::bool_array_value(), and octave_range::bool_array_value().
Definition at line 460 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::cols(), insert(), Matrix(), Array< T >::rows(), and Array< double >::rows().
Referenced by add_point(), end_contour(), and regexp::replace().
Definition at line 478 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T >::length(), Matrix(), and Array< double >::rows().
Matrix Matrix::append | ( | const ColumnVector & | a | ) | const |
Definition at line 496 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T >::length(), Matrix(), and Array< double >::rows().
Matrix Matrix::append | ( | const DiagMatrix & | a | ) | const |
Definition at line 514 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), insert(), DiagArray2< T >::rows(), and Array< double >::rows().
|
inherited |
Indexed assignment (always with resize & fill).
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
staticinherited |
Concatenation along a specified (0-based) dimension, equivalent to cat().
dim = -1 corresponds to dim = 0 and dim = -2 corresponds to dim = 1, but apply the looser matching rules of vertcat/horzcat.
|
inlineinherited |
Definition at line 158 of file dNDArray.h.
References MArray< T >::changesign().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 321 of file Array.h.
Referenced by append(), column_max(), column_min(), determinant(), diag(), fill(), finverse(), fourier(), fourier2d(), fsolve(), ifourier(), ifourier2d(), insert(), is_symmetric(), lssolve(), ltsolve(), operator+=(), operator-=(), operator==(), pseudo_inverse(), rcond(), row_max(), row_min(), stack(), tinverse(), and utsolve().
ColumnVector Matrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 645 of file dMatrix.cc.
References idx_vector::colon, and Array< double >::index().
Referenced by do_mgorth(), QR::insert_col(), solve(), SparseMatrix::solve(), LU::update(), QR::update(), and LU::update_piv().
RowVector Matrix::column_max | ( | void | ) | const |
Definition at line 2900 of file dMatrix.cc.
RowVector Matrix::column_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2907 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::elem(), Array< double >::elem(), octave_NaN, RowVector::resize(), Array< T >::resize(), Array< double >::rows(), and xisnan().
RowVector Matrix::column_min | ( | void | ) | const |
Definition at line 2845 of file dMatrix.cc.
RowVector Matrix::column_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2852 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::elem(), Array< double >::elem(), octave_NaN, RowVector::resize(), Array< T >::resize(), Array< double >::rows(), and xisnan().
|
inlineinherited |
|
staticinherited |
Definition at line 853 of file dNDArray.cc.
References compute_index().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
Definition at line 743 of file dNDArray.cc.
References NDArray::insert(), and Array< T >::numel().
|
inherited |
Definition at line 751 of file dNDArray.cc.
References ComplexNDArray::insert(), and Array< T >::numel().
|
inherited |
Definition at line 760 of file dNDArray.cc.
References d, Array< double >::dims(), Array< double >::elem(), Array< T >::elem(), charNDArray::insert(), max(), NINTbig(), Array< T >::numel(), Array< double >::numel(), and xisnan().
Definition at line 713 of file dNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 719 of file dNDArray.cc.
References mx_inline_cummax().
Definition at line 725 of file dNDArray.cc.
References mx_inline_cummin().
|
inherited |
Definition at line 731 of file dNDArray.cc.
References mx_inline_cummin().
Definition at line 2676 of file dMatrix.cc.
References NDArray::cumprod().
Definition at line 2682 of file dMatrix.cc.
References NDArray::cumsum().
Definition at line 479 of file Array.h.
Referenced by RowVector::operator==(), ColumnVector::operator==(), and operator==().
|
inherited |
Deleting elements.
A(I) = [] (with a single subscript)
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
|
inherited |
Dispatcher to the above two.
DET Matrix::determinant | ( | void | ) | const |
Definition at line 1234 of file dMatrix.cc.
Referenced by determinant(), and Fdet().
DET Matrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1242 of file dMatrix.cc.
References determinant().
DET Matrix::determinant | ( | octave_idx_type & | info, |
double & | rcon, | ||
int | calc_cond = 1 |
||
) | const |
Definition at line 1249 of file dMatrix.cc.
References determinant().
DET Matrix::determinant | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcon, | ||
int | calc_cond = 1 |
||
) | const |
Definition at line 1256 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_unsymmetric(), MatrixType::Rectangular, Array< double >::rows(), base_det< T >::square(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and xnorm().
Matrix Matrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2712 of file dMatrix.cc.
References NDArray::diag().
Referenced by Range::diag(), octave_range::diag(), octave_matrix::diag(), and do_sqrtm().
DiagMatrix Matrix::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 2718 of file dMatrix.cc.
References Array< double >::cols(), current_liboctave_error_handler, and Array< double >::rows().
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Return a const-reference so that dims ()(i) works efficiently.
Definition at line 337 of file Array.h.
Referenced by NDArray::concat(), NDArray::fourier(), NDArray::fourier2d(), NDArray::fourierNd(), NDArray::ifourier(), NDArray::ifourier2d(), and NDArray::ifourierNd().
|
inlineinherited |
Definition at line 380 of file Array.h.
Referenced by NDArray::all_integers(), column_max(), column_min(), NDArray::concat(), determinant(), RowVector::extract(), ColumnVector::extract(), RowVector::extract_n(), ColumnVector::extract_n(), is_symmetric(), Matrix(), RowVector::max(), ColumnVector::max(), RowVector::min(), ColumnVector::min(), operator+=(), operator-=(), row_max(), and row_min().
|
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 620 of file dMatrix.cc.
References Array< double >::index().
Referenced by ft_render::compute_bbox(), Fdlmread(), null(), pseudo_inverse(), and save_three_d().
Matrix Matrix::extract_n | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | nr, | ||
octave_idx_type | nc | ||
) | const |
Definition at line 630 of file dMatrix.cc.
References Array< double >::index().
Referenced by axes::properties::calc_tightbox(), convert_label_position(), convert_text_position(), end_contour(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), uicontrol::properties::get_extent(), figure::properties::map_from_boundingbox(), figure::properties::map_to_boundingbox(), qp(), screen_size_pixels(), axes::properties::update_units(), uicontrol::properties::update_units(), and uipanel::properties::update_units().
Definition at line 413 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::make_unique(), Array< double >::rows(), and Array< double >::xelem().
Referenced by insert().
Matrix & Matrix::fill | ( | double | val, |
octave_idx_type | r1, | ||
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) |
Definition at line 431 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::make_unique(), r2, 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.
|
private |
Definition at line 749 of file dMatrix.cc.
References abs(), Array< double >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::mark_as_rectangular(), RowVector::max(), Array< T >::resize(), row(), Array< double >::rows(), and sum().
Referenced by inverse().
Definition at line 481 of file Array.h.
Referenced by NDArray::fourier(), fourier(), NDArray::fourier2d(), fourier2d(), NDArray::fourierNd(), ltsolve(), NDArray::NDArray(), rcond(), and utsolve().
|
inherited |
Definition at line 100 of file dNDArray.cc.
References Array< double >::dims(), octave_fftw::fft(), Array< T >::fortran_vec(), Array< double >::fortran_vec(), dim_vector::length(), and Array< double >::numel().
Referenced by do_fft().
ComplexMatrix Matrix::fourier | ( | void | ) | const |
Definition at line 909 of file dMatrix.cc.
References Array< double >::cols(), octave_fftw::fft(), Array< T >::fortran_vec(), Array< double >::fortran_vec(), and Array< double >::rows().
ComplexMatrix Matrix::fourier2d | ( | void | ) | const |
Definition at line 968 of file dMatrix.cc.
References Array< double >::cols(), octave_fftw::fftNd(), Array< T >::fortran_vec(), Array< double >::fortran_vec(), and Array< double >::rows().
|
inherited |
Definition at line 200 of file dNDArray.cc.
References Array< double >::dims(), octave_fftw::fftNd(), Array< T >::fortran_vec(), Array< double >::fortran_vec(), and dim_vector::length().
Referenced by do_fftn().
|
private |
Definition at line 1750 of file dMatrix.cc.
References abs(), Array< double >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Full, gripe_singular_matrix(), MatrixType::Hermitian, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), row(), Array< T >::rows(), Array< double >::rows(), sum(), MatrixType::type(), and xisnan().
Referenced by solve().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 131 of file dNDArray.cc.
References Array< double >::dims(), Array< T >::fortran_vec(), octave_fftw::ifft(), dim_vector::length(), and Array< double >::numel().
Referenced by do_fft().
ComplexMatrix Matrix::ifourier | ( | void | ) | const |
Definition at line 938 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::fortran_vec(), octave_fftw::ifft(), and Array< double >::rows().
ComplexMatrix Matrix::ifourier2d | ( | void | ) | const |
Definition at line 980 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::fortran_vec(), octave_fftw::ifftNd(), and Array< double >::rows().
|
inherited |
Definition at line 215 of file dNDArray.cc.
References Array< double >::dims(), Array< T >::fortran_vec(), octave_fftw::ifftNd(), and dim_vector::length().
Referenced by do_fftn().
|
staticinherited |
Definition at line 845 of file dNDArray.cc.
|
inherited |
Indexing without resizing.
Referenced by column(), extract(), extract_n(), and row().
|
inherited |
|
inherited |
Indexing with possible resizing and fill.
|
inherited |
|
inlineinherited |
|
inherited |
Matrix & Matrix::insert | ( | const Matrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 335 of file dMatrix.cc.
References Array< T >::insert().
Matrix & Matrix::insert | ( | const RowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 342 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::elem(), Array< T >::length(), Array< double >::make_unique(), Array< double >::rows(), and Array< double >::xelem().
Matrix & Matrix::insert | ( | const ColumnVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 364 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::elem(), Array< T >::length(), Array< double >::make_unique(), Array< double >::rows(), and Array< double >::xelem().
Matrix & Matrix::insert | ( | const DiagMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 386 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), DiagArray2< T >::elem(), fill(), DiagArray2< T >::length(), Array< double >::make_unique(), DiagArray2< T >::rows(), Array< double >::rows(), and Array< double >::xelem().
|
inherited |
Definition at line 807 of file dNDArray.cc.
References Array< T >::insert().
Referenced by NDArray::concat().
|
inherited |
Definition at line 814 of file dNDArray.cc.
References Array< T >::insert().
|
inherited |
Insert an array into another at a specified position.
If size (a) is [d1 d2 ... dN] and idx is [i1 i2 ... iN], this method is equivalent to x(i1:i1+d1-1, i2:i2+d2-1, ... , iN:iN+dN-1) = a.
|
inherited |
This is just a special case for idx = [r c 0 ...].
Matrix Matrix::inverse | ( | void | ) | const |
Definition at line 651 of file dMatrix.cc.
Referenced by Finv(), inverse(), pseudo_inverse(), axes::properties::update_camera(), and xpow().
Matrix Matrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 660 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | octave_idx_type & | info, |
double & | rcon, | ||
int | force = 0 , |
||
int | calc_cond = 1 |
||
) | const |
Definition at line 668 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 676 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 684 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcon, | ||
int | force = 0 , |
||
int | calc_cond = 1 |
||
) | const |
Definition at line 831 of file dMatrix.cc.
References Array< double >::columns(), finverse(), CHOL::inverse(), MatrixType::is_hermitian(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), Matrix(), octave_Inf, CHOL::rcond(), Array< double >::rows(), tinverse(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
Ordering is auto-detected or can be specified.
Definition at line 92 of file Array-d.cc.
References ASCENDING, DESCENDING, UNSORTED, and xisnan().
Ordering is auto-detected or can be specified.
Definition at line 470 of file Array.h.
Referenced by is_symmetric().
bool Matrix::is_symmetric | ( | void | ) | const |
Definition at line 319 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< double >::is_square(), and Array< double >::rows().
Referenced by G__eigs__(), and EIG::init().
|
inherited |
Definition at line 839 of file dNDArray.cc.
|
inherited |
Definition at line 833 of file dNDArray.cc.
|
inherited |
Definition at line 827 of file dNDArray.cc.
|
inlineinherited |
|
inlineinherited |
Number of elements in the array.
Synonymous with capacity(), nelem(), and numel().
length
() at the Octave interpreter. At the Octave interpreter, the function length
() returns the length of the greatest dimension. This method returns the total number of elements. Definition at line 267 of file Array.h.
Referenced by RowVector::append(), RowVector::fill(), ColumnVector::fill(), RowVector::insert(), ColumnVector::insert(), RowVector::max(), ColumnVector::max(), RowVector::min(), ColumnVector::min(), RowVector::operator==(), ColumnVector::operator==(), operator==(), and ColumnVector::stack().
|
inherited |
Extract a slice from this array as a column vector: A(:)(lo+1:up).
Must be 0 <= lo && up <= numel. May be up < lo.
|
inherited |
Do a binary lookup in a sorted array.
Must not contain NaNs. Mode can be specified or is auto-detected by comparing 1st and last element.
|
inherited |
Ditto, but for an array of values, specializing on the case when values are sorted.
NaNs get the value N.
Definition at line 2240 of file dMatrix.cc.
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2249 of file dMatrix.cc.
References lssolve().
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2257 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 2265 of file dMatrix.cc.
References Array< T >::cols(), Array< double >::cols(), current_liboctave_error_handler, Array< T >::elem(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_FUNC(), F77_XFCN, Array< T >::fortran_vec(), Matrix(), resize(), Array< T >::resize(), Array< T >::rows(), Array< double >::rows(), xilaenv(), and xlog2().
ComplexMatrix Matrix::lssolve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 2399 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexMatrix Matrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2409 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 2418 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 2427 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b | ) | const |
Definition at line 2435 of file dMatrix.cc.
References lssolve().
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2444 of file dMatrix.cc.
References lssolve().
ColumnVector Matrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2452 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 2460 of file dMatrix.cc.
References Array< double >::cols(), current_liboctave_error_handler, Array< T >::elem(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_FUNC(), F77_XFCN, Array< T >::fortran_vec(), Array< T >::length(), ColumnVector::resize(), Array< T >::resize(), Array< double >::rows(), xilaenv(), and xlog2().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2553 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2563 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 2572 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 2581 of file dMatrix.cc.
References ComplexMatrix::lssolve().
|
private |
Definition at line 1656 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< double >::fortran_vec(), Array< T >::fortran_vec(), get_blas_char(), gripe_singular_matrix(), MatrixType::Lower, norm(), MatrixType::Permuted_Lower, Array< double >::rows(), Array< T >::rows(), MatrixType::type(), and xisnan().
Referenced by solve().
Definition at line 104 of file Array.h.
Referenced by RowVector::fill(), ColumnVector::fill(), fill(), RowVector::insert(), ColumnVector::insert(), and insert().
Definition at line 689 of file dNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 695 of file dNDArray.cc.
References mx_inline_max().
Definition at line 701 of file dNDArray.cc.
References mx_inline_min().
|
inherited |
Definition at line 707 of file dNDArray.cc.
References mx_inline_min().
|
inlineinherited |
Number of elements in the array.
Synonymous with capacity(), length(), and numel().
Definition at line 271 of file Array.h.
Referenced by NDArray::all_integers().
|
inherited |
Count nonzero elements.
Returns the n-th element in increasing order, using the same ordering as used for sort.
n can either be a scalar index or a contiguous range.
|
inlineinherited |
Number of elements in the array.
Synonymous with capacity(), length(), and nelem().
Definition at line 275 of file Array.h.
Referenced by NDArray::concat(), NDArray::fourier(), NDArray::fourier2d(), NDArray::ifourier(), and NDArray::ifourier2d().
|
inherited |
Definition at line 541 of file dNDArray.cc.
References NDArray::any_element_is_nan(), gripe_nan_to_logical_conversion(), and mx_inline_not().
bool Matrix::operator!= | ( | const Matrix & | a | ) | const |
Definition at line 313 of file dMatrix.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Matrix & Matrix::operator+= | ( | const DiagMatrix & | a | ) |
Definition at line 2589 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), DiagArray2< T >::elem(), Array< double >::elem(), gripe_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< double >::rows().
Matrix & Matrix::operator-= | ( | const DiagMatrix & | a | ) |
Definition at line 2610 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), DiagArray2< T >::elem(), Array< double >::elem(), gripe_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< double >::rows().
Definition at line 304 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::cols(), Array< T >::data(), Array< double >::data(), Array< double >::length(), mx_inline_equal(), Array< double >::rows(), and Array< T >::rows().
|
inherited |
Returns true if this->dims () == dv, and if so, replaces this->dimensions by a shallow copy of dv.
This is useful for maintaining several arrays with supposedly equal dimensions (e.g. structs in the interpreter).
|
inherited |
Extract page: A(:,:,k+1).
|
inlineinherited |
Definition at line 2688 of file dMatrix.cc.
References NDArray::prod().
Definition at line 870 of file dMatrix.cc.
References Array< double >::cols(), SVD::economy, Array< T >::elem(), ColumnVector::extract(), extract(), DiagMatrix::extract_diag(), inverse(), SVD::left_singular_matrix(), Array< T >::length(), Matrix(), SVD::right_singular_matrix(), Array< double >::rows(), ComplexSVD::sigma, SVD::singular_values(), transpose(), and V.
double Matrix::rcond | ( | void | ) | const |
Definition at line 1392 of file dMatrix.cc.
Referenced by Frcond().
double Matrix::rcond | ( | MatrixType & | mattype | ) | const |
Definition at line 1399 of file dMatrix.cc.
References abs(), Array< double >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< double >::fortran_vec(), Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), norm(), octave_Inf, octave_NaN, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, row(), Array< double >::rows(), sum(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 130 of file dMatrix.h.
References Array< T >::resize().
Referenced by Range::clear_cache(), convert_cdata(), convert_text_position(), QR::delete_col(), QR::delete_row(), CHOL::delete_sym(), LSODE::do_integrate(), octave_stream_list::do_open_file_numbers(), octave_base_stream::do_scanf(), do_scanf_conv(), SparseMatrix::dsolve(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), F__contourc__(), F__luinc__(), Fdlmread(), find_nonzero_elem_idx(), Flu(), SparseMatrix::fsolve(), gammainc(), Gconvhulln(), axes::properties::get_axis_limits(), QR::init(), QRP::init(), CHOL::init(), SVD::init(), CollocWt::init(), QR::insert_col(), QR::insert_row(), CHOL::insert_sym(), DASPK::integrate(), DASSL::integrate(), DASRT::integrate(), lssolve(), SparseMatrix::ltsolve(), regexp::match(), Range::matrix_value(), null(), qp(), qrsolve(), read_mat_binary_data(), octave_class::size(), start_contour(), axes::update_axis_limits(), hggroup::update_axis_limits(), and SparseMatrix::utsolve().
|
inherited |
Referenced by NDArray::NDArray().
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
Resizing (with fill).
|
inlineinherited |
RowVector Matrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 639 of file dMatrix.cc.
References idx_vector::colon, and Array< double >::index().
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), finverse(), ComplexMatrix::finverse(), fsolve(), ComplexMatrix::fsolve(), Gqrinsert(), qp(), rcond(), and read_cell_spec().
ColumnVector Matrix::row_max | ( | void | ) | const |
Definition at line 2790 of file dMatrix.cc.
Referenced by axes::properties::update_camera(), and patch::properties::update_data().
ColumnVector Matrix::row_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2797 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::elem(), Array< double >::elem(), octave_NaN, ColumnVector::resize(), Array< T >::resize(), Array< double >::rows(), and xisnan().
ColumnVector Matrix::row_min | ( | void | ) | const |
Definition at line 2735 of file dMatrix.cc.
Referenced by axes::properties::update_camera().
ColumnVector Matrix::row_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2742 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::elem(), Array< double >::elem(), octave_NaN, ColumnVector::resize(), Array< T >::resize(), Array< double >::rows(), and xisnan().
|
inlineinherited |
Definition at line 313 of file Array.h.
Referenced by append(), column_max(), column_min(), determinant(), diag(), fill(), finverse(), fourier(), fourier2d(), fsolve(), ifourier(), ifourier2d(), insert(), inverse(), is_symmetric(), lssolve(), ltsolve(), operator+=(), operator-=(), operator==(), pseudo_inverse(), rcond(), row_max(), row_min(), stack(), tinverse(), and utsolve().
Matrix Matrix::solve | ( | MatrixType & | typ, |
const Matrix & | b | ||
) | const |
Definition at line 1930 of file dMatrix.cc.
Referenced by solve(), xdiv(), and xleftdiv().
Matrix Matrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1938 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1945 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | MatrixType & | typ, |
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 1952 of file dMatrix.cc.
References blas_conj_trans, blas_trans, fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, lssolve(), ltsolve(), Matrix(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, MatrixType::Rectangular, solve(), transpose(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
ComplexMatrix Matrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b | ||
) | const |
Definition at line 1989 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1997 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2005 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | typ, |
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 2043 of file dMatrix.cc.
References solve(), stack_complex_matrix(), and unstack_complex_matrix().
ColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b | ||
) | const |
Definition at line 2053 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2060 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2068 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | typ, |
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 2075 of file dMatrix.cc.
ComplexColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 2085 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2092 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2100 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | typ, |
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 2108 of file dMatrix.cc.
References ComplexMatrix::solve().
Definition at line 2118 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2126 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2133 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 2139 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 2148 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2155 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2162 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 2170 of file dMatrix.cc.
References ComplexMatrix::solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 2179 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2186 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2193 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 2199 of file dMatrix.cc.
References solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2208 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2215 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2222 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 2230 of file dMatrix.cc.
References ComplexMatrix::solve().
Referenced by SCHUR::init().
|
inherited |
Sort by rows returns only indices.
|
inlineinherited |
Definition at line 139 of file dNDArray.h.
References MArray< T >::squeeze().
Referenced by octave_matrix::squeeze().
Definition at line 532 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::cols(), insert(), Matrix(), Array< T >::rows(), and Array< double >::rows().
Referenced by children_property::do_set(), and qp().
Definition at line 551 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T >::length(), Matrix(), and Array< double >::rows().
Matrix Matrix::stack | ( | const ColumnVector & | a | ) | const |
Definition at line 570 of file dMatrix.cc.
References Array< double >::cols(), insert(), Array< T >::length(), Matrix(), and Array< double >::rows().
Matrix Matrix::stack | ( | const DiagMatrix & | a | ) | const |
Definition at line 589 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), insert(), Matrix(), DiagArray2< T >::rows(), and Array< double >::rows().
Definition at line 2694 of file dMatrix.cc.
References NDArray::sum().
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), finverse(), ComplexMatrix::finverse(), fsolve(), ComplexMatrix::fsolve(), rcond(), and ComplexMatrix::rcond().
Definition at line 2700 of file dMatrix.cc.
References NDArray::sumsq().
Definition at line 714 of file Array.h.
Referenced by NDArray::all_elements_are_int_or_inf_or_nan(), NDArray::all_elements_are_zero(), NDArray::all_integers(), NDArray::any_element_is_negative(), NDArray::any_element_is_positive(), and NDArray::any_element_not_one_or_zero().
Simpler calls.
Definition at line 710 of file Array.h.
Referenced by NDArray::too_large_for_float().
|
private |
Definition at line 691 of file dMatrix.cc.
References Array< double >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Lower, OCTAVE_LOCAL_BUFFER, Array< double >::rows(), and MatrixType::type().
Referenced by inverse().
|
inherited |
Definition at line 633 of file dNDArray.cc.
References Array< double >::test_any(), and xtoo_large_for_float().
Referenced by octave_diag_matrix::save_binary(), octave_matrix::save_binary(), octave_matrix::save_hdf5(), and write_mat5_array().
|
inline |
Definition at line 114 of file dMatrix.h.
References MArray< T >::transpose().
Referenced by do_fftn(), do_sqrtm(), G__delaunayn__(), G__voronoi__(), Gaudiowrite(), Gchol(), Gconvhulln(), SVD::init(), LuAminusSigmaB(), make_cholb(), pseudo_inverse(), SparseQR::SparseQR_rep::Q(), qp(), read_mat_binary_data(), solve(), Sylvester(), patch::properties::update_data(), and xdiv().
|
private |
Definition at line 1562 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< double >::fortran_vec(), Array< T >::fortran_vec(), get_blas_char(), gripe_singular_matrix(), norm(), MatrixType::Permuted_Upper, Array< double >::rows(), Array< T >::rows(), MatrixType::type(), MatrixType::Upper, and xisnan().
Referenced by solve().
|
inlineinherited |
Definition at line 353 of file Array.h.
Referenced by RowVector::fill(), ColumnVector::fill(), fill(), RowVector::insert(), ColumnVector::insert(), insert(), and NDArray::NDArray().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Definition at line 112 of file dMatrix.h.
Referenced by Fdlmread().
|
friend |
Definition at line 614 of file dMatrix.cc.
|
friend |
Definition at line 2955 of file dMatrix.cc.
|
friend |
Definition at line 2970 of file dMatrix.cc.
|
friend |
Definition at line 608 of file dMatrix.cc.
|
protectedinherited |
|
protectedinherited |