#include "dSparse.h"
Public Types | |
typedef Matrix | 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 | |
OCTAVE_API ComplexMatrix | bsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API Matrix | bsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseComplexMatrix | bsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | bsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | dinverse (MatrixType &mattype, octave_idx_type &info, double &rcond, const bool force=false, const bool calccond=true) const |
OCTAVE_API ComplexMatrix | dsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API Matrix | dsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseComplexMatrix | dsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | dsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API void * | factorize (octave_idx_type &err, double &rcond, Matrix &Control, Matrix &Info, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API ComplexMatrix | fsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API Matrix | fsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseComplexMatrix | fsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | fsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API ComplexMatrix | ltsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API Matrix | ltsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseComplexMatrix | ltsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | ltsolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | tinverse (MatrixType &mattype, octave_idx_type &info, double &rcond, const bool force=false, const bool calccond=true) const |
OCTAVE_API ComplexMatrix | trisolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API Matrix | trisolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseComplexMatrix | trisolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | trisolve (MatrixType &typ, const SparseMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API ComplexMatrix | utsolve (MatrixType &typ, const ComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API Matrix | utsolve (MatrixType &typ, const Matrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseComplexMatrix | utsolve (MatrixType &typ, const SparseComplexMatrix &b, octave_idx_type &info, double &rcond, solve_singularity_handler sing_handler, bool calc_cond=false) const |
OCTAVE_API SparseMatrix | utsolve (MatrixType &typ, 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 SparseMatrix | imag (const SparseComplexMatrix &a) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const SparseMatrix &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, SparseMatrix &a) |
OCTAVE_API SparseMatrix | real (const SparseComplexMatrix &a) |
|
inherited |
typedef void(* SparseMatrix::solve_singularity_handler) (double rcond) |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 65 of file dSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), and Sparse< T, Alloc >::ridx().
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
explicit |
Definition at line 81 of file dSparse.cc.
References Sparse< T, Alloc >::cidx(), DiagArray2< T >::cols(), Sparse< T, Alloc >::data(), DiagArray2< T >::length(), and Sparse< T, Alloc >::ridx().
|
inlineexplicit |
|
inline |
SparseMatrix SparseMatrix::abs | ( | void | ) | const |
Definition at line 7426 of file dSparse.cc.
References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::nnz().
SparseBoolMatrix SparseMatrix::all | ( | int | dim = -1 | ) | const |
Definition at line 7366 of file dSparse.cc.
References SPARSE_ALL_OP.
bool SparseMatrix::all_elements_are_int_or_inf_or_nan | ( | void | ) | const |
Definition at line 7276 of file dSparse.cc.
References Sparse< T, Alloc >::data(), isnan(), Sparse< T, Alloc >::nnz(), and x_nint().
bool SparseMatrix::all_elements_are_zero | ( | void | ) | const |
Definition at line 7264 of file dSparse.cc.
References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::nnz().
bool SparseMatrix::all_integers | ( | double & | max_val, |
double & | min_val | ||
) | const |
Definition at line 7296 of file dSparse.cc.
References Sparse< T, Alloc >::data(), Sparse< T, Alloc >::nnz(), and x_nint().
Referenced by elem_xpow(), and octave_sparse_matrix::save_binary().
SparseBoolMatrix SparseMatrix::any | ( | int | dim = -1 | ) | const |
Definition at line 7372 of file dSparse.cc.
References SPARSE_ANY_OP.
bool SparseMatrix::any_element_is_inf_or_nan | ( | void | ) | const |
Definition at line 7234 of file dSparse.cc.
References Sparse< T, Alloc >::data(), isinf(), isnan(), and Sparse< T, Alloc >::nnz().
bool SparseMatrix::any_element_is_nan | ( | void | ) | const |
Definition at line 7219 of file dSparse.cc.
References Sparse< T, Alloc >::data(), isnan(), and Sparse< T, Alloc >::nnz().
Referenced by operator!(), and octave_sparse_matrix::sparse_bool_matrix_value().
bool SparseMatrix::any_element_is_negative | ( | bool | neg_zero = false | ) | const |
Definition at line 7198 of file dSparse.cc.
References Sparse< T, Alloc >::data(), lo_ieee_signbit, and Sparse< T, Alloc >::nnz().
Referenced by elem_xpow().
bool SparseMatrix::any_element_not_one_or_zero | ( | void | ) | const |
Definition at line 7249 of file dSparse.cc.
References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::nnz().
Referenced by octave_sparse_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(), SparseComplexMatrix::matrix_value(), and 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 4880 of file dSparse.cc.
References Matrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), 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(), OCTAVE_LOCAL_BUFFER, ComplexMatrix::resize(), 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 4271 of file dSparse.cc.
References Matrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), 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 5204 of file dSparse.cc.
References Matrix::abs(), MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), 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(), SparseComplexMatrix, Matrix::sum(), MatrixType::type(), warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 4540 of file dSparse.cc.
References SparseMatrix(), Matrix::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_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(), SparseComplexMatrix::bsolve(), bsolve(), SparseComplexMatrix::fsolve(), fsolve(), Sparse< T, Alloc >::index(), SparseComplexMatrix::ltsolve(), ltsolve(), SparseBoolMatrix::sum(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), and 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::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), 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(), SparseComplexMatrix::column(), column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_col_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), max(), max(), octave_base_sparse< T >::mex_get_jc(), SparseComplexMatrix::min(), min(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), SparseComplexMatrix::prod(), prod(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), 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::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), 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(), SparseComplexMatrix::concat(), concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), determinant(), SparseComplexMatrix::dinverse(), dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), F__ilu0__(), F__iluc__(), F__ilutp__(), SparseComplexMatrix::factorize(), factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), 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(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), and xpow().
ColumnVector SparseMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 522 of file dSparse.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(), SparseComplexMatrix::row(), and row().
|
inherited |
Definition at line 735 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
SparseComplexMatrix SparseMatrix::concat | ( | const SparseComplexMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 544 of file dSparse.cc.
References Sparse< T, Alloc >::cols(), SparseComplexMatrix::insert(), ra_idx, and Sparse< T, Alloc >::rows().
SparseMatrix SparseMatrix::concat | ( | const SparseMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 534 of file dSparse.cc.
References Sparse< T, Alloc >::cols(), insert(), ra_idx, and Sparse< T, Alloc >::rows().
Referenced by oct_catop_s_scm(), and oct_catop_s_sm().
SparseMatrix SparseMatrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 7378 of file dSparse.cc.
References SPARSE_CUMPROD.
SparseMatrix SparseMatrix::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::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), abs(), all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), all_elements_are_zero(), SparseComplexMatrix::all_integers(), all_integers(), SparseBoolMatrix::any(), SparseComplexMatrix::any_element_is_inf_or_nan(), any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), any_element_is_nan(), any_element_is_negative(), 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(), SparseComplexMatrix::bsolve(), 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(), SparseComplexMatrix::column(), column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), determinant(), SparseComplexMatrix::dinverse(), dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), SparseComplexMatrix::max(), max(), max(), octave_base_sparse< T >::mex_get_data(), SparseComplexMatrix::min(), min(), min(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), 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(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), 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.
DET SparseMatrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1020 of file dSparse.cc.
References determinant().
DET SparseMatrix::determinant | ( | octave_idx_type & | info, |
double & | rcond, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 1027 of file dSparse.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_DNAME.
DET SparseMatrix::determinant | ( | void | ) | const |
Definition at line 1012 of file dSparse.cc.
Referenced by determinant().
SparseMatrix SparseMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 7439 of file dSparse.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(), SparseComplexMatrix::max(), max(), SparseComplexMatrix::min(), and min().
|
private |
Definition at line 627 of file dSparse.cc.
References 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 1308 of file dSparse.cc.
References 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 1159 of file dSparse.cc.
References 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, Matrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), and MatrixType::type().
Referenced by solve().
|
private |
Definition at line 1367 of file dSparse.cc.
References 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(), SparseComplexMatrix, MatrixType::type(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 1219 of file dSparse.cc.
References SparseMatrix(), 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 SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::elem(), SparseComplexMatrix::fsolve(), fsolve(), SparseComplexMatrix::max(), max(), SparseComplexMatrix::min(), 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 5589 of file dSparse.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_DNAME, and warn_singular_matrix().
Referenced by fsolve().
|
private |
Definition at line 6188 of file dSparse.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(), 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_DNAME, warn_singular_matrix(), and Array< T, Alloc >::xelem().
|
private |
Definition at line 5717 of file dSparse.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(), Matrix::resize(), Sparse< T, Alloc >::ridx(), Array< T, Alloc >::rows(), Sparse< T, Alloc >::rows(), solve(), SparseCholError(), SparseCholPrint(), to_suitesparse_intptr(), MatrixType::type(), UMFPACK_DNAME, warn_singular_matrix(), and Array< T, Alloc >::xelem().
Referenced by solve().
|
private |
Definition at line 6420 of file dSparse.cc.
References 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(), SparseComplexMatrix, to_suitesparse_intptr(), MatrixType::type(), UMFPACK_DNAME, warn_singular_matrix(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
private |
Definition at line 5928 of file dSparse.cc.
References SparseMatrix(), 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_DNAME, 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().
|
inline |
Definition at line 128 of file dSparse.h.
References transpose().
Referenced by sparse_chol< chol_type >::inverse().
|
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 |
|
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().
SparseMatrix & SparseMatrix::insert | ( | const SparseMatrix & | a, |
const Array< octave_idx_type > & | indx | ||
) |
Definition at line 179 of file dSparse.cc.
References MSparse< T >::insert().
SparseMatrix & SparseMatrix::insert | ( | const SparseMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 171 of file dSparse.cc.
References MSparse< T >::insert(), and r.
Referenced by concat().
SparseMatrix SparseMatrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 612 of file dSparse.cc.
References inverse().
SparseMatrix SparseMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 620 of file dSparse.cc.
References inverse().
SparseMatrix SparseMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
double & | rcond, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 928 of file dSparse.cc.
References SparseMatrix(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), MatrixType::Diagonal, dinverse(), 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_chol< SparseMatrix >, sparse_lu< SparseMatrix >, tinverse(), transpose(), MatrixType::transpose(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
SparseMatrix SparseMatrix::inverse | ( | void | ) | const |
Definition at line 603 of file dSparse.cc.
SparseMatrix SparseMatrix::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const |
Definition at line 7498 of file dSparse.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().
|
inlineinherited |
Definition at line 568 of file Sparse.h.
References Sparse< T, Alloc >::dim1(), and Sparse< T, Alloc >::dim2().
bool SparseMatrix::issymmetric | ( | void | ) | const |
Definition at line 131 of file dSparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Referenced by F__eigs__().
|
private |
Definition at line 3035 of file dSparse.cc.
References 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 2482 of file dSparse.cc.
References 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, Matrix::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 3289 of file dSparse.cc.
References 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(), SparseComplexMatrix, 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 2735 of file dSparse.cc.
References SparseMatrix(), 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().
Matrix SparseMatrix::matrix_value | ( | void | ) | const |
Definition at line 7445 of file dSparse.cc.
References Sparse< T, Alloc >::array_value().
Referenced by octave_sparse_matrix::array_value(), octave_sparse_matrix::bool_array_value(), octave_sparse_matrix::complex_array_value(), octave_sparse_matrix::complex_matrix_value(), and octave_sparse_matrix::matrix_value().
SparseMatrix SparseMatrix::max | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 193 of file dSparse.cc.
References SparseMatrix(), Sparse< T, Alloc >::cidx(), 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().
SparseMatrix SparseMatrix::max | ( | int | dim = -1 | ) | const |
Definition at line 186 of file dSparse.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(), SparseComplexMatrix::bsolve(), bsolve(), elem_xpow(), SparseComplexMatrix::fsolve(), fsolve(), SparseComplexMatrix::ltsolve(), 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(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), and utsolve().
SparseMatrix SparseMatrix::min | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 344 of file dSparse.cc.
References SparseMatrix(), Sparse< T, Alloc >::cidx(), 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().
SparseMatrix SparseMatrix::min | ( | int | dim = -1 | ) | const |
Definition at line 337 of file dSparse.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::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::abs(), abs(), all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), all_elements_are_zero(), SparseComplexMatrix::all_integers(), all_integers(), SparseComplexMatrix::any_element_is_inf_or_nan(), any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), any_element_is_nan(), Sparse< T, Alloc >::SparseRep::any_element_is_nan(), Sparse< T >::SparseRep::any_element_is_nan(), any_element_is_negative(), any_element_not_one_or_zero(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::delete_elements(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xpow(), Fccolamd(), Fcolamd(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), octave_sparse_matrix::index_vector(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), max(), min(), octave_base_sparse< T >::nnz(), SparseComplexMatrix::operator!(), operator!(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), 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(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), 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 SparseMatrix::operator! | ( | void | ) | const |
Definition at line 7330 of file dSparse.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 SparseMatrix::operator!= | ( | const SparseMatrix & | a | ) | const |
Definition at line 125 of file dSparse.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 92 of file dSparse.h.
References MSparse< T >::operator=().
bool SparseMatrix::operator== | ( | const SparseMatrix & | a | ) | const |
Definition at line 101 of file dSparse.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().
SparseMatrix SparseMatrix::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 7492 of file dSparse.cc.
References MSparse< T >::permute().
|
inherited |
SparseMatrix SparseMatrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 7390 of file dSparse.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().
SparseMatrix SparseMatrix::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 7486 of file dSparse.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::SparseComplexMatrix(), SparseMatrix(), SparseComplexMatrix::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(), SparseComplexMatrix::bsolve(), 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(), SparseComplexMatrix::column(), column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), Sparse< T, Alloc >::get_row_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), max(), max(), octave_base_sparse< T >::mex_get_ir(), SparseComplexMatrix::min(), min(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), 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(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), 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.
RowVector SparseMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 503 of file dSparse.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(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), SparseComplexMatrix::bsolve(), 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(), SparseComplexMatrix::column(), column(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), determinant(), SparseComplexMatrix::dinverse(), dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), elem_xdiv(), elem_xpow(), SparseComplexMatrix::factorize(), factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), issymmetric(), SparseComplexMatrix::ltsolve(), ltsolve(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), operator==(), plus_or_minus(), SparseComplexMatrix::prod(), prod(), product(), quotient(), read_sparse_matrix(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), tinverse(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), Sparse< T, Alloc >::xelem(), and xpow().
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 7133 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7140 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7147 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7154 of file dSparse.cc.
References Matrix::column(), and solve().
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 7164 of file dSparse.cc.
References solve().
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7172 of file dSparse.cc.
References solve().
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7179 of file dSparse.cc.
References solve().
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7186 of file dSparse.cc.
References Matrix::column(), and solve().
OCTAVE_API ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b | ) | const |
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7079 of file dSparse.cc.
References solve().
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7086 of file dSparse.cc.
References solve().
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7093 of file dSparse.cc.
References solve().
Definition at line 7018 of file dSparse.cc.
References solve().
Matrix SparseMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7026 of file dSparse.cc.
References solve().
Matrix SparseMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7033 of file dSparse.cc.
References solve().
Matrix SparseMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7040 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b | ) | const |
Definition at line 7102 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7110 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7117 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7124 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b | ) | const |
Definition at line 7048 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7056 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7064 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7071 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b | ||
) | const |
Definition at line 6952 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6959 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6967 of file dSparse.cc.
References solve().
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 6974 of file dSparse.cc.
References Matrix::column(), and solve().
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 6984 of file dSparse.cc.
References solve().
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6992 of file dSparse.cc.
References solve().
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7000 of file dSparse.cc.
References solve().
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7008 of file dSparse.cc.
References Matrix::column(), and solve().
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b | ||
) | const |
Definition at line 6822 of file dSparse.cc.
References solve().
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6830 of file dSparse.cc.
References solve().
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6838 of file dSparse.cc.
References solve().
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6845 of file dSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< ComplexMatrix, SparseMatrix, 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().
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b | ||
) | const |
Definition at line 6692 of file dSparse.cc.
Referenced by fsolve(), solve(), xdiv(), and xleftdiv().
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6700 of file dSparse.cc.
References solve().
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6708 of file dSparse.cc.
References solve().
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6715 of file dSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< Matrix, SparseMatrix, 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 SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseComplexMatrix & | b | ||
) | const |
Definition at line 6887 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6895 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6903 of file dSparse.cc.
References solve().
SparseComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallabck = true |
||
) | const |
Definition at line 6910 of file dSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< SparseComplexMatrix, SparseMatrix, SparseComplexMatrix >(), 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().
SparseMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseMatrix & | b | ||
) | const |
Definition at line 6757 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6765 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6773 of file dSparse.cc.
References solve().
SparseMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true |
||
) | const |
Definition at line 6780 of file dSparse.cc.
References MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< SparseMatrix, SparseMatrix, 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().
SparseMatrix SparseMatrix::squeeze | ( | void | ) | const |
Definition at line 7480 of file dSparse.cc.
References MSparse< T >::squeeze().
SparseMatrix SparseMatrix::sum | ( | int | dim = -1 | ) | const |
SparseMatrix SparseMatrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 7408 of file dSparse.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 SparseComplexMatrix::too_large_for_float(), and too_large_for_float().
|
private |
Definition at line 677 of file dSparse.cc.
References SparseMatrix(), 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 SparseMatrix::too_large_for_float | ( | void | ) | const |
Definition at line 7324 of file dSparse.cc.
References Sparse< T, Alloc >::test_any(), and too_large_for_float().
Referenced by octave_sparse_matrix::save_binary().
|
inline |
Definition at line 124 of file dSparse.h.
References MSparse< T >::transpose().
Referenced by dinverse(), inverse(), sparse_chol< chol_type >::inverse(), LuAminusSigmaB(), make_cholb(), oct_unop_transpose(), prod(), read_mat_binary_data(), and xdiv().
|
private |
Definition at line 3911 of file dSparse.cc.
References Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), 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(), MatrixType::mark_as_unsymmetric(), OCTAVE_LOCAL_BUFFER, 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 3591 of file dSparse.cc.
References Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), F77_XFCN, Array< T, Alloc >::fortran_vec(), MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), OCTAVE_LOCAL_BUFFER, 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 4081 of file dSparse.cc.
References Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), 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(), SparseComplexMatrix, 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 3757 of file dSparse.cc.
References SparseMatrix(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), 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 1966 of file dSparse.cc.
References 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 1456 of file dSparse.cc.
References 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, Matrix::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 2198 of file dSparse.cc.
References 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(), SparseComplexMatrix, 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 1685 of file dSparse.cc.
References SparseMatrix(), 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(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), SparseComplexMatrix::fsolve(), fsolve(), Fsymamd(), Fsymbfact(), Fsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ltsolve(), ltsolve(), LuAminusSigmaB(), SparseComplexMatrix::max(), max(), max(), SparseComplexMatrix::min(), 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(), SparseComplexMatrix::tinverse(), tinverse(), mxArray_base_sparse::to_ov(), Sparse< T, Alloc >::transpose(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), 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(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), SparseComplexMatrix::fsolve(), fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ltsolve(), ltsolve(), LuAminusSigmaB(), SparseComplexMatrix::max(), max(), max(), SparseComplexMatrix::min(), 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(), SparseComplexMatrix::tinverse(), tinverse(), mxArray_base_sparse::to_ov(), Sparse< T, Alloc >::transpose(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), 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(), SparseComplexMatrix::bsolve(), bsolve(), Sparse< T, Alloc >::cat(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), dsolve(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), SparseComplexMatrix::fsolve(), fsolve(), Fsymamd(), Fsymbfact(), Fsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), SparseComplexMatrix::inverse(), inverse(), SparseComplexMatrix::ltsolve(), ltsolve(), LuAminusSigmaB(), SparseComplexMatrix::max(), max(), max(), SparseComplexMatrix::min(), 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(), SparseComplexMatrix::tinverse(), tinverse(), mxArray_base_sparse::to_ov(), Sparse< T, Alloc >::transpose(), SparseComplexMatrix::trisolve(), trisolve(), SparseComplexMatrix::utsolve(), utsolve(), and sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
friend |
Definition at line 575 of file dSparse.cc.
|
friend |
Definition at line 7450 of file dSparse.cc.
|
friend |
Definition at line 7472 of file dSparse.cc.
|
friend |
Definition at line 554 of file dSparse.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().