GNU Octave
3.8.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) |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 242 of file dMatrix.cc.
|
explicit |
Definition at line 247 of file dMatrix.cc.
|
explicit |
Definition at line 252 of file dMatrix.cc.
References DiagArray2< T >::elem(), Array< double >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 259 of file dMatrix.cc.
References Array< double >::elem(), PermMatrix::is_col_perm(), PermMatrix::pvec(), and PermMatrix::rows().
|
explicit |
Definition at line 274 of file dMatrix.cc.
|
explicit |
Definition at line 279 of file dMatrix.cc.
References Array< T >::cols(), Array< T >::elem(), Array< double >::elem(), and Array< T >::rows().
Definition at line 2795 of file dMatrix.cc.
Referenced by SparseMatrix::bsolve(), finverse(), fsolve(), rcond(), and set_format().
boolMatrix Matrix::all | ( | int | dim = -1 | ) | const |
Definition at line 2753 of file dMatrix.cc.
References mx_inline_all().
Referenced by octave_range::all().
Definition at line 2706 of file dMatrix.cc.
References Array< double >::test_all(), and xis_int_or_inf_or_nan().
Referenced by set_format().
Definition at line 2715 of file dMatrix.cc.
References Array< double >::elem(), Array< double >::nelem(), and xisinteger().
Referenced by elem_xpow(), and octave_diag_matrix::save_binary().
boolMatrix Matrix::any | ( | int | dim = -1 | ) | const |
Definition at line 2759 of file dMatrix.cc.
References mx_inline_any().
Referenced by octave_range::any().
Definition at line 2694 of file dMatrix.cc.
References mx_inline_all_finite().
Referenced by Fsvd(), EIG::init(), and set_format().
Definition at line 2688 of file dMatrix.cc.
References mx_inline_any_nan().
Referenced by octave_range::bool_array_value(), and operator!().
Definition at line 2674 of file dMatrix.cc.
References mx_inline_any_negative(), Array< double >::test_all(), and xnegative_sign().
Referenced by do_sqrtm(), and elem_xpow().
Definition at line 2681 of file dMatrix.cc.
References mx_inline_any_positive(), Array< double >::test_all(), and xpositive_sign().
Definition at line 2700 of file dMatrix.cc.
References Array< double >::test_all(), and xis_one_or_zero().
Referenced by octave_range::bool_array_value().
Definition at line 444 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::cols(), insert(), Matrix(), Array< T >::rows(), and Array< double >::rows().
Referenced by add_point(), octave_dynamic_loader::do_load_mex(), octave_dynamic_loader::do_load_oct(), end_contour(), and regexp::replace().
Definition at line 462 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 480 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 498 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), insert(), DiagArray2< T >::rows(), and Array< double >::rows().
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
|
staticinherited |
|
inherited |
|
inherited |
Reimplemented in DiagArray2< double >.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Reimplemented in DiagArray2< double >.
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
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(), 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 |
Reimplemented from Array< double >.
Definition at line 629 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().
Definition at line 2989 of file dMatrix.cc.
RowVector Matrix::column_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2996 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().
Definition at line 2934 of file dMatrix.cc.
RowVector Matrix::column_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2941 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 |
Reimplemented in DiagArray2< double >.
Definition at line 314 of file Array.h.
Referenced by inverse().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 2765 of file dMatrix.cc.
References mx_inline_cumprod().
Definition at line 2771 of file dMatrix.cc.
References mx_inline_cumsum().
Reimplemented in DiagArray2< double >.
Definition at line 465 of file Array.h.
Referenced by RowVector::operator==(), ColumnVector::operator==(), and operator==().
|
inherited |
|
inherited |
|
inherited |
Definition at line 1218 of file dMatrix.cc.
Referenced by determinant(), and Fdet().
DET Matrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1226 of file dMatrix.cc.
References determinant().
DET Matrix::determinant | ( | octave_idx_type & | info, |
double & | rcon, | ||
int | calc_cond = 1 |
||
) | const |
Definition at line 1233 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 1240 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 |
Reimplemented from Array< double >.
Definition at line 2801 of file dMatrix.cc.
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 |
Reimplemented from Array< double >.
Definition at line 2807 of file dMatrix.cc.
References Array< double >::cols(), current_liboctave_error_handler, and Array< double >::rows().
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
Definition at line 321 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 366 of file Array.h.
Referenced by NDArray::all_integers(), 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 |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
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 604 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 614 of file dMatrix.cc.
References Array< double >::index().
Referenced by axes::properties::calc_tightbox(), 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 397 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 415 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::make_unique(), r2, Array< double >::rows(), and Array< double >::xelem().
|
inherited |
|
private |
Definition at line 733 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().
Reimplemented in DiagArray2< double >.
Definition at line 467 of file Array.h.
Referenced by NDArray::fourier(), fourier(), NDArray::fourier2d(), fourier2d(), NDArray::fourierNd(), ltsolve(), NDArray::NDArray(), rcond(), and utsolve().
Reimplemented in DiagArray2< double >.
ComplexMatrix Matrix::fourier | ( | void | ) | const |
Definition at line 893 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 952 of file dMatrix.cc.
References Array< double >::cols(), octave_fftw::fftNd(), Array< T >::fortran_vec(), Array< double >::fortran_vec(), and Array< double >::rows().
|
private |
Definition at line 1746 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, 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().
|
inlineinherited |
Reimplemented from Array< double >.
|
inherited |
|
inherited |
ComplexMatrix Matrix::ifourier | ( | void | ) | const |
Definition at line 922 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 964 of file dMatrix.cc.
References Array< double >::cols(), Array< T >::fortran_vec(), octave_fftw::ifftNd(), and Array< double >::rows().
|
inherited |
Referenced by column(), extract(), extract_n(), and row().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
Matrix & Matrix::insert | ( | const Matrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 319 of file dMatrix.cc.
Matrix & Matrix::insert | ( | const RowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 326 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 348 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 370 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 |
|
inherited |
Definition at line 635 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 644 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 652 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 660 of file dMatrix.cc.
References inverse().
Matrix Matrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 668 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 815 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.
|
inlineinherited |
Reimplemented from Array< double >.
Definition at line 92 of file Array-d.cc.
References ASCENDING, DESCENDING, UNSORTED, and xisnan().
Definition at line 456 of file Array.h.
Referenced by is_symmetric().
Definition at line 303 of file dMatrix.cc.
References Array< double >::cols(), Array< double >::elem(), Array< double >::is_square(), and Array< double >::rows().
Referenced by DEFUN_DLD(), and EIG::init().
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
Definition at line 274 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 |
|
inherited |
|
inherited |
Definition at line 2237 of file dMatrix.cc.
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2246 of file dMatrix.cc.
References lssolve().
Matrix Matrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2254 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 2262 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(), and xilaenv().
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(), and xilaenv().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2556 of file dMatrix.cc.
References ComplexMatrix::lssolve().
ComplexColumnVector Matrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2566 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 2575 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 2584 of file dMatrix.cc.
References ComplexMatrix::lssolve().
|
private |
Definition at line 1646 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(), MatrixType::Lower, norm(), MatrixType::Permuted_Lower, Array< T >::rows(), Array< double >::rows(), MatrixType::type(), and xisnan().
Referenced by solve().
Definition at line 110 of file Array.h.
Referenced by RowVector::fill(), ColumnVector::fill(), fill(), RowVector::insert(), ColumnVector::insert(), and insert().
Definition at line 473 of file Array.h.
Referenced by NDArray::matrix_value().
|
inlineinherited |
Reimplemented in DiagArray2< double >.
Definition at line 275 of file Array.h.
Referenced by NDArray::all_integers(), and all_integers().
|
inherited |
Reimplemented in MDiagArray2< double >.
|
inlineinherited |
Reimplemented in DiagArray2< double >.
Definition at line 276 of file Array.h.
Referenced by NDArray::concat(), NDArray::fourier(), NDArray::fourier2d(), NDArray::ifourier(), and NDArray::ifourier2d().
boolMatrix Matrix::operator! | ( | void | ) | const |
Definition at line 2636 of file dMatrix.cc.
References any_element_is_nan(), gripe_nan_to_logical_conversion(), and mx_inline_not().
bool Matrix::operator!= | ( | const Matrix & | a | ) | const |
Definition at line 297 of file dMatrix.cc.
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
|
inlineinherited |
Matrix & Matrix::operator+= | ( | const DiagMatrix & | a | ) |
Definition at line 2592 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 2613 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 78 of file dMatrix.h.
References MArray< T >::operator=().
Definition at line 288 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 |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Reimplemented from Array< double >.
Reimplemented in DiagArray2< double >.
Definition at line 2777 of file dMatrix.cc.
References mx_inline_prod().
Definition at line 854 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.
Definition at line 1376 of file dMatrix.cc.
Referenced by Frcond().
double Matrix::rcond | ( | MatrixType & | mattype | ) | const |
Definition at line 1383 of file dMatrix.cc.
References abs(), Array< double >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), Array< double >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), norm(), octave_Inf, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, row(), Array< double >::rows(), sum(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
|
inlineinherited |
Reimplemented from Array< double >.
|
inlineinherited |
|
inline |
Definition at line 131 of file dMatrix.h.
References Array< T >::resize().
Referenced by Range::clear_cache(), convert_cdata(), convert_text_position(), DEFUN_DLD(), 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__(), Fdlmread(), find_nonzero_elem_idx(), Flu(), Fluinc(), SparseMatrix::fsolve(), gammainc(), 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().
|
inlineinherited |
Definition at line 490 of file Array.h.
Referenced by NDArray::NDArray().
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
RowVector Matrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 623 of file dMatrix.cc.
References idx_vector::colon, and Array< double >::index().
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), DEFUN_DLD(), finverse(), ComplexMatrix::finverse(), fsolve(), ComplexMatrix::fsolve(), qp(), rcond(), and read_cell_spec().
ColumnVector Matrix::row_max | ( | void | ) | const |
Definition at line 2879 of file dMatrix.cc.
Referenced by axes::properties::update_camera().
ColumnVector Matrix::row_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2886 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 2824 of file dMatrix.cc.
Referenced by axes::properties::update_camera().
ColumnVector Matrix::row_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2831 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 |
Reimplemented in DiagArray2< double >.
Definition at line 312 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 1931 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 1939 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 1946 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 1953 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 1990 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1998 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2006 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 2040 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 2050 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2057 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2065 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 2072 of file dMatrix.cc.
ComplexColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 2082 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2089 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 2097 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 2105 of file dMatrix.cc.
References ComplexMatrix::solve().
Definition at line 2115 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2123 of file dMatrix.cc.
References solve().
Matrix Matrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2130 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 2136 of file dMatrix.cc.
References solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 2145 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2152 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexMatrix Matrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2159 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 2167 of file dMatrix.cc.
References ComplexMatrix::solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 2176 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2183 of file dMatrix.cc.
References solve().
ColumnVector Matrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2190 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 2196 of file dMatrix.cc.
References solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2205 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2212 of file dMatrix.cc.
References ComplexMatrix::solve().
ComplexColumnVector Matrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2219 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 2227 of file dMatrix.cc.
References ComplexMatrix::solve().
Referenced by SCHUR::init().
|
inherited |
Reimplemented from Array< double >.
Reimplemented in NDArray.
Definition at line 516 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 535 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 554 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 573 of file dMatrix.cc.
References DiagArray2< T >::cols(), Array< double >::cols(), insert(), Matrix(), DiagArray2< T >::rows(), and Array< double >::rows().
Definition at line 2783 of file dMatrix.cc.
References mx_inline_sum().
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), finverse(), ComplexMatrix::finverse(), fsolve(), ComplexMatrix::fsolve(), rcond(), and ComplexMatrix::rcond().
Definition at line 2789 of file dMatrix.cc.
References mx_inline_sumsq().
Definition at line 687 of file Array.h.
Referenced by NDArray::all_elements_are_int_or_inf_or_nan(), all_elements_are_int_or_inf_or_nan(), NDArray::all_elements_are_zero(), NDArray::all_integers(), NDArray::any_element_is_negative(), any_element_is_negative(), NDArray::any_element_is_positive(), any_element_is_positive(), NDArray::any_element_not_one_or_zero(), and any_element_not_one_or_zero().
Definition at line 683 of file Array.h.
Referenced by NDArray::too_large_for_float(), and too_large_for_float().
|
private |
Definition at line 675 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().
Definition at line 2745 of file dMatrix.cc.
References Array< double >::test_any(), and xtoo_large_for_float().
Referenced by octave_diag_matrix::save_binary().
Reimplemented from MArray< double >.
Definition at line 115 of file dMatrix.h.
References MArray< T >::transpose().
Referenced by DEFUN_DLD(), do_fftn(), do_sqrtm(), SVD::init(), LuAminusSigmaB(), make_cholb(), pseudo_inverse(), SparseQR::SparseQR_rep::Q(), qp(), read_mat_binary_data(), solve(), Sylvester(), and xdiv().
|
private |
Definition at line 1546 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(), norm(), MatrixType::Permuted_Upper, Array< double >::rows(), Array< T >::rows(), MatrixType::type(), MatrixType::Upper, and xisnan().
Referenced by solve().
|
inlineinherited |
Definition at line 339 of file Array.h.
Referenced by RowVector::fill(), ColumnVector::fill(), fill(), RowVector::insert(), ColumnVector::insert(), insert(), and NDArray::NDArray().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Reimplemented in DiagArray2< double >.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Definition at line 113 of file dMatrix.h.
Referenced by Fdlmread().
|
friend |
Definition at line 598 of file dMatrix.cc.
|
friend |
Definition at line 3044 of file dMatrix.cc.
|
friend |
Definition at line 3059 of file dMatrix.cc.
|
friend |
Definition at line 592 of file dMatrix.cc.
|
protectedinherited |
|
protectedinherited |