GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "CMatrix.h"
Public Types | |
typedef ComplexColumnVector | column_vector_type |
typedef bool(* | compare_fcn_type )(typename ref_param< Complex >::type, typename ref_param< Complex >::type) |
typedef ComplexDiagMatrix | complex_diag_matrix_type |
typedef Complex | complex_elt_type |
typedef ComplexMatrix | complex_matrix_type |
typedef ref_param< Complex >::type | crefT |
typedef Complex | 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 ComplexRowVector | 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 Complex | value_type |
Static Public Member Functions | |
static Array< Complex > | cat (int dim, octave_idx_type n, const Array< Complex > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
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< Complex >::ArrayRep * | rep |
Complex * | slice_data |
octave_idx_type | slice_len |
Private Member Functions | |
ComplexMatrix | finverse (MatrixType &mattype, octave_idx_type &info, double &rcon, bool force, bool calc_cond) const |
ComplexMatrix | fsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | ltsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false, blas_trans_type transt=blas_no_trans) const |
ComplexMatrix | tinverse (MatrixType &mattype, octave_idx_type &info, double &rcon, bool force, bool calc_cond) const |
ComplexMatrix | utsolve (MatrixType &typ, const ComplexMatrix &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 | |
OCTAVE_API ComplexMatrix | conj (const ComplexMatrix &a) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const ComplexMatrix &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, ComplexMatrix &a) |
typedef double ComplexMatrix::real_elt_type |
|
inherited |
typedef void(* ComplexMatrix::solve_singularity_handler)(double rcon) |
|
inline |
Definition at line 61 of file CMatrix.h.
Referenced by fsolve(), inverse(), lssolve(), operator*(), pseudo_inverse(), and xgemm().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 150 of file CMatrix.cc.
References Array< T >::cols(), Array< Complex >::cols(), current_liboctave_error_handler, Array< Complex >::numel(), Array< Complex >::rows(), Array< T >::rows(), and Array< Complex >::xelem().
|
explicit |
Definition at line 74 of file CMatrix.cc.
|
explicit |
Definition at line 78 of file CMatrix.cc.
|
explicit |
Definition at line 82 of file CMatrix.cc.
|
explicit |
Definition at line 86 of file CMatrix.cc.
References DiagArray2< T >::elem(), Array< Complex >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 93 of file CMatrix.cc.
References DiagArray2< T >::elem(), Array< Complex >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 100 of file CMatrix.cc.
References DiagArray2< T >::elem(), Array< Complex >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 107 of file CMatrix.cc.
|
explicit |
Definition at line 111 of file CMatrix.cc.
|
explicit |
Definition at line 115 of file CMatrix.cc.
References DiagArray2< T >::elem(), Array< Complex >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 122 of file CMatrix.cc.
References DiagArray2< T >::elem(), Array< Complex >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 129 of file CMatrix.cc.
References DiagArray2< T >::elem(), Array< Complex >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 138 of file CMatrix.cc.
|
explicit |
Definition at line 142 of file CMatrix.cc.
References Array< T >::cols(), Array< T >::elem(), Array< Complex >::elem(), and Array< T >::rows().
Matrix ComplexMatrix::abs | ( | void | ) | const |
Definition at line 2874 of file CMatrix.cc.
References ComplexNDArray::abs().
Referenced by SparseComplexMatrix::bsolve(), finverse(), fsolve(), and rcond().
boolMatrix ComplexMatrix::all | ( | int | dim = -1 | ) | const |
Definition at line 2832 of file CMatrix.cc.
References ComplexNDArray::all().
|
inherited |
Definition at line 516 of file CNDArray.cc.
References mx_inline_all_real().
Referenced by octave_complex_matrix::bool_array_value(), and octave_complex_matrix::try_narrowing_conversion().
Definition at line 526 of file CNDArray.cc.
References Array< Complex >::elem(), Array< Complex >::numel(), val, and octave::math::x_nint().
Referenced by octave_complex_diag_matrix::save_binary(), octave_complex_matrix::save_binary(), and octave_complex_matrix::save_hdf5().
boolMatrix ComplexMatrix::any | ( | int | dim = -1 | ) | const |
Definition at line 2838 of file CMatrix.cc.
References ComplexNDArray::any().
|
inherited |
Definition at line 508 of file CNDArray.cc.
References mx_inline_all_finite().
Referenced by Fsvd(), EIG::init(), and set_format().
|
inherited |
Definition at line 502 of file CNDArray.cc.
References mx_inline_any_nan().
Referenced by octave_complex_matrix::bool_array_value(), and ComplexNDArray::operator!().
ComplexMatrix ComplexMatrix::append | ( | const Matrix & | a | ) | const |
Definition at line 438 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, retval, Array< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const RowVector & | a | ) | const |
Definition at line 453 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const ColumnVector & | a | ) | const |
Definition at line 468 of file CMatrix.cc.
References Array< Complex >::cols(), current_liboctave_error_handler, insert(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const DiagMatrix & | a | ) | const |
Definition at line 483 of file CMatrix.cc.
References DiagArray2< T >::cols(), Array< Complex >::cols(), current_liboctave_error_handler, retval, DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const ComplexMatrix & | a | ) | const |
Definition at line 498 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, retval, Array< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const ComplexRowVector & | a | ) | const |
Definition at line 513 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const ComplexColumnVector & | a | ) | const |
Definition at line 528 of file CMatrix.cc.
References Array< Complex >::cols(), current_liboctave_error_handler, insert(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::append | ( | const ComplexDiagMatrix & | a | ) | const |
Definition at line 543 of file CMatrix.cc.
References DiagArray2< T >::cols(), Array< Complex >::cols(), current_liboctave_error_handler, retval, DiagArray2< T >::rows(), and Array< Complex >::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 147 of file CNDArray.h.
References MArray< T >::changesign().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 409 of file Array.h.
Referenced by append(), column_max(), column_min(), ComplexMatrix(), determinant(), diag(), fill(), finverse(), fourier(), fourier2d(), fsolve(), ifourier(), ifourier2d(), insert(), is_hermitian(), lssolve(), ltsolve(), operator+=(), operator-=(), operator==(), pseudo_inverse(), rcond(), row_max(), row_min(), stack(), tinverse(), and utsolve().
ComplexColumnVector ComplexMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 711 of file CMatrix.cc.
References idx_vector::colon, and Array< Complex >::index().
Referenced by qr< T >::insert_col(), solve(), SparseComplexMatrix::solve(), lu< T >::update(), qr< T >::update(), and lu< T >::update_piv().
bool ComplexMatrix::column_is_real_only | ( | octave_idx_type | j | ) | const |
Definition at line 2917 of file CMatrix.cc.
References Array< Complex >::elem(), octave::math::imag(), retval, and Array< Complex >::rows().
Referenced by column_max(), and column_min().
ComplexRowVector ComplexMatrix::column_max | ( | void | ) | const |
Definition at line 3161 of file CMatrix.cc.
ComplexRowVector ComplexMatrix::column_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 3168 of file CMatrix.cc.
References abs(), Array< Complex >::cols(), column_is_real_only(), Complex_NaN_result(), Array< T >::elem(), Array< Complex >::elem(), octave::math::isnan(), NaN(), ComplexRowVector::resize(), Array< T >::resize(), result, Array< Complex >::rows(), and tmp.
ComplexRowVector ComplexMatrix::column_min | ( | void | ) | const |
Definition at line 3086 of file CMatrix.cc.
ComplexRowVector ComplexMatrix::column_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 3093 of file CMatrix.cc.
References abs(), Array< Complex >::cols(), column_is_real_only(), Complex_NaN_result(), Array< T >::elem(), Array< Complex >::elem(), octave::math::isnan(), NaN(), ComplexRowVector::resize(), Array< T >::resize(), result, Array< Complex >::rows(), and tmp.
|
inlineinherited |
Definition at line 410 of file Array.h.
Referenced by inverse(), and row_is_real_only().
|
staticinherited |
Definition at line 814 of file CNDArray.cc.
References compute_index().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
Definition at line 637 of file CNDArray.cc.
References ComplexNDArray::insert(), and Array< T >::numel().
|
inherited |
Definition at line 646 of file CNDArray.cc.
References ComplexNDArray::insert(), Array< T >::numel(), and tmp.
|
inherited |
Definition at line 691 of file CNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 697 of file CNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 703 of file CNDArray.cc.
References mx_inline_cummin().
|
inherited |
Definition at line 709 of file CNDArray.cc.
References mx_inline_cummin().
ComplexMatrix ComplexMatrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 2844 of file CMatrix.cc.
References ComplexNDArray::cumprod().
ComplexMatrix ComplexMatrix::cumsum | ( | int | dim = -1 | ) | const |
Definition at line 2850 of file CMatrix.cc.
References ComplexNDArray::cumsum().
Definition at line 582 of file Array.h.
Referenced by fourier(), fourier2d(), ifourier(), ifourier2d(), ComplexRowVector::operator==(), ComplexColumnVector::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.
ComplexDET ComplexMatrix::determinant | ( | void | ) | const |
Definition at line 1298 of file CMatrix.cc.
Referenced by determinant(), and Fdet().
ComplexDET ComplexMatrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1306 of file CMatrix.cc.
References determinant().
ComplexDET ComplexMatrix::determinant | ( | octave_idx_type & | info, |
double & | rcon, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 1313 of file CMatrix.cc.
References determinant().
ComplexDET ComplexMatrix::determinant | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcon, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 1321 of file CMatrix.cc.
References c, Array< Complex >::cols(), Array< Complex >::elem(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, octave::math::isnan(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), MatrixType::Rectangular, retval, Array< Complex >::rows(), base_det< T >::square(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and xnorm().
ComplexMatrix ComplexMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2880 of file CMatrix.cc.
References ComplexNDArray::diag().
Referenced by octave_complex_matrix::diag().
ComplexDiagMatrix ComplexMatrix::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 2886 of file CMatrix.cc.
References Array< Complex >::cols(), and Array< Complex >::rows().
|
inherited |
Definition at line 631 of file CNDArray.cc.
References mx_inline_diff().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Return a const-reference so that dims ()(i) works efficiently.
Definition at line 439 of file Array.h.
Referenced by ComplexNDArray::fourier(), ComplexNDArray::fourier2d(), ComplexNDArray::fourierNd(), ComplexNDArray::ifourier(), ComplexNDArray::ifourier2d(), and ComplexNDArray::ifourierNd().
|
inlineinherited |
Definition at line 482 of file Array.h.
Referenced by ComplexNDArray::all_integers(), column_is_real_only(), column_max(), column_min(), ComplexMatrix(), determinant(), ComplexRowVector::extract(), ComplexColumnVector::extract(), ComplexRowVector::extract_n(), ComplexColumnVector::extract_n(), ComplexNDArray::insert(), insert(), is_hermitian(), ComplexRowVector::max(), ComplexColumnVector::max(), ComplexRowVector::min(), ComplexColumnVector::min(), operator+=(), operator-=(), row_is_real_only(), row_max(), and row_min().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
ComplexMatrix ComplexMatrix::extract | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) | const |
Definition at line 686 of file CMatrix.cc.
References Array< Complex >::index(), and swap.
Referenced by pseudo_inverse().
ComplexMatrix ComplexMatrix::extract_n | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | nr, | ||
octave_idx_type | nc | ||
) | const |
Definition at line 696 of file CMatrix.cc.
References Array< Complex >::index().
ComplexMatrix & ComplexMatrix::fill | ( | double | val | ) |
Definition at line 350 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::make_unique(), Array< Complex >::rows(), val, and Array< Complex >::xelem().
Referenced by insert().
ComplexMatrix & ComplexMatrix::fill | ( | const Complex & | val | ) |
Definition at line 368 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::make_unique(), Array< Complex >::rows(), val, and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::fill | ( | double | val, |
octave_idx_type | r1, | ||
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) |
Definition at line 386 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::make_unique(), Array< Complex >::rows(), swap, val, and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::fill | ( | const Complex & | val, |
octave_idx_type | r1, | ||
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) |
Definition at line 412 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::make_unique(), Array< Complex >::rows(), swap, val, and Array< Complex >::xelem().
|
inherited |
Find indices of (at most n) nonzero elements.
If n is specified, backward specifies search from backward.
|
private |
Definition at line 812 of file CMatrix.cc.
References abs(), Array< Complex >::cols(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T >::fortran_vec(), octave::math::isinf(), octave::math::isnan(), MatrixType::mark_as_rectangular(), RowVector::max(), octave::math::real(), Array< T >::resize(), retval, Matrix::row(), Array< Complex >::rows(), and Matrix::sum().
Referenced by inverse().
Definition at line 584 of file Array.h.
Referenced by ComplexNDArray::fourier(), ComplexNDArray::fourier2d(), ComplexNDArray::fourierNd(), ComplexNDArray::ifourier(), ComplexNDArray::ifourier2d(), ComplexNDArray::ifourierNd(), ltsolve(), ComplexRowVector::operator+=(), ComplexColumnVector::operator+=(), operator+=(), ComplexRowVector::operator-=(), ComplexColumnVector::operator-=(), operator-=(), rcond(), and utsolve().
|
inherited |
Definition at line 58 of file CNDArray.cc.
References Array< Complex >::dims(), dv, octave_fftw::fft(), Array< Complex >::fortran_vec(), Array< T >::fortran_vec(), k, dim_vector::ndims(), Array< Complex >::numel(), and retval.
Referenced by do_fft().
ComplexMatrix ComplexMatrix::fourier | ( | void | ) | const |
Definition at line 980 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::data(), octave_fftw::fft(), Array< T >::fortran_vec(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::fourier2d | ( | void | ) | const |
Definition at line 1038 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::data(), dv, octave_fftw::fftNd(), Array< T >::fortran_vec(), retval, and Array< Complex >::rows().
|
inherited |
Definition at line 160 of file CNDArray.cc.
References Array< Complex >::dims(), dv, octave_fftw::fftNd(), Array< T >::fortran_vec(), Array< Complex >::fortran_vec(), dim_vector::ndims(), and retval.
Referenced by do_fftn().
|
private |
Definition at line 1816 of file CMatrix.cc.
References abs(), b, b_nc, Array< Complex >::cols(), Array< T >::cols(), ComplexMatrix(), current_liboctave_error_handler, F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, octave::math::isinf(), octave::math::isnan(), MatrixType::mark_as_full(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), result, retval, Matrix::row(), Array< T >::rows(), Array< Complex >::rows(), Matrix::sum(), MatrixType::type(), and octave::warn_singular_matrix().
Referenced by solve().
|
inlineinherited |
Definition at line 106 of file MArray.h.
References fcn, and Array< T >::hermitian().
|
inline |
Definition at line 163 of file CMatrix.h.
References conj(), and MArray< T >::hermitian().
Referenced by LuAminusSigmaB(), make_cholb(), oct_unop_hermitian(), pseudo_inverse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), solve(), Sylvester(), and xdiv().
|
inherited |
Performs indexed accumulative addition.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 89 of file CNDArray.cc.
References Array< Complex >::dims(), dv, Array< Complex >::fortran_vec(), Array< T >::fortran_vec(), octave_fftw::ifft(), k, dim_vector::ndims(), Array< Complex >::numel(), and retval.
Referenced by do_fft().
ComplexMatrix ComplexMatrix::ifourier | ( | void | ) | const |
Definition at line 1009 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::data(), Array< T >::fortran_vec(), octave_fftw::ifft(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::ifourier2d | ( | void | ) | const |
Definition at line 1052 of file CMatrix.cc.
References Array< Complex >::cols(), Array< Complex >::data(), dv, Array< T >::fortran_vec(), octave_fftw::ifftNd(), retval, and Array< Complex >::rows().
|
inherited |
Definition at line 175 of file CNDArray.cc.
References Array< Complex >::dims(), dv, Array< Complex >::fortran_vec(), Array< T >::fortran_vec(), octave_fftw::ifftNd(), dim_vector::ndims(), and retval.
Referenced by do_fftn().
|
staticinherited |
Definition at line 806 of file CNDArray.cc.
Referenced by ComplexNDArray::insert().
|
inherited |
Indexing without resizing.
Referenced by column(), extract(), extract_n(), and row().
|
inherited |
|
inherited |
Indexing with possible resizing and fill.
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
Definition at line 745 of file CNDArray.cc.
References c, current_liboctave_error_handler, Array< Complex >::dimensions, Array< T >::dims(), Array< Complex >::elem(), Array< T >::elem(), ComplexNDArray::increment_index(), dim_vector::ndims(), Array< T >::numel(), and ra_idx.
Referenced by ComplexNDArray::concat(), NDArray::concat(), concat(), and insert().
|
inherited |
Definition at line 790 of file CNDArray.cc.
References Array< T >::insert().
|
inherited |
Definition at line 798 of file CNDArray.cc.
References Array< T >::insert().
ComplexMatrix & ComplexMatrix::insert | ( | const Matrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 198 of file CMatrix.cc.
References a_nc, a_nr, Array< T >::cols(), Array< Complex >::cols(), Array< T >::elem(), Array< Complex >::make_unique(), Array< T >::rows(), Array< Complex >::rows(), and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::insert | ( | const RowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 219 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::elem(), Array< Complex >::make_unique(), Array< T >::numel(), Array< Complex >::rows(), and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::insert | ( | const ColumnVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 238 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::elem(), Array< Complex >::make_unique(), Array< T >::numel(), Array< Complex >::rows(), and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::insert | ( | const DiagMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 258 of file CMatrix.cc.
References a_nc, a_nr, DiagArray2< T >::cols(), Array< Complex >::cols(), DiagArray2< T >::elem(), fill(), DiagArray2< T >::length(), Array< Complex >::make_unique(), DiagArray2< T >::rows(), Array< Complex >::rows(), and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::insert | ( | const ComplexMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 283 of file CMatrix.cc.
References ComplexNDArray::insert().
ComplexMatrix & ComplexMatrix::insert | ( | const ComplexRowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 291 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::elem(), Array< Complex >::elem(), Array< T >::numel(), and Array< Complex >::rows().
ComplexMatrix & ComplexMatrix::insert | ( | const ComplexColumnVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 305 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::elem(), Array< Complex >::make_unique(), Array< T >::numel(), Array< Complex >::rows(), and Array< Complex >::xelem().
ComplexMatrix & ComplexMatrix::insert | ( | const ComplexDiagMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 325 of file CMatrix.cc.
References a_nc, a_nr, DiagArray2< T >::cols(), Array< Complex >::cols(), DiagArray2< T >::elem(), fill(), DiagArray2< T >::length(), Array< Complex >::make_unique(), DiagArray2< T >::rows(), Array< Complex >::rows(), and Array< Complex >::xelem().
|
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 ...].
ComplexMatrix ComplexMatrix::inverse | ( | void | ) | const |
Definition at line 717 of file CMatrix.cc.
Referenced by Finv(), inverse(), pseudo_inverse(), and xpow().
ComplexMatrix ComplexMatrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 726 of file CMatrix.cc.
References inverse().
ComplexMatrix ComplexMatrix::inverse | ( | octave_idx_type & | info, |
double & | rcon, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 734 of file CMatrix.cc.
References inverse().
ComplexMatrix ComplexMatrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 742 of file CMatrix.cc.
References inverse().
ComplexMatrix ComplexMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 750 of file CMatrix.cc.
References inverse().
ComplexMatrix ComplexMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcon, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 896 of file CMatrix.cc.
References Array< Complex >::columns(), ComplexMatrix(), finverse(), Inf, octave::math::chol< T >::inverse(), MatrixType::is_hermitian(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), octave::math::chol< T >::rcond(), Array< Complex >::rows(), tinverse(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
|
inlineinherited |
Definition at line 98 of file MArray.h.
References Array< T >::ipermute().
bool ComplexMatrix::is_hermitian | ( | void | ) | const |
Definition at line 177 of file CMatrix.cc.
References Array< Complex >::cols(), conj, Array< Complex >::elem(), Array< Complex >::is_square(), and Array< Complex >::rows().
Referenced by EIG::init().
Ordering is auto-detected or can be specified.
Ordering is auto-detected or can be specified.
Definition at line 573 of file Array.h.
Referenced by is_hermitian().
|
inherited |
Definition at line 733 of file CNDArray.cc.
|
inherited |
Definition at line 727 of file CNDArray.cc.
|
inherited |
Definition at line 721 of file CNDArray.cc.
|
inlineinherited |
|
inlineinherited |
Number of elements in the array.
Synonymous with 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.
|
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.
ComplexMatrix ComplexMatrix::lssolve | ( | const Matrix & | b | ) | const |
Definition at line 2296 of file CMatrix.cc.
Referenced by Matrix::lssolve(), lssolve(), and solve().
ComplexMatrix ComplexMatrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2305 of file CMatrix.cc.
References lssolve().
ComplexMatrix ComplexMatrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2313 of file CMatrix.cc.
References lssolve().
ComplexMatrix ComplexMatrix::lssolve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2321 of file CMatrix.cc.
References lssolve().
ComplexMatrix ComplexMatrix::lssolve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 2328 of file CMatrix.cc.
References lssolve().
ComplexMatrix ComplexMatrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2337 of file CMatrix.cc.
References lssolve().
ComplexMatrix ComplexMatrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2345 of file CMatrix.cc.
References lssolve().
ComplexMatrix ComplexMatrix::lssolve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2353 of file CMatrix.cc.
References b, Array< T >::cols(), Array< Complex >::cols(), ComplexMatrix(), current_liboctave_error_handler, Array< T >::elem(), F77_DBLE_CMPLX_ARG, F77_FUNC(), F77_XFCN, Array< T >::fortran_vec(), octave::math::isinf(), octave::math::isnan(), octave::math::log2(), m, max(), octave::math::real(), resize(), Array< T >::resize(), retval, Array< T >::rows(), Array< Complex >::rows(), s, tmp, octave::warn_singular_matrix(), xilaenv(), and xnorm().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ColumnVector & | b | ) | const |
Definition at line 2506 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2515 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2523 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2531 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2538 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2547 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2556 of file CMatrix.cc.
References lssolve().
ComplexColumnVector ComplexMatrix::lssolve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
double & | rcon | ||
) | const |
Definition at line 2565 of file CMatrix.cc.
References b, Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, Array< T >::elem(), F77_DBLE_CMPLX_ARG, F77_FUNC(), F77_XFCN, Array< T >::fortran_vec(), octave::math::log2(), m, Array< T >::numel(), octave::math::real(), ComplexColumnVector::resize(), Array< T >::resize(), retval, Array< Complex >::rows(), s, tmp, and xilaenv().
|
private |
Definition at line 1726 of file CMatrix.cc.
References b, b_nc, Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CONST_DBLE_CMPLX_ARG, F77_DBLE_CMPLX_ARG, F77_XFCN, Array< Complex >::fortran_vec(), Array< T >::fortran_vec(), get_blas_char(), octave::math::isnan(), MatrixType::Lower, norm(), MatrixType::Permuted_Lower, result, retval, Array< T >::rows(), Array< Complex >::rows(), MatrixType::type(), and octave::warn_singular_matrix().
Referenced by solve().
Definition at line 185 of file Array.h.
Referenced by ComplexRowVector::fill(), ComplexColumnVector::fill(), fill(), ComplexRowVector::insert(), ComplexColumnVector::insert(), and insert().
|
inherited |
Definition at line 667 of file CNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 673 of file CNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 679 of file CNDArray.cc.
References mx_inline_min().
|
inherited |
Definition at line 685 of file CNDArray.cc.
References mx_inline_min().
|
inlineinherited |
|
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.
Definition at line 363 of file Array.h.
Referenced by ComplexNDArray::all_integers(), ComplexRowVector::append(), ComplexMatrix(), ComplexRowVector::fill(), ComplexColumnVector::fill(), ComplexNDArray::fourier(), ComplexNDArray::fourier2d(), ComplexNDArray::ifourier(), ComplexNDArray::ifourier2d(), ComplexRowVector::insert(), ComplexColumnVector::insert(), ComplexRowVector::max(), ComplexColumnVector::max(), ComplexRowVector::min(), ComplexColumnVector::min(), ComplexRowVector::operator+=(), ComplexColumnVector::operator+=(), operator+=(), ComplexRowVector::operator-=(), ComplexColumnVector::operator-=(), operator-=(), ComplexRowVector::operator==(), ComplexColumnVector::operator==(), operator==(), and ComplexColumnVector::stack().
|
inherited |
Definition at line 491 of file CNDArray.cc.
References ComplexNDArray::any_element_is_nan(), octave::err_nan_to_logical_conversion(), and mx_inline_not().
bool ComplexMatrix::operator!= | ( | const ComplexMatrix & | a | ) | const |
Definition at line 171 of file CMatrix.cc.
References a.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
ComplexMatrix & ComplexMatrix::operator+= | ( | const DiagMatrix & | a | ) |
Definition at line 2714 of file CMatrix.cc.
References a_nc, a_nr, DiagArray2< T >::cols(), Array< Complex >::cols(), DiagArray2< T >::elem(), Array< Complex >::elem(), octave::err_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix & ComplexMatrix::operator+= | ( | const ComplexDiagMatrix & | a | ) |
Definition at line 2750 of file CMatrix.cc.
References a_nc, a_nr, DiagArray2< T >::cols(), Array< Complex >::cols(), DiagArray2< T >::elem(), Array< Complex >::elem(), octave::err_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix & ComplexMatrix::operator+= | ( | const Matrix & | a | ) |
Definition at line 2788 of file CMatrix.cc.
References a_nc, a_nr, Array< Complex >::cols(), Array< T >::cols(), d, Array< T >::data(), octave::err_nonconformant(), Array< Complex >::fortran_vec(), mx_inline_add2(), Array< Complex >::numel(), Array< T >::rows(), and Array< Complex >::rows().
ComplexMatrix & ComplexMatrix::operator-= | ( | const DiagMatrix & | a | ) |
Definition at line 2732 of file CMatrix.cc.
References a_nc, a_nr, DiagArray2< T >::cols(), Array< Complex >::cols(), DiagArray2< T >::elem(), Array< Complex >::elem(), octave::err_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix & ComplexMatrix::operator-= | ( | const ComplexDiagMatrix & | a | ) |
Definition at line 2768 of file CMatrix.cc.
References a_nc, a_nr, DiagArray2< T >::cols(), Array< Complex >::cols(), DiagArray2< T >::elem(), Array< Complex >::elem(), octave::err_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix & ComplexMatrix::operator-= | ( | const Matrix & | a | ) |
Definition at line 2809 of file CMatrix.cc.
References a_nc, a_nr, Array< Complex >::cols(), Array< T >::cols(), d, Array< T >::data(), octave::err_nonconformant(), Array< Complex >::fortran_vec(), mx_inline_sub2(), Array< Complex >::numel(), Array< T >::rows(), and Array< Complex >::rows().
bool ComplexMatrix::operator== | ( | const ComplexMatrix & | a | ) | const |
Definition at line 162 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::cols(), Array< T >::data(), Array< Complex >::data(), mx_inline_equal(), Array< Complex >::numel(), Array< Complex >::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 |
|
inlineinherited |
Definition at line 94 of file MArray.h.
References Array< T >::permute().
|
inherited |
ComplexMatrix ComplexMatrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 2856 of file CMatrix.cc.
References ComplexNDArray::prod().
ComplexMatrix ComplexMatrix::pseudo_inverse | ( | double | tol = 0.0 | ) | const |
Definition at line 936 of file CMatrix.cc.
References Array< Complex >::cols(), ComplexMatrix(), Array< T >::elem(), ColumnVector::extract(), extract(), DiagMatrix::extract_diag(), hermitian(), inverse(), octave::math::svd< T >::left_singular_matrix(), Array< T >::numel(), result, retval, octave::math::svd< T >::right_singular_matrix(), Array< Complex >::rows(), octave::math::svd< T >::singular_values(), and V.
double ComplexMatrix::rcond | ( | void | ) | const |
Definition at line 1459 of file CMatrix.cc.
Referenced by Frcond(), ltsolve(), LuAminusSigmaB(), lusolve(), and utsolve().
double ComplexMatrix::rcond | ( | MatrixType & | mattype | ) | const |
Definition at line 1466 of file CMatrix.cc.
References abs(), Array< Complex >::cols(), F77_CONST_DBLE_CMPLX_ARG, F77_DBLE_CMPLX_ARG, F77_XFCN, Array< Complex >::fortran_vec(), Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, Inf, octave::math::isnan(), MatrixType::Lower, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), ComplexRowVector::max(), NaN(), norm(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, row(), Array< Complex >::rows(), Matrix::sum(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
|
inlineinherited |
Definition at line 91 of file MArray.h.
References Array< T >::reshape().
|
inlineinherited |
|
inline |
Definition at line 184 of file CMatrix.h.
References Array< T >::resize().
Referenced by SparseMatrix::bsolve(), octave::math::do_bessel(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), EIG::init(), qrp< T >::init(), qr< T >::init(), lssolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::utsolve(), and SparseMatrix::utsolve().
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
Resizing (with fill).
|
inlineinherited |
ComplexRowVector ComplexMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 705 of file CMatrix.cc.
References idx_vector::colon, and Array< Complex >::index().
Referenced by rcond().
bool ComplexMatrix::row_is_real_only | ( | octave_idx_type | i | ) | const |
Definition at line 2898 of file CMatrix.cc.
References Array< Complex >::columns(), Array< Complex >::elem(), octave::math::imag(), and retval.
ComplexColumnVector ComplexMatrix::row_max | ( | void | ) | const |
Definition at line 3011 of file CMatrix.cc.
ComplexColumnVector ComplexMatrix::row_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 3018 of file CMatrix.cc.
References abs(), Array< Complex >::cols(), Complex_NaN_result(), Array< Complex >::elem(), Array< T >::elem(), octave::math::isnan(), NaN(), ComplexColumnVector::resize(), Array< T >::resize(), result, row_is_real_only(), Array< Complex >::rows(), and tmp.
ComplexColumnVector ComplexMatrix::row_min | ( | void | ) | const |
Definition at line 2936 of file CMatrix.cc.
ComplexColumnVector ComplexMatrix::row_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2943 of file CMatrix.cc.
References abs(), Array< Complex >::cols(), Complex_NaN_result(), Array< Complex >::elem(), Array< T >::elem(), octave::math::isnan(), NaN(), ComplexColumnVector::resize(), Array< T >::resize(), result, row_is_real_only(), Array< Complex >::rows(), and tmp.
|
inlineinherited |
Definition at line 401 of file Array.h.
Referenced by append(), column_is_real_only(), column_max(), column_min(), ComplexMatrix(), determinant(), diag(), fill(), finverse(), fourier(), fourier2d(), fsolve(), ifourier(), ifourier2d(), insert(), inverse(), is_hermitian(), lssolve(), ltsolve(), operator+=(), operator-=(), operator==(), pseudo_inverse(), rcond(), row_max(), row_min(), stack(), tinverse(), and utsolve().
ComplexMatrix ComplexMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b | ||
) | const |
Definition at line 2010 of file CMatrix.cc.
Referenced by Matrix::solve(), solve(), xdiv(), and xleftdiv().
ComplexMatrix ComplexMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2018 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2026 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::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 2033 of file CMatrix.cc.
ComplexMatrix ComplexMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b | ||
) | const |
Definition at line 2042 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2050 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2058 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::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 2065 of file CMatrix.cc.
References blas_conj_trans, blas_trans, fsolve(), MatrixType::Full, MatrixType::Hermitian, hermitian(), MatrixType::Lower, lssolve(), ltsolve(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, MatrixType::Rectangular, retval, solve(), transpose(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
ComplexColumnVector ComplexMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b | ||
) | const |
Definition at line 2103 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2111 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2119 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::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 2126 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 2135 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2143 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2151 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::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 2158 of file CMatrix.cc.
ComplexMatrix ComplexMatrix::solve | ( | const Matrix & | b | ) | const |
Definition at line 2170 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2178 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2185 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::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 2192 of file CMatrix.cc.
ComplexMatrix ComplexMatrix::solve | ( | const ComplexMatrix & | b | ) | const |
Definition at line 2201 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2209 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2216 of file CMatrix.cc.
References solve().
ComplexMatrix ComplexMatrix::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 2223 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 2233 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2241 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2248 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::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 2255 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 2264 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2272 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcon | ||
) | const |
Definition at line 2279 of file CMatrix.cc.
References solve().
ComplexColumnVector ComplexMatrix::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 2286 of file CMatrix.cc.
References solve().
|
inherited |
Sort by rows returns only indices.
|
inlineinherited |
Definition at line 124 of file CNDArray.h.
References MArray< T >::squeeze().
ComplexMatrix ComplexMatrix::stack | ( | const Matrix & | a | ) | const |
Definition at line 558 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, retval, Array< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const RowVector & | a | ) | const |
Definition at line 573 of file CMatrix.cc.
References Array< Complex >::cols(), current_liboctave_error_handler, insert(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const ColumnVector & | a | ) | const |
Definition at line 588 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const DiagMatrix & | a | ) | const |
Definition at line 603 of file CMatrix.cc.
References DiagArray2< T >::cols(), Array< Complex >::cols(), current_liboctave_error_handler, retval, DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const ComplexMatrix & | a | ) | const |
Definition at line 618 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, retval, Array< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const ComplexRowVector & | a | ) | const |
Definition at line 633 of file CMatrix.cc.
References Array< Complex >::cols(), current_liboctave_error_handler, insert(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const ComplexColumnVector & | a | ) | const |
Definition at line 648 of file CMatrix.cc.
References Array< Complex >::cols(), Array< T >::numel(), retval, and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::stack | ( | const ComplexDiagMatrix & | a | ) | const |
Definition at line 663 of file CMatrix.cc.
References DiagArray2< T >::cols(), Array< Complex >::cols(), current_liboctave_error_handler, retval, DiagArray2< T >::rows(), and Array< Complex >::rows().
ComplexMatrix ComplexMatrix::sum | ( | int | dim = -1 | ) | const |
Definition at line 2862 of file CMatrix.cc.
References ComplexNDArray::sum().
ComplexMatrix ComplexMatrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 2868 of file CMatrix.cc.
References ComplexNDArray::sumsq().
Simpler calls.
Definition at line 811 of file Array.h.
Referenced by ComplexNDArray::too_large_for_float().
|
private |
Definition at line 757 of file CMatrix.cc.
References Array< Complex >::cols(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Lower, OCTAVE_LOCAL_BUFFER, retval, Array< Complex >::rows(), and MatrixType::type().
Referenced by inverse().
|
inherited |
Definition at line 577 of file CNDArray.cc.
References Array< Complex >::test_any(), and xtoo_large_for_float().
Referenced by octave_complex_diag_matrix::save_binary(), octave_complex_matrix::save_binary(), and octave_complex_matrix::save_hdf5().
|
inline |
Definition at line 165 of file CMatrix.h.
References MArray< T >::transpose().
Referenced by do_sqrtm(), Gqr(), oct_unop_transpose(), read_mat_binary_data(), solve(), and xdiv().
|
private |
Definition at line 1636 of file CMatrix.cc.
References b, b_nc, Array< Complex >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CONST_DBLE_CMPLX_ARG, F77_DBLE_CMPLX_ARG, F77_XFCN, Array< Complex >::fortran_vec(), Array< T >::fortran_vec(), get_blas_char(), octave::math::isnan(), norm(), MatrixType::Permuted_Upper, result, retval, Array< T >::rows(), Array< Complex >::rows(), MatrixType::type(), MatrixType::Upper, and octave::warn_singular_matrix().
Referenced by solve().
|
inlineinherited |
Definition at line 455 of file Array.h.
Referenced by ComplexMatrix(), ComplexNDArray::ComplexNDArray(), ComplexRowVector::fill(), ComplexColumnVector::fill(), fill(), ComplexRowVector::insert(), ComplexColumnVector::insert(), and insert().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 619 of file CNDArray.cc.
References mx_inline_xsum().
|
friend |
Definition at line 678 of file CMatrix.cc.
Referenced by is_hermitian().
|
friend |
Definition at line 3238 of file CMatrix.cc.
|
friend |
Definition at line 3253 of file CMatrix.cc.
|
protectedinherited |
Definition at line 214 of file Array.h.
Referenced by ComplexNDArray::insert().
|
protectedinherited |