#include "CSparse.h"
Public Types | |
typedef ComplexMatrix | dense_matrix_type |
typedef T | element_type |
typedef void(* | solve_singularity_handler) (double rcond) |
Static Public Member Functions | |
static OCTAVE_API Sparse< T, Alloc > | cat (int dim, octave_idx_type n, const Sparse< T, Alloc > *sparse_list) |
Protected Member Functions | |
void | make_unique (void) |
Protected Attributes | |
dim_vector | m_dimensions |
Sparse< T, Alloc >::SparseRep * | m_rep |
Private Member Functions | |
ComplexMatrix | bsolve (MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | bsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | bsolve (MatrixType &mattype, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | bsolve (MatrixType &mattype, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | dinverse (MatrixType &mattype, octave_idx_type &info, double &rcond, const bool force=false, const bool calccond=true) const |
ComplexMatrix | dsolve (MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | dsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | dsolve (MatrixType &mattype, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | dsolve (MatrixType &mattype, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
void * | factorize (octave_idx_type &err, double &rcond, Matrix &Control, Matrix &Info, solve_singularity_handler sing_handler, bool calc_cond) const |
ComplexMatrix | fsolve (MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | fsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | fsolve (MatrixType &mattype, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | fsolve (MatrixType &mattype, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | ltsolve (MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | ltsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | ltsolve (MatrixType &mattype, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | ltsolve (MatrixType &mattype, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | tinverse (MatrixType &mattype, octave_idx_type &info, double &rcond, const bool force=false, const bool calccond=true) const |
ComplexMatrix | trisolve (MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | trisolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | trisolve (MatrixType &mattype, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | trisolve (MatrixType &mattype, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | utsolve (MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
ComplexMatrix | utsolve (MatrixType &mattype, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | utsolve (MatrixType &mattype, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
SparseComplexMatrix | utsolve (MatrixType &mattype, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
Static Private Member Functions | |
static OCTAVE_API Sparse< T, Alloc >::SparseRep * | nil_rep (void) |
Friends | |
OCTAVE_API SparseComplexMatrix | conj (const SparseComplexMatrix &a) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const SparseComplexMatrix &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, SparseComplexMatrix &a) |
|
inherited |
typedef void(* SparseComplexMatrix::solve_singularity_handler) (double rcond) |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
explicit |
Definition at line 73 of file CSparse.cc.
|
explicit |
Definition at line 77 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), and Sparse< T, Alloc >::ridx().
|
explicit |
Definition at line 93 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), DiagArray2< T >::cols(), Sparse< T, Alloc >::data(), DiagArray2< T >::length(), and Sparse< T, Alloc >::ridx().
|
inline |
SparseMatrix SparseComplexMatrix::abs | ( | void | ) | const |
Definition at line 7420 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
SparseBoolMatrix SparseComplexMatrix::all | ( | int | dim = -1 | ) | const |
Definition at line 7361 of file CSparse.cc.
References SPARSE_ALL_OP.
bool SparseComplexMatrix::all_elements_are_real | ( | void | ) | const |
Definition at line 7305 of file CSparse.cc.
References Sparse< T, Alloc >::data(), mx_inline_all_real(), and Sparse< T, Alloc >::nnz().
Referenced by octave_sparse_complex_matrix::sparse_bool_matrix_value(), and octave_sparse_complex_matrix::try_narrowing_conversion().
bool SparseComplexMatrix::all_integers | ( | double & | max_val, |
double & | min_val | ||
) | const |
Definition at line 7315 of file CSparse.cc.
References Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), real(), and x_nint().
Referenced by octave_sparse_complex_matrix::save_binary().
SparseBoolMatrix SparseComplexMatrix::any | ( | int | dim = -1 | ) | const |
Definition at line 7367 of file CSparse.cc.
References SPARSE_ANY_OP.
bool SparseComplexMatrix::any_element_is_inf_or_nan | ( | void | ) | const |
Definition at line 7288 of file CSparse.cc.
References Sparse< T, Alloc >::data(), isinf(), isnan(), and Sparse< T, Alloc >::nnz().
bool SparseComplexMatrix::any_element_is_nan | ( | void | ) | const |
Definition at line 7273 of file CSparse.cc.
References Sparse< T, Alloc >::data(), isnan(), and Sparse< T, Alloc >::nnz().
Referenced by operator!(), and octave_sparse_complex_matrix::sparse_bool_matrix_value().
|
inherited |
Definition at line 2766 of file Sparse.cc.
References Array< T, Alloc >::xelem().
Referenced by Sparse< T, Alloc >::assign(), binmap(), matrix_value(), and SparseMatrix::matrix_value().
|
inherited |
Definition at line 2044 of file Sparse.cc.
References Sparse< T, Alloc >::assign(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::columns(), Sparse< T, Alloc >::data(), err_nonconformant(), Sparse< T, Alloc >::index(), m, mx_inline_add(), mx_inline_add2(), n, Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER_INIT, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), transpose(), and Sparse< T, Alloc >::transpose().
|
inherited |
|
inherited |
Definition at line 1879 of file Sparse.cc.
References Sparse< T, Alloc >::array_value(), Array< T, Alloc >::assign(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::dims(), err_nonconformant(), Array< T, Alloc >::fortran_vec(), Sparse< T, Alloc >::index(), lblookup(), mx_inline_add(), n, Sparse< T, Alloc >::nnz(), numel(), Sparse< T, Alloc >::numel(), Sparse< T, Alloc >::reshape(), and Sparse< T, Alloc >::ridx().
Referenced by Sparse< T, Alloc >::assign(), octave_base_sparse< T >::assign(), and Sparse< T, Alloc >::cat().
|
inherited |
|
private |
Definition at line 4930 of file CSparse.cc.
References abs(), ComplexMatrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), ComplexMatrix, Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), MatrixType::nlower(), MatrixType::nupper(), Sparse< T, Alloc >::ridx(), Matrix::row(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), Matrix::sum(), MatrixType::type(), and warn_singular_matrix().
|
private |
Definition at line 4321 of file CSparse.cc.
References abs(), ComplexMatrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), ComplexMatrix, Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), MatrixType::nlower(), MatrixType::nupper(), Sparse< T, Alloc >::ridx(), Matrix::row(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), Matrix::sum(), MatrixType::type(), and warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 5197 of file CSparse.cc.
References SparseComplexMatrix(), abs(), ComplexMatrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), Sparse< T, Alloc >::maybe_compress(), MatrixType::nlower(), Sparse< T, Alloc >::nnz(), MatrixType::nupper(), OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::ridx(), Matrix::row(), Sparse< T, Alloc >::rows(), Matrix::sum(), MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 4591 of file CSparse.cc.
References SparseComplexMatrix(), abs(), ComplexMatrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), Sparse< T, Alloc >::maybe_compress(), MatrixType::nlower(), Sparse< T, Alloc >::nnz(), MatrixType::nupper(), OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::ridx(), Matrix::row(), Sparse< T, Alloc >::rows(), Matrix::sum(), MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inlineinherited |
Definition at line 364 of file Sparse.h.
References Sparse< T, Alloc >::cols(), and Sparse< T, Alloc >::nzmax().
Referenced by octave_base_sparse< T >::byte_size().
|
staticinherited |
Definition at line 2666 of file Sparse.cc.
References Sparse< T, Alloc >::assign(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::columns(), dim_vector::concat(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::dims(), dim_vector::hvcat(), Sparse< T, Alloc >::isempty(), n, Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Referenced by single_type_concat().
|
inlineinherited |
Definition at line 556 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::change_length(), Sparse< T, Alloc >::m_rep, Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::nnz().
Referenced by SparseBoolMatrix::any(), bsolve(), SparseMatrix::bsolve(), fsolve(), SparseMatrix::fsolve(), Sparse< T, Alloc >::index(), ltsolve(), SparseMatrix::ltsolve(), SparseBoolMatrix::sum(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), and SparseMatrix::utsolve().
|
inlineinherited |
Definition at line 446 of file Sparse.h.
References compute_index(), elem, ra_idx, and Sparse< T, Alloc >::range_error().
|
inlineinherited |
Definition at line 502 of file Sparse.h.
References compute_index(), Sparse< T, Alloc >::elem(), ra_idx, and Sparse< T, Alloc >::range_error().
|
inlineinherited |
Definition at line 435 of file Sparse.h.
References Sparse< T, Alloc >::dim1(), Sparse< T, Alloc >::dim2(), Sparse< T, Alloc >::make_unique(), Sparse< T, Alloc >::range_error(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 494 of file Sparse.h.
References Sparse< T, Alloc >::dim1(), Sparse< T, Alloc >::dim2(), Sparse< T, Alloc >::range_error(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 424 of file Sparse.h.
References Sparse< T, Alloc >::make_unique(), n, numel(), Sparse< T, Alloc >::range_error(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 486 of file Sparse.h.
References n, numel(), Sparse< T, Alloc >::range_error(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 597 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::cidx(), Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::make_unique().
|
inlineinherited |
Definition at line 605 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::ccidx(), and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
Definition at line 596 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_cidx, Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::make_unique().
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), SparseComplexMatrix(), SparseMatrix::SparseMatrix(), abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), column(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), fsolve(), SparseMatrix::fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_col_index(), hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), inverse(), SparseMatrix::inverse(), ishermitian(), SparseMatrix::issymmetric(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_jc(), min(), SparseMatrix::min(), min(), operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), prod(), SparseMatrix::prod(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), times_or_divide(), times_or_divides(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), and xpow().
|
inlineinherited |
Definition at line 607 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_cidx, and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
Definition at line 352 of file Sparse.h.
References Sparse< T, Alloc >::dim2().
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix(), SparseMatrix::SparseMatrix(), abs(), Sparse< T, Alloc >::assign(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::byte_size(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseBoolMatrix::concat(), concat(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), determinant(), SparseMatrix::determinant(), dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), F__ilu0__(), F__iluc__(), F__ilutp__(), factorize(), SparseMatrix::factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), hermitian(), Sparse< T, Alloc >::insert(), inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::isempty(), ishermitian(), SparseMatrix::issymmetric(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), operator==(), SparseMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), save_mat5_binary_element(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and xpow().
ComplexColumnVector SparseComplexMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 534 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
|
inlineinherited |
Definition at line 353 of file Sparse.h.
References Sparse< T, Alloc >::dim2().
Referenced by Sparse< T, Alloc >::assign(), Sparse< T, Alloc >::cat(), row(), and SparseMatrix::row().
|
inherited |
Definition at line 735 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
SparseComplexMatrix SparseComplexMatrix::concat | ( | const SparseComplexMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 580 of file CSparse.cc.
References Sparse< T, Alloc >::cols(), insert(), ra_idx, and Sparse< T, Alloc >::rows().
Referenced by oct_catop_scm_cm(), oct_catop_scm_cs(), oct_catop_scm_m(), and oct_catop_scm_s().
SparseComplexMatrix SparseComplexMatrix::concat | ( | const SparseMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 590 of file CSparse.cc.
References Sparse< T, Alloc >::cols(), insert(), ra_idx, and Sparse< T, Alloc >::rows().
SparseComplexMatrix SparseComplexMatrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 7373 of file CSparse.cc.
References SPARSE_CUMPROD.
SparseComplexMatrix SparseComplexMatrix::cumsum | ( | int | dim = -1 | ) | const |
|
inlineinherited |
Definition at line 575 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::make_unique().
|
inlineinherited |
Definition at line 579 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), and Sparse< T, Alloc >::m_rep.
Definition at line 574 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_data, Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::make_unique().
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), sparse_lu< lu_type >::sparse_lu(), SparseComplexMatrix(), SparseMatrix::SparseMatrix(), abs(), SparseMatrix::abs(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), all_elements_are_real(), SparseMatrix::all_elements_are_zero(), all_integers(), SparseMatrix::all_integers(), SparseBoolMatrix::any(), any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), any_element_is_nan(), SparseMatrix::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::any_element_not_one_or_zero(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), column(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), determinant(), SparseMatrix::determinant(), dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), fsolve(), SparseMatrix::fsolve(), Fsymbfact(), hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), ishermitian(), SparseMatrix::issymmetric(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_data(), min(), SparseMatrix::min(), min(), operator-(), SparseBoolMatrix::operator==(), operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), Sparse< T, Alloc >::test(), times_or_divide(), times_or_divides(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), and xpow().
Definition at line 581 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_data, and Sparse< T, Alloc >::m_rep.
|
inherited |
Definition at line 1196 of file Sparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), err_del_index_out_of_range(), lblookup(), mx_inline_sub(), numel(), OCTAVE_LOCAL_BUFFER, r, Sparse< T, Alloc >::ridx(), and transpose().
Referenced by Sparse< T, Alloc >::delete_elements().
|
inherited |
Definition at line 1298 of file Sparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::delete_elements(), err_del_index_out_of_range(), mx_inline_sub(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), transpose(), and Sparse< T, Alloc >::transpose().
|
inherited |
Definition at line 1419 of file Sparse.cc.
References current_liboctave_error_handler.
ComplexDET SparseComplexMatrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1079 of file CSparse.cc.
References determinant().
ComplexDET SparseComplexMatrix::determinant | ( | octave_idx_type & | info, |
double & | rcond, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 1086 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::fortran_vec(), isnan(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), to_suitesparse_intptr(), and UMFPACK_ZNAME.
ComplexDET SparseComplexMatrix::determinant | ( | void | ) | const |
Definition at line 1071 of file CSparse.cc.
Referenced by determinant().
SparseComplexMatrix SparseComplexMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 7440 of file CSparse.cc.
References MSparse< T >::diag().
|
inlineinherited |
Definition at line 348 of file Sparse.h.
References Sparse< T, Alloc >::m_dimensions.
Referenced by Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::issquare(), and Sparse< T, Alloc >::rows().
|
inlineinherited |
Definition at line 349 of file Sparse.h.
References Sparse< T, Alloc >::m_dimensions.
Referenced by Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::columns(), and Sparse< T, Alloc >::issquare().
|
inlineinherited |
Definition at line 371 of file Sparse.h.
References Sparse< T, Alloc >::m_dimensions.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), Sparse< T, Alloc >::assign(), binmap(), Sparse< T, Alloc >::cat(), octave_base_sparse< T >::dims(), elem_xpow(), Fcomplex(), map_2_xldexp_sparse(), max(), SparseMatrix::max(), min(), and SparseMatrix::min().
|
private |
Definition at line 684 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), MatrixType::Diagonal, Inf, MatrixType::info(), MatrixType::Permuted_Diagonal, Sparse< T, Alloc >::rows(), transpose(), and MatrixType::type().
Referenced by inverse().
|
private |
Definition at line 1371 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::Diagonal, Inf, MatrixType::info(), MatrixType::Permuted_Diagonal, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), and MatrixType::type().
|
private |
Definition at line 1222 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::Diagonal, Inf, MatrixType::info(), MatrixType::Permuted_Diagonal, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), and MatrixType::type().
Referenced by solve().
|
private |
Definition at line 1431 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::Diagonal, Inf, MatrixType::info(), Sparse< T, Alloc >::nnz(), MatrixType::Permuted_Diagonal, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::type(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 1281 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::Diagonal, Inf, MatrixType::info(), Sparse< T, Alloc >::nnz(), MatrixType::Permuted_Diagonal, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::type(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inlineinherited |
Definition at line 468 of file Sparse.h.
References compute_index(), Sparse< T, Alloc >::elem(), and ra_idx.
|
inlineinherited |
Definition at line 516 of file Sparse.h.
References compute_index(), Sparse< T, Alloc >::elem(), and ra_idx.
|
inlineinherited |
Definition at line 462 of file Sparse.h.
References Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 514 of file Sparse.h.
References Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 456 of file Sparse.h.
References Sparse< T, Alloc >::make_unique(), n, and Sparse< T, Alloc >::xelem().
Referenced by bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::elem(), fsolve(), SparseMatrix::fsolve(), max(), SparseMatrix::max(), min(), SparseMatrix::min(), plus_or_minus(), product(), and quotient().
|
inlineinherited |
Definition at line 512 of file Sparse.h.
References n, and Sparse< T, Alloc >::xelem().
|
private |
Definition at line 5544 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::fortran_vec(), isnan(), Matrix, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), to_suitesparse_intptr(), UMFPACK_ZNAME, and warn_singular_matrix().
Referenced by fsolve().
|
private |
Definition at line 6204 of file CSparse.cc.
References A, B, CHOLMOD_NAME, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::data(), factorize(), Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< T, Alloc >::nnz(), ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), solve(), SparseCholError(), SparseCholPrint(), to_suitesparse_intptr(), MatrixType::type(), UMFPACK_ZNAME, warn_singular_matrix(), and Array< T, Alloc >::xelem().
|
private |
Definition at line 5675 of file CSparse.cc.
References A, B, CHOLMOD_NAME, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::data(), Array< T, Alloc >::elem(), factorize(), Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), solve(), SparseCholError(), SparseCholPrint(), to_suitesparse_intptr(), MatrixType::type(), UMFPACK_ZNAME, warn_singular_matrix(), and Array< T, Alloc >::xelem().
Referenced by solve().
|
private |
Definition at line 6422 of file CSparse.cc.
References SparseComplexMatrix(), A, B, Sparse< T, Alloc >::change_capacity(), CHOLMOD_NAME, Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), factorize(), Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), solve(), SparseCholError(), SparseCholPrint(), to_suitesparse_intptr(), MatrixType::type(), UMFPACK_ZNAME, warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 5914 of file CSparse.cc.
References SparseComplexMatrix(), A, B, Sparse< T, Alloc >::change_capacity(), CHOLMOD_NAME, Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), factorize(), Array< T, Alloc >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), solve(), SparseCholError(), SparseCholPrint(), to_suitesparse_intptr(), MatrixType::type(), UMFPACK_ZNAME, warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inlineinherited |
Definition at line 356 of file Sparse.h.
References Sparse< T, Alloc >::cidx().
|
inlineinherited |
Definition at line 355 of file Sparse.h.
References Sparse< T, Alloc >::ridx().
SparseComplexMatrix SparseComplexMatrix::hermitian | ( | void | ) | const |
Definition at line 606 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), conj, Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Referenced by inverse(), LuAminusSigmaB(), make_cholb(), oct_unop_hermitian(), and xdiv().
|
inherited |
Definition at line 1432 of file Sparse.cc.
References Array< T, Alloc >::as_matrix(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::data(), elem, err_index_out_of_range(), Array< T, Alloc >::index(), Sparse< T, Alloc >::index(), lblookup(), mx_inline_sub(), numel(), dim_vector::redim(), Sparse< T, Alloc >::resize1(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse, Array< T, Alloc >::transpose(), Sparse< T, Alloc >::transpose(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), Array< T, Alloc >::xelem(), and Sparse< T, Alloc >::xridx().
Referenced by Sparse< T, Alloc >::assign(), F__ilutp__(), SparseBoolMatrix::index(), and Sparse< T, Alloc >::index().
|
inherited |
Definition at line 1633 of file Sparse.cc.
References Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), err_index_out_of_range(), Sparse< T, Alloc >::index(), lblookup(), m, mx_inline_sub(), n, OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), transpose(), Sparse< T, Alloc >::transpose(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inlineinherited |
Definition at line 749 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::indices_ok(), and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
|
inherited |
Definition at line 1125 of file Sparse.cc.
References octave_base_value::numel(), and ra_idx.
|
inherited |
Definition at line 1042 of file Sparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), r, Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Referenced by MSparse< T >::insert(), and SparseBoolMatrix::insert().
SparseComplexMatrix & SparseComplexMatrix::insert | ( | const SparseComplexMatrix & | a, |
const Array< octave_idx_type > & | indx | ||
) |
Definition at line 572 of file CSparse.cc.
References MSparse< T >::insert().
SparseComplexMatrix & SparseComplexMatrix::insert | ( | const SparseComplexMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 556 of file CSparse.cc.
References MSparse< T >::insert(), and r.
Referenced by concat(), SparseMatrix::concat(), and insert().
SparseComplexMatrix & SparseComplexMatrix::insert | ( | const SparseMatrix & | a, |
const Array< octave_idx_type > & | indx | ||
) |
Definition at line 564 of file CSparse.cc.
References insert().
SparseComplexMatrix & SparseComplexMatrix::insert | ( | const SparseMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 548 of file CSparse.cc.
SparseComplexMatrix SparseComplexMatrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 669 of file CSparse.cc.
References inverse().
SparseComplexMatrix SparseComplexMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 677 of file CSparse.cc.
References inverse().
SparseComplexMatrix SparseComplexMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcond, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 985 of file CSparse.cc.
References SparseComplexMatrix(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), MatrixType::Diagonal, dinverse(), hermitian(), Inf, MatrixType::ishermitian(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), n, Sparse< T, Alloc >::nnz(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, Q, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), sparse_lu< SparseComplexMatrix >, tinverse(), transpose(), MatrixType::transpose(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
SparseComplexMatrix SparseComplexMatrix::inverse | ( | void | ) | const |
Definition at line 660 of file CSparse.cc.
SparseComplexMatrix SparseComplexMatrix::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const |
Definition at line 7265 of file CSparse.cc.
References MSparse< T >::ipermute().
|
inlineinherited |
Definition at line 570 of file Sparse.h.
References Sparse< T, Alloc >::cols(), and Sparse< T, Alloc >::rows().
Referenced by Sparse< T, Alloc >::cat(), and LuAminusSigmaB().
bool SparseComplexMatrix::ishermitian | ( | void | ) | const |
Definition at line 142 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), conj, Sparse< T, Alloc >::data(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Referenced by F__eigs__().
|
inlineinherited |
Definition at line 568 of file Sparse.h.
References Sparse< T, Alloc >::dim1(), and Sparse< T, Alloc >::dim2().
|
private |
Definition at line 3094 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::Lower, MatrixType::mark_as_rectangular(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), warn_singular_matrix(), and Array< T, Alloc >::xelem().
|
private |
Definition at line 2544 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::Lower, MatrixType::mark_as_rectangular(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), warn_singular_matrix(), and Array< T, Alloc >::xelem().
Referenced by solve().
|
private |
Definition at line 3346 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::Lower, MatrixType::mark_as_rectangular(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 2793 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::Lower, MatrixType::mark_as_rectangular(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inlineprotectedinherited |
Definition at line 234 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_count, Sparse< T, Alloc >::m_rep, and r.
Referenced by Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::elem(), Sparse< T, Alloc >::maybe_compress(), and Sparse< T, Alloc >::ridx().
|
inlineinherited |
Definition at line 685 of file Sparse.h.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
ComplexMatrix SparseComplexMatrix::matrix_value | ( | void | ) | const |
Definition at line 600 of file CSparse.cc.
References Sparse< T, Alloc >::array_value().
Referenced by octave_sparse_complex_matrix::complex_array_value(), octave_sparse_complex_matrix::complex_matrix_value(), and octave_sparse_complex_matrix::matrix_value().
SparseComplexMatrix SparseComplexMatrix::max | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 193 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::cidx(), Complex_NaN_result(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::dims(), Array< T, Alloc >::elem(), Sparse< T, Alloc >::elem(), dim_vector::first_non_singleton(), isnan(), NaN, dim_vector::ndims(), OCTAVE_LOCAL_BUFFER, Array< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
SparseComplexMatrix SparseComplexMatrix::max | ( | int | dim = -1 | ) | const |
Definition at line 186 of file CSparse.cc.
|
inlineinherited |
Definition at line 531 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::SparseRep::maybe_compress().
Referenced by binmap(), bsolve(), SparseMatrix::bsolve(), elem_xpow(), fsolve(), SparseMatrix::fsolve(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), and SparseMatrix::utsolve().
SparseComplexMatrix SparseComplexMatrix::min | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 350 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::cidx(), Complex_NaN_result(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::dims(), Array< T, Alloc >::elem(), Sparse< T, Alloc >::elem(), dim_vector::first_non_singleton(), isnan(), NaN, dim_vector::ndims(), OCTAVE_LOCAL_BUFFER, Array< T, Alloc >::resize(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
SparseComplexMatrix SparseComplexMatrix::min | ( | int | dim = -1 | ) | const |
Definition at line 343 of file CSparse.cc.
|
inlineinherited |
Definition at line 609 of file Sparse.h.
References Sparse< T, Alloc >::m_dimensions, and dim_vector::ndims().
Referenced by octave_base_sparse< T >::octave_base_sparse().
|
inlineinherited |
Actual number of nonzero terms.
Definition at line 339 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::nnz().
Referenced by MatrixType::MatrixType(), SparseComplexMatrix(), SparseMatrix::SparseMatrix(), abs(), SparseMatrix::abs(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), all_elements_are_real(), SparseMatrix::all_elements_are_zero(), all_integers(), SparseMatrix::all_integers(), any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), any_element_is_nan(), SparseMatrix::any_element_is_nan(), Sparse< T, Alloc >::SparseRep::any_element_is_nan(), Sparse< T >::SparseRep::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::any_element_not_one_or_zero(), Sparse< T, Alloc >::assign(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::delete_elements(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), elem_xpow(), Fccolamd(), Fcolamd(), Fcomplex(), find_nonzero_elem_idx(), fsolve(), SparseMatrix::fsolve(), Fsymbfact(), hermitian(), octave_sparse_matrix::index_vector(), Sparse< T, Alloc >::insert(), inverse(), SparseMatrix::inverse(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), max(), min(), octave_base_sparse< T >::nnz(), operator!(), SparseMatrix::operator!(), operator-(), SparseBoolMatrix::operator==(), operator==(), SparseMatrix::operator==(), plus_or_minus(), product(), quotient(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), Sparse< T, Alloc >::test(), times_or_divide(), times_or_divides(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and xpow().
|
inlineinherited |
Definition at line 343 of file Sparse.h.
References Sparse< T, Alloc >::m_dimensions, and dim_vector::safe_numel().
Referenced by Sparse< T, Alloc >::assign(), elem_xpow(), octave_sparse_matrix::index_vector(), map_2_xldexp_sparse(), and xpow().
|
inlineinherited |
Amount of storage for nonzero elements.
This may differ from the actual number of elements, see nnz().
Definition at line 336 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::nzmax().
Referenced by Sparse< T, Alloc >::byte_size(), dmperm_internal(), octave_base_sparse< T >::nzmax(), read_sparse_matrix(), and save_mat5_binary_element().
SparseBoolMatrix SparseComplexMatrix::operator! | ( | void | ) | const |
Definition at line 7213 of file CSparse.cc.
References any_element_is_nan(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), err_nan_to_logical_conversion(), Sparse< T, Alloc >::nnz(), r, Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
bool SparseComplexMatrix::operator!= | ( | const SparseComplexMatrix & | a | ) | const |
Definition at line 136 of file CSparse.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 102 of file CSparse.h.
References MSparse< T >::operator=().
bool SparseComplexMatrix::operator== | ( | const SparseComplexMatrix & | a | ) | const |
Definition at line 112 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
SparseComplexMatrix SparseComplexMatrix::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 7259 of file CSparse.cc.
References MSparse< T >::permute().
|
inherited |
SparseComplexMatrix SparseComplexMatrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 7385 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), prod(), Sparse< T, Alloc >::rows(), SPARSE_REDUCTION_OP, and transpose().
|
inherited |
Definition at line 824 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
|
inherited |
Definition at line 799 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 759 of file Sparse.cc.
References n.
Referenced by Sparse< T, Alloc >::checkelem().
SparseComplexMatrix SparseComplexMatrix::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 7253 of file CSparse.cc.
References MSparse< T >::reshape().
|
inherited |
Definition at line 978 of file Sparse.cc.
References n, and dim_vector::ndims().
|
inherited |
Definition at line 991 of file Sparse.cc.
Referenced by octave_base_sparse< T >::octave_base_sparse(), Sparse< T, Alloc >::index(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), and octave_sparse_matrix::load_hdf5().
|
inherited |
Definition at line 958 of file Sparse.cc.
References err_invalid_resize(), max(), and n.
Referenced by Sparse< T, Alloc >::index().
|
inlineinherited |
Definition at line 584 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::SparseRep::ridx().
|
inlineinherited |
Definition at line 592 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::cridx(), and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
Definition at line 583 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, Sparse< T, Alloc >::SparseRep::m_ridx, and Sparse< T, Alloc >::make_unique().
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), SparseComplexMatrix(), SparseMatrix::SparseMatrix(), abs(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), column(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), fsolve(), SparseMatrix::fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_row_index(), hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), inverse(), SparseMatrix::inverse(), ishermitian(), SparseMatrix::issymmetric(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_ir(), min(), SparseMatrix::min(), min(), operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), SparseBoolMatrix::sum(), times_or_divide(), times_or_divides(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), and xpow().
|
inlineinherited |
Definition at line 594 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::m_ridx.
ComplexRowVector SparseComplexMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 515 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::columns(), Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::ridx().
|
inlineinherited |
Definition at line 351 of file Sparse.h.
References Sparse< T, Alloc >::dim1().
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), abs(), Sparse< T, Alloc >::assign(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), column(), SparseMatrix::column(), SparseBoolMatrix::concat(), concat(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), determinant(), SparseMatrix::determinant(), dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), elem_xdiv(), elem_xpow(), factorize(), SparseMatrix::factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), hermitian(), Sparse< T, Alloc >::insert(), inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::isempty(), ishermitian(), SparseMatrix::issymmetric(), ltsolve(), SparseMatrix::ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), operator==(), SparseMatrix::operator==(), plus_or_minus(), prod(), SparseMatrix::prod(), product(), quotient(), read_sparse_matrix(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), tinverse(), SparseMatrix::tinverse(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), Sparse< T, Alloc >::xelem(), and xpow().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 7148 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7155 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7162 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7169 of file CSparse.cc.
References ComplexMatrix::column(), and solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 7179 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7187 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7195 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7202 of file CSparse.cc.
References ComplexMatrix::column(), and solve().
OCTAVE_API ComplexMatrix SparseComplexMatrix::solve | ( | const ComplexMatrix & | b | ) | const |
ComplexMatrix SparseComplexMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7092 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7100 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7107 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | const Matrix & | b | ) | const |
Definition at line 7029 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7037 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7044 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7051 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseComplexMatrix & | b | ) | const |
Definition at line 7116 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7124 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7132 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7139 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseMatrix & | b | ) | const |
Definition at line 7060 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7068 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7076 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7083 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b | ||
) | const |
Definition at line 6963 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6970 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6978 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 6985 of file CSparse.cc.
References ComplexMatrix::column(), and solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 6995 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 7004 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7012 of file CSparse.cc.
References solve().
ComplexColumnVector SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7019 of file CSparse.cc.
References ComplexMatrix::column(), and solve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b | ||
) | const |
Definition at line 6832 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6840 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6848 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6855 of file CSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< ComplexMatrix, SparseComplexMatrix, ComplexMatrix >(), dsolve(), fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, qrsolve(), MatrixType::Rectangular, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, trisolve(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b | ||
) | const |
Definition at line 6702 of file CSparse.cc.
Referenced by fsolve(), solve(), xdiv(), and xleftdiv().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6710 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6718 of file CSparse.cc.
References solve().
ComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6725 of file CSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< ComplexMatrix, SparseComplexMatrix, Matrix >(), dsolve(), fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, qrsolve(), MatrixType::Rectangular, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, trisolve(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseComplexMatrix & | b | ||
) | const |
Definition at line 6897 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6906 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6914 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6921 of file CSparse.cc.
References SparseComplexMatrix(), MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve(), dsolve(), fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, qrsolve(), MatrixType::Rectangular, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, trisolve(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseMatrix & | b | ||
) | const |
Definition at line 6767 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6775 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6783 of file CSparse.cc.
References solve().
SparseComplexMatrix SparseComplexMatrix::solve | ( | MatrixType & | mattype, |
const SparseMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6790 of file CSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< SparseComplexMatrix, SparseComplexMatrix, SparseMatrix >(), dsolve(), fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, qrsolve(), MatrixType::Rectangular, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, trisolve(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
|
inherited |
Definition at line 2384 of file Sparse.cc.
References ASCENDING, current_liboctave_error_handler, DESCENDING, m, OCTAVE_LOCAL_BUFFER, octave_sort< T >::set_compare(), octave_sort< T >::sort(), and Array< T, Alloc >::transpose().
|
inherited |
Definition at line 2317 of file Sparse.cc.
References ASCENDING, current_liboctave_error_handler, DESCENDING, m, octave_sort< T >::set_compare(), and octave_sort< T >::sort().
Referenced by octave_base_sparse< T >::sort().
SparseComplexMatrix SparseComplexMatrix::squeeze | ( | void | ) | const |
Definition at line 7247 of file CSparse.cc.
References MSparse< T >::squeeze().
SparseComplexMatrix SparseComplexMatrix::sum | ( | int | dim = -1 | ) | const |
SparseComplexMatrix SparseComplexMatrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 7403 of file CSparse.cc.
References COL_EXPR, ROW_EXPR, and SPARSE_BASE_REDUCTION_OP.
|
inlineinherited |
Definition at line 656 of file Sparse.h.
References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::nnz().
|
inlineinherited |
Definition at line 663 of file Sparse.h.
Referenced by too_large_for_float(), and SparseMatrix::too_large_for_float().
|
private |
Definition at line 734 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), MatrixType::info(), MatrixType::Lower, Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Referenced by inverse().
bool SparseComplexMatrix::too_large_for_float | ( | void | ) | const |
Definition at line 7353 of file CSparse.cc.
References Sparse< T, Alloc >::test_any(), and too_large_for_float().
Referenced by octave_sparse_complex_matrix::save_binary().
|
inline |
Definition at line 137 of file CSparse.h.
References MSparse< T >::transpose().
Referenced by dinverse(), inverse(), oct_unop_transpose(), prod(), and read_mat_binary_data().
|
private |
Definition at line 3977 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), ComplexMatrix, Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), OCTAVE_LOCAL_BUFFER, real(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), and warn_singular_matrix().
|
private |
Definition at line 3646 of file CSparse.cc.
References Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), ComplexMatrix, Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), OCTAVE_LOCAL_BUFFER, real(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), and warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 4145 of file CSparse.cc.
References SparseComplexMatrix(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 3815 of file CSparse.cc.
References SparseComplexMatrix(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), F77_DBLE_CMPLX_ARG, F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 2032 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, warn_singular_matrix(), and Array< T, Alloc >::xelem().
|
private |
Definition at line 1521 of file CSparse.cc.
References abs(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, ComplexMatrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, warn_singular_matrix(), and Array< T, Alloc >::xelem().
Referenced by solve().
|
private |
Definition at line 2262 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 1751 of file CSparse.cc.
References SparseComplexMatrix(), abs(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), current_liboctave_error_handler, Sparse< T, Alloc >::data(), MatrixType::info(), isnan(), MatrixType::mark_as_rectangular(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inlineinherited |
Definition at line 603 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::cidx(), and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
Definition at line 602 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_cidx, and Sparse< T, Alloc >::m_rep.
Referenced by Sparse< T, Alloc >::Sparse(), sparse_lu< lu_type >::sparse_lu(), SparseBoolMatrix::any(), mxArray_separate_sparse::as_octave_value(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), Fsymrcm(), hermitian(), Sparse< T, Alloc >::index(), inverse(), SparseMatrix::inverse(), ltsolve(), SparseMatrix::ltsolve(), LuAminusSigmaB(), max(), SparseMatrix::max(), max(), min(), SparseMatrix::min(), min(), sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), Sparse< T, Alloc >::reshape(), SparseBoolMatrix::sum(), tinverse(), SparseMatrix::tinverse(), mxArray_base_sparse::to_ov(), Sparse< T, Alloc >::transpose(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), and sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inlineinherited |
Definition at line 577 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), and Sparse< T, Alloc >::m_rep.
Definition at line 576 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_data, and Sparse< T, Alloc >::m_rep.
Referenced by Sparse< T, Alloc >::Sparse(), mxArray_separate_sparse::as_octave_value(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), fsolve(), SparseMatrix::fsolve(), Fsymbfact(), hermitian(), Sparse< T, Alloc >::index(), inverse(), SparseMatrix::inverse(), ltsolve(), SparseMatrix::ltsolve(), LuAminusSigmaB(), max(), SparseMatrix::max(), max(), min(), SparseMatrix::min(), min(), sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), read_mat5_binary_element(), Sparse< T, Alloc >::reshape(), SparseBoolMatrix::sum(), tinverse(), SparseMatrix::tinverse(), mxArray_base_sparse::to_ov(), Sparse< T, Alloc >::transpose(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), and sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inlineinherited |
Definition at line 415 of file Sparse.h.
References compute_index(), ra_idx, and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 418 of file Sparse.h.
References compute_index(), ra_idx, and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 409 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::elem(), and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
Definition at line 410 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::celem(), and Sparse< T, Alloc >::m_rep.
|
inlineinherited |
Definition at line 395 of file Sparse.h.
References n, and Sparse< T, Alloc >::rows().
Referenced by Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::elem(), elem_xpow(), map_2_xldexp_sparse(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 402 of file Sparse.h.
References n, Sparse< T, Alloc >::rows(), and Sparse< T, Alloc >::xelem().
|
inlineinherited |
Definition at line 590 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::ridx().
|
inlineinherited |
Definition at line 589 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::m_ridx.
Referenced by Sparse< T, Alloc >::Sparse(), sparse_lu< lu_type >::sparse_lu(), mxArray_separate_sparse::as_octave_value(), binmap(), bsolve(), SparseMatrix::bsolve(), Sparse< T, Alloc >::cat(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), dsolve(), SparseMatrix::dsolve(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), Fsymrcm(), hermitian(), Sparse< T, Alloc >::index(), inverse(), SparseMatrix::inverse(), ltsolve(), SparseMatrix::ltsolve(), LuAminusSigmaB(), max(), SparseMatrix::max(), max(), min(), SparseMatrix::min(), min(), sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), Sparse< T, Alloc >::reshape(), tinverse(), SparseMatrix::tinverse(), mxArray_base_sparse::to_ov(), Sparse< T, Alloc >::transpose(), trisolve(), SparseMatrix::trisolve(), utsolve(), SparseMatrix::utsolve(), and sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
friend |
Definition at line 640 of file CSparse.cc.
Referenced by hermitian(), and ishermitian().
|
friend |
Definition at line 7445 of file CSparse.cc.
|
friend |
Definition at line 7467 of file CSparse.cc.
|
protectedinherited |
Definition at line 251 of file Sparse.h.
Referenced by Sparse< T, Alloc >::Sparse(), Sparse< T, Alloc >::dim1(), Sparse< T, Alloc >::dim2(), Sparse< T, Alloc >::dims(), Sparse< T, Alloc >::ndims(), Sparse< T, Alloc >::numel(), and Sparse< T, Alloc >::operator=().
|
protectedinherited |
Definition at line 249 of file Sparse.h.
Referenced by Sparse< T, Alloc >::Sparse(), Sparse< T, Alloc >::any_element_is_nan(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::indices_ok(), Sparse< T, Alloc >::make_unique(), Sparse< T, Alloc >::maybe_compress(), Sparse< T, Alloc >::nnz(), Sparse< T, Alloc >::nzmax(), Sparse< T, Alloc >::operator=(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), Sparse< T, Alloc >::xelem(), and Sparse< T, Alloc >::xridx().