#include "dSparse.h"
Public Types | |
typedef Matrix | dense_matrix_type |
typedef double | element_type |
typedef void(* | solve_singularity_handler) (double rcond) |
Static Public Member Functions | |
static Sparse< double > | cat (int dim, octave_idx_type n, const Sparse< double > *sparse_list) |
Public Attributes | |
dim_vector | dimensions |
Sparse< double >::SparseRep * | rep |
Protected Member Functions | |
void | make_unique (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) |
typedef void(* SparseMatrix::solve_singularity_handler) (double rcond) |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
explicit |
Definition at line 64 of file dSparse.cc.
References a, Sparse< double >::cidx(), Sparse< double >::cols(), Sparse< double >::data(), i, and Sparse< double >::ridx().
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
explicit |
Definition at line 80 of file dSparse.cc.
References a, Sparse< double >::cidx(), Sparse< double >::data(), i, and Sparse< double >::ridx().
|
inlineexplicit |
|
inline |
SparseMatrix SparseMatrix::abs | ( | void | ) | const |
Definition at line 7459 of file dSparse.cc.
References i, Sparse< double >::nnz(), and retval.
SparseBoolMatrix SparseMatrix::all | ( | int | dim = -1 | ) | const |
Definition at line 7399 of file dSparse.cc.
References SPARSE_ALL_OP.
bool SparseMatrix::all_elements_are_int_or_inf_or_nan | ( | void | ) | const |
Definition at line 7309 of file dSparse.cc.
References Sparse< double >::data(), i, octave::math::isnan(), Sparse< double >::nnz(), val, and octave::math::x_nint().
bool SparseMatrix::all_elements_are_zero | ( | void | ) | const |
Definition at line 7297 of file dSparse.cc.
References Sparse< double >::data(), i, and Sparse< double >::nnz().
Definition at line 7329 of file dSparse.cc.
References Sparse< double >::data(), i, Sparse< double >::nnz(), val, and octave::math::x_nint().
Referenced by octave_sparse_matrix::save_binary(), and octave_sparse_matrix::save_hdf5().
SparseBoolMatrix SparseMatrix::any | ( | int | dim = -1 | ) | const |
Definition at line 7405 of file dSparse.cc.
References SPARSE_ANY_OP.
bool SparseMatrix::any_element_is_inf_or_nan | ( | void | ) | const |
Definition at line 7267 of file dSparse.cc.
References Sparse< double >::data(), i, octave::math::isinf(), octave::math::isnan(), Sparse< double >::nnz(), and val.
bool SparseMatrix::any_element_is_nan | ( | void | ) | const |
Definition at line 7252 of file dSparse.cc.
References Sparse< double >::data(), i, octave::math::isnan(), Sparse< double >::nnz(), and val.
Referenced by operator!(), and octave_sparse_matrix::sparse_bool_matrix_value().
Definition at line 7231 of file dSparse.cc.
References Sparse< double >::data(), i, lo_ieee_signbit, and Sparse< double >::nnz().
bool SparseMatrix::any_element_not_one_or_zero | ( | void | ) | const |
Definition at line 7282 of file dSparse.cc.
References Sparse< double >::data(), i, Sparse< double >::nnz(), and val.
Referenced by octave_sparse_matrix::sparse_bool_matrix_value().
|
inherited |
|
inherited |
|
private |
Definition at line 4252 of file dSparse.cc.
References Matrix::abs(), b, b_nc, b_nr, MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, Array< T >::fortran_vec(), i, MatrixType::info(), MatrixType::is_dense(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), MatrixType::nlower(), MatrixType::nupper(), result, retval, Sparse< double >::ridx(), Matrix::row(), Sparse< double >::rows(), Matrix::sum(), MatrixType::type(), and octave::warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 4860 of file dSparse.cc.
References Matrix::abs(), b, b_nc, b_nr, MatrixType::Banded, MatrixType::Banded_Hermitian, c, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, Array< T >::fortran_vec(), i, MatrixType::info(), MatrixType::is_dense(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), MatrixType::nlower(), MatrixType::nupper(), OCTAVE_LOCAL_BUFFER, octave_value::resize(), retval, Sparse< double >::ridx(), Matrix::row(), Sparse< double >::rows(), Matrix::sum(), MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 4521 of file dSparse.cc.
References Matrix::abs(), b, b_nc, b_nr, MatrixType::Banded, MatrixType::Banded_Hermitian, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, Array< T >::fortran_vec(), i, MatrixType::info(), MatrixType::is_dense(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), MatrixType::nlower(), MatrixType::nupper(), OCTAVE_LOCAL_BUFFER, retval, Sparse< double >::ridx(), Matrix::row(), Sparse< double >::rows(), SparseMatrix(), Matrix::sum(), sz, tmp, MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 5183 of file dSparse.cc.
References Matrix::abs(), b, b_nc, b_nr, MatrixType::Banded, MatrixType::Banded_Hermitian, c, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, Array< T >::fortran_vec(), i, MatrixType::info(), MatrixType::is_dense(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), RowVector::max(), MatrixType::nlower(), MatrixType::nupper(), OCTAVE_LOCAL_BUFFER, retval, Sparse< double >::ridx(), Matrix::row(), Sparse< double >::rows(), Matrix::sum(), sz, MatrixType::type(), and octave::warn_singular_matrix().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 508 of file Sparse.h.
Referenced by bsolve(), column(), determinant(), dsolve(), factorize(), fsolve(), issymmetric(), ltsolve(), max(), min(), operator!(), operator==(), prod(), row(), SparseMatrix(), tinverse(), trisolve(), and utsolve().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 259 of file Sparse.h.
Referenced by bsolve(), determinant(), dinverse(), dsolve(), factorize(), fsolve(), issymmetric(), ltsolve(), operator!(), operator==(), SparseMatrix(), tinverse(), trisolve(), and utsolve().
ColumnVector SparseMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 521 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::data(), i, k, retval, Sparse< double >::ridx(), and Sparse< double >::rows().
|
inlineinherited |
|
inherited |
SparseMatrix SparseMatrix::concat | ( | const SparseMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 533 of file dSparse.cc.
References Sparse< T >::cols(), insert(), ra_idx, and Sparse< T >::rows().
SparseComplexMatrix SparseMatrix::concat | ( | const SparseComplexMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 543 of file dSparse.cc.
References Sparse< T >::cols(), ra_idx, retval, and Sparse< T >::rows().
SparseMatrix SparseMatrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 7411 of file dSparse.cc.
References SPARSE_CUMPROD.
SparseMatrix SparseMatrix::cumsum | ( | int | dim = -1 | ) | const |
Definition at line 7417 of file dSparse.cc.
References SPARSE_CUMSUM.
Definition at line 486 of file Sparse.h.
Referenced by all_elements_are_int_or_inf_or_nan(), all_elements_are_zero(), all_integers(), any_element_is_inf_or_nan(), any_element_is_nan(), any_element_is_negative(), any_element_not_one_or_zero(), bsolve(), column(), determinant(), dsolve(), factorize(), fsolve(), issymmetric(), ltsolve(), max(), min(), operator==(), row(), SparseMatrix(), tinverse(), trisolve(), and utsolve().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
DET SparseMatrix::determinant | ( | void | ) | const |
Definition at line 992 of file dSparse.cc.
Referenced by determinant(), and Fdet().
DET SparseMatrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1000 of file dSparse.cc.
References determinant().
DET SparseMatrix::determinant | ( | octave_idx_type & | info, |
double & | rcond, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 1007 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::cols(), Sparse< double >::data(), err, Array< T >::fortran_vec(), octave_sparse_params::get_key(), octave::math::isnan(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, octave::to_suitesparse_intptr(), and UMFPACK_DNAME.
SparseMatrix SparseMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 7472 of file dSparse.cc.
References MSparse< T >::diag(), and k.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
private |
Definition at line 626 of file dSparse.cc.
References Sparse< double >::cols(), MatrixType::Diagonal, i, Inf, MatrixType::info(), MatrixType::Permuted_Diagonal, retval, Sparse< double >::rows(), tmp, transpose(), and MatrixType::type().
Referenced by inverse().
|
private |
Definition at line 1139 of file dSparse.cc.
References b, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), MatrixType::Diagonal, err, i, Inf, MatrixType::info(), k, nm, MatrixType::Permuted_Diagonal, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, and MatrixType::type().
Referenced by solve().
|
private |
Definition at line 1288 of file dSparse.cc.
References b, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), MatrixType::Diagonal, err, i, Inf, MatrixType::info(), k, nm, MatrixType::Permuted_Diagonal, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, and MatrixType::type().
|
private |
Definition at line 1199 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), MatrixType::Diagonal, err, found, i, Inf, MatrixType::info(), k, nm, MatrixType::Permuted_Diagonal, retval, Sparse< double >::ridx(), Sparse< double >::rows(), SparseMatrix(), tmp, and MatrixType::type().
|
private |
Definition at line 1347 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), MatrixType::Diagonal, err, found, i, Inf, MatrixType::info(), k, nm, MatrixType::Permuted_Diagonal, retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, and MatrixType::type().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
private |
Definition at line 5569 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::cols(), Sparse< double >::data(), err, Array< T >::fortran_vec(), octave_sparse_params::get_key(), octave::math::isnan(), Sparse< double >::ridx(), Sparse< double >::rows(), tmp, octave::to_suitesparse_intptr(), UMFPACK_DNAME, and octave::warn_singular_matrix().
Referenced by fsolve().
|
private |
Definition at line 5697 of file dSparse.cc.
References A, b, B, b_nc, b_nr, BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, CHOLMOD_NAME, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, err, factorize(), Array< T >::fortran_vec(), MatrixType::Full, octave_sparse_params::get_key(), MatrixType::Hermitian, i, MatrixType::info(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< double >::nnz(), octave_value::resize(), result, retval, Sparse< double >::ridx(), Sparse< double >::rows(), solve(), SparseCholError(), SparseCholPrint(), start, octave::to_suitesparse_intptr(), MatrixType::type(), UMFPACK_DNAME, and octave::warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 6195 of file dSparse.cc.
References A, b, B, b_nc, b_nr, BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, c, CHOLMOD_NAME, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, err, factorize(), Array< T >::fortran_vec(), MatrixType::Full, octave_sparse_params::get_key(), MatrixType::Hermitian, i, MatrixType::info(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< double >::nnz(), OCTAVE_LOCAL_BUFFER, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), solve(), SparseCholError(), SparseCholPrint(), start, octave::to_suitesparse_intptr(), MatrixType::type(), UMFPACK_DNAME, and octave::warn_singular_matrix().
|
private |
Definition at line 5922 of file dSparse.cc.
References A, b, B, b_nc, b_nr, BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, CHOLMOD_NAME, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, err, factorize(), Array< T >::fortran_vec(), MatrixType::Full, octave_sparse_params::get_key(), MatrixType::Hermitian, i, MatrixType::info(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< double >::nnz(), OCTAVE_LOCAL_BUFFER, retval, Sparse< double >::ridx(), Sparse< double >::rows(), solve(), SparseCholError(), SparseCholPrint(), SparseMatrix(), start, sz, tmp, octave::to_suitesparse_intptr(), MatrixType::type(), UMFPACK_DNAME, and octave::warn_singular_matrix().
|
private |
Definition at line 6440 of file dSparse.cc.
References A, b, B, b_nc, b_nr, BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, c, CHOLMOD_NAME, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE, err, factorize(), Array< T >::fortran_vec(), MatrixType::Full, octave_sparse_params::get_key(), MatrixType::Hermitian, i, MatrixType::info(), octave::math::isnan(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), Sparse< double >::nnz(), OCTAVE_LOCAL_BUFFER, retval, Sparse< double >::ridx(), Sparse< double >::rows(), solve(), SparseCholError(), SparseCholPrint(), start, sz, tmp, octave::to_suitesparse_intptr(), MatrixType::type(), UMFPACK_DNAME, and octave::warn_singular_matrix().
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 134 of file dSparse.h.
References transpose().
Referenced by octave::math::sparse_chol< chol_type >::inverse().
|
inherited |
|
inlineinherited |
SparseMatrix & SparseMatrix::insert | ( | const SparseMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 170 of file dSparse.cc.
References a, c, and MSparse< T >::insert().
Referenced by concat().
SparseMatrix & SparseMatrix::insert | ( | const SparseMatrix & | a, |
const Array< octave_idx_type > & | indx | ||
) |
Definition at line 178 of file dSparse.cc.
References a, and MSparse< T >::insert().
SparseMatrix SparseMatrix::inverse | ( | void | ) | const |
Definition at line 602 of file dSparse.cc.
SparseMatrix SparseMatrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 611 of file dSparse.cc.
References inverse().
SparseMatrix SparseMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 619 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 927 of file dSparse.cc.
References MatrixType::Diagonal, dinverse(), i, MatrixType::ishermitian(), octave::math::sparse_chol< chol_type >::L(), octave::math::sparse_lu< lu_type >::L(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), octave::math::sparse_lu< lu_type >::Pc(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, octave::math::sparse_lu< lu_type >::Pr(), octave::math::sparse_chol< chol_type >::Q(), Q, octave::math::sparse_chol< chol_type >::rcond(), octave::math::sparse_lu< lu_type >::rcond(), Sparse< double >::rows(), tinverse(), transpose(), MatrixType::transpose(), MatrixType::type(), octave::math::sparse_lu< lu_type >::U(), MatrixType::Unknown, and MatrixType::Upper.
SparseMatrix SparseMatrix::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const |
Definition at line 7531 of file dSparse.cc.
References MSparse< T >::ipermute().
bool SparseMatrix::issymmetric | ( | void | ) | const |
Definition at line 130 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::cols(), Sparse< double >::data(), found, i, k, Sparse< double >::ridx(), and Sparse< double >::rows().
Referenced by G__eigs__().
|
inlineinherited |
|
private |
Definition at line 2462 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::Lower, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, MatrixType::triangular_perm(), MatrixType::type(), and octave::warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 3015 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::Lower, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, MatrixType::triangular_perm(), MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 2715 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::Lower, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, retval, Sparse< double >::ridx(), Sparse< double >::rows(), SparseMatrix(), sz, tmp, MatrixType::triangular_perm(), MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 3269 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::Lower, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, retval, Sparse< double >::ridx(), Sparse< double >::rows(), sz, tmp, MatrixType::triangular_perm(), MatrixType::type(), and octave::warn_singular_matrix().
Matrix SparseMatrix::matrix_value | ( | void | ) | const |
Definition at line 7478 of file dSparse.cc.
References Sparse< T >::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(), octave_sparse_matrix::matrix_value(), and octave_sparse_matrix::try_narrowing_conversion().
SparseMatrix SparseMatrix::max | ( | int | dim = -1 | ) | const |
Definition at line 185 of file dSparse.cc.
SparseMatrix SparseMatrix::max | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 192 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::data(), Sparse< double >::dims(), dv, Sparse< double >::elem(), Array< T >::elem(), dim_vector::first_non_singleton(), found, i, octave::math::isnan(), NaN(), dim_vector::ndims(), OCTAVE_LOCAL_BUFFER, Array< T >::resize(), result, Sparse< double >::ridx(), SparseMatrix(), and tmp.
|
inlineinherited |
|
inlineinherited |
SparseMatrix SparseMatrix::min | ( | int | dim = -1 | ) | const |
Definition at line 336 of file dSparse.cc.
SparseMatrix SparseMatrix::min | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 343 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::data(), Sparse< double >::dims(), dv, Sparse< double >::elem(), Array< T >::elem(), dim_vector::first_non_singleton(), found, i, octave::math::isnan(), NaN(), dim_vector::ndims(), OCTAVE_LOCAL_BUFFER, Array< T >::resize(), result, Sparse< double >::ridx(), SparseMatrix(), and tmp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Actual number of nonzero terms.
Definition at line 240 of file Sparse.h.
Referenced by abs(), all_elements_are_int_or_inf_or_nan(), all_elements_are_zero(), all_integers(), any_element_is_inf_or_nan(), any_element_is_nan(), any_element_is_negative(), any_element_not_one_or_zero(), fsolve(), operator!(), operator==(), and tinverse().
|
inlineinherited |
|
inlineinherited |
SparseBoolMatrix SparseMatrix::operator! | ( | void | ) | const |
Definition at line 7363 of file dSparse.cc.
References any_element_is_nan(), Sparse< double >::cidx(), Sparse< T >::cidx(), Sparse< double >::cols(), Sparse< T >::data(), octave::err_nan_to_logical_conversion(), i, Sparse< double >::nnz(), Sparse< T >::ridx(), Sparse< double >::ridx(), and Sparse< double >::rows().
bool SparseMatrix::operator!= | ( | const SparseMatrix & | a | ) | const |
Definition at line 124 of file dSparse.cc.
References a.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 94 of file dSparse.h.
References a, and MSparse< T >::operator=().
bool SparseMatrix::operator== | ( | const SparseMatrix & | a | ) | const |
Definition at line 100 of file dSparse.cc.
References a, Sparse< double >::cidx(), Sparse< double >::cols(), Sparse< double >::data(), i, Sparse< double >::nnz(), Sparse< double >::ridx(), and Sparse< double >::rows().
SparseMatrix SparseMatrix::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 7525 of file dSparse.cc.
References MSparse< T >::permute().
|
inherited |
SparseMatrix SparseMatrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 7423 of file dSparse.cc.
References Sparse< double >::cidx(), prod(), Sparse< double >::rows(), SPARSE_REDUCTION_OP, and transpose().
Referenced by prod().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
SparseMatrix SparseMatrix::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 7519 of file dSparse.cc.
References MSparse< T >::reshape().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 495 of file Sparse.h.
Referenced by bsolve(), column(), determinant(), dsolve(), factorize(), fsolve(), issymmetric(), ltsolve(), max(), min(), operator!(), operator==(), row(), SparseMatrix(), tinverse(), trisolve(), and utsolve().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
RowVector SparseMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 502 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::columns(), Sparse< double >::data(), i, k, retval, and Sparse< double >::ridx().
|
inlineinherited |
Definition at line 258 of file Sparse.h.
Referenced by bsolve(), column(), determinant(), dinverse(), dsolve(), factorize(), fsolve(), inverse(), issymmetric(), ltsolve(), operator!(), operator==(), prod(), tinverse(), trisolve(), and utsolve().
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b | ||
) | const |
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6733 of file dSparse.cc.
Matrix SparseMatrix::solve | ( | MatrixType & | typ, |
const Matrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6741 of file dSparse.cc.
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 6748 of file dSparse.cc.
References b, MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< Matrix, SparseMatrix, Matrix >(), dsolve(), err, fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, octave::math::qrsolve(), MatrixType::Rectangular, retval, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, trisolve(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b | ||
) | const |
Definition at line 6855 of file dSparse.cc.
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6863 of file dSparse.cc.
ComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6871 of file dSparse.cc.
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 6878 of file dSparse.cc.
References b, MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< ComplexMatrix, SparseMatrix, ComplexMatrix >(), dsolve(), err, fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, octave::math::qrsolve(), MatrixType::Rectangular, retval, 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 6790 of file dSparse.cc.
SparseMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6798 of file dSparse.cc.
SparseMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6806 of file dSparse.cc.
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 6813 of file dSparse.cc.
References b, MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< SparseMatrix, SparseMatrix, SparseMatrix >(), dsolve(), err, fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, octave::math::qrsolve(), MatrixType::Rectangular, retval, 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 6920 of file dSparse.cc.
SparseComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6928 of file dSparse.cc.
SparseComplexMatrix SparseMatrix::solve | ( | MatrixType & | typ, |
const SparseComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 6936 of file dSparse.cc.
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 6943 of file dSparse.cc.
References b, MatrixType::Banded, MatrixType::Banded_Hermitian, bsolve(), MatrixType::Diagonal, dmsolve< SparseComplexMatrix, SparseMatrix, SparseComplexMatrix >(), dsolve(), err, fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, ltsolve(), MatrixType::Permuted_Diagonal, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, octave::math::qrsolve(), MatrixType::Rectangular, retval, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, trisolve(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b | ||
) | const |
Definition at line 6985 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 6992 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7000 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7007 of file dSparse.cc.
References b, Matrix::column(), solve(), and tmp.
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b | ||
) | const |
Definition at line 7017 of file dSparse.cc.
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 7025 of file dSparse.cc.
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7033 of file dSparse.cc.
ComplexColumnVector SparseMatrix::solve | ( | MatrixType & | typ, |
const ComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7041 of file dSparse.cc.
References b, Matrix::column(), solve(), and tmp.
Definition at line 7051 of file dSparse.cc.
Matrix SparseMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7059 of file dSparse.cc.
Matrix SparseMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7066 of file dSparse.cc.
Matrix SparseMatrix::solve | ( | const Matrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7073 of file dSparse.cc.
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b | ) | const |
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7112 of file dSparse.cc.
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7119 of file dSparse.cc.
ComplexMatrix SparseMatrix::solve | ( | const ComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7126 of file dSparse.cc.
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b | ) | const |
Definition at line 7081 of file dSparse.cc.
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7089 of file dSparse.cc.
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7097 of file dSparse.cc.
SparseMatrix SparseMatrix::solve | ( | const SparseMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7104 of file dSparse.cc.
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b | ) | const |
Definition at line 7135 of file dSparse.cc.
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7143 of file dSparse.cc.
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7150 of file dSparse.cc.
SparseComplexMatrix SparseMatrix::solve | ( | const SparseComplexMatrix & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7157 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b | ) | const |
Definition at line 7166 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7173 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7180 of file dSparse.cc.
ColumnVector SparseMatrix::solve | ( | const ColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7187 of file dSparse.cc.
References b, Matrix::column(), solve(), and tmp.
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b | ) | const |
Definition at line 7197 of file dSparse.cc.
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 7205 of file dSparse.cc.
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond | ||
) | const |
Definition at line 7212 of file dSparse.cc.
ComplexColumnVector SparseMatrix::solve | ( | const ComplexColumnVector & | b, |
octave_idx_type & | info, | ||
double & | rcond, | ||
solve_singularity_handler | sing_handler | ||
) | const |
Definition at line 7219 of file dSparse.cc.
References b, Matrix::column(), solve(), and tmp.
|
inherited |
SparseMatrix SparseMatrix::squeeze | ( | void | ) | const |
Definition at line 7513 of file dSparse.cc.
References MSparse< T >::squeeze().
SparseMatrix SparseMatrix::sum | ( | int | dim = -1 | ) | const |
Definition at line 7435 of file dSparse.cc.
References SPARSE_REDUCTION_OP.
SparseMatrix SparseMatrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 7441 of file dSparse.cc.
References COL_EXPR, ROW_EXPR, and SPARSE_BASE_REDUCTION_OP.
Definition at line 575 of file Sparse.h.
Referenced by too_large_for_float().
|
private |
Definition at line 676 of file dSparse.cc.
References Sparse< double >::cidx(), Sparse< double >::cols(), Sparse< double >::data(), i, MatrixType::info(), k, MatrixType::Lower, Sparse< double >::nnz(), OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, retval, Sparse< double >::ridx(), Sparse< double >::rows(), SparseMatrix(), MatrixType::triangular_perm(), MatrixType::type(), and MatrixType::Upper.
Referenced by inverse().
bool SparseMatrix::too_large_for_float | ( | void | ) | const |
Definition at line 7357 of file dSparse.cc.
References Sparse< double >::test_any(), and xtoo_large_for_float().
Referenced by octave_sparse_matrix::save_binary(), and octave_sparse_matrix::save_hdf5().
|
inline |
Definition at line 130 of file dSparse.h.
References MSparse< T >::transpose().
Referenced by dinverse(), octave::math::sparse_chol< chol_type >::inverse(), inverse(), SparseComplexMatrix::inverse(), oct_unop_transpose(), prod(), and read_mat_binary_data().
|
private |
Definition at line 3571 of file dSparse.cc.
References b, b_nc, b_nr, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, i, MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), OCTAVE_LOCAL_BUFFER, result, retval, Sparse< double >::ridx(), Sparse< double >::rows(), MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), and octave::warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 3891 of file dSparse.cc.
References b, b_nc, b_nr, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_DBLE_CMPLX_ARG, F77_XFCN, i, MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), OCTAVE_LOCAL_BUFFER, result, retval, Sparse< double >::ridx(), Sparse< double >::rows(), MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 3737 of file dSparse.cc.
References b, b_nc, b_nr, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, Array< T >::fortran_vec(), i, MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), OCTAVE_LOCAL_BUFFER, retval, Sparse< double >::ridx(), Sparse< double >::rows(), SparseMatrix(), sz, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 4061 of file dSparse.cc.
References b, b_nc, b_nr, c, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, F77_XFCN, Array< T >::fortran_vec(), i, MatrixType::info(), MatrixType::is_dense(), MatrixType::mark_as_rectangular(), OCTAVE_LOCAL_BUFFER, retval, Sparse< double >::ridx(), Sparse< double >::rows(), sz, MatrixType::Tridiagonal, MatrixType::Tridiagonal_Hermitian, MatrixType::type(), and octave::warn_singular_matrix().
|
private |
Definition at line 1436 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, and octave::warn_singular_matrix().
Referenced by solve().
|
private |
Definition at line 1946 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, octave_value::resize(), retval, Sparse< double >::ridx(), Sparse< double >::rows(), tmp, MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, and octave::warn_singular_matrix().
|
private |
Definition at line 1665 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, retval, Sparse< double >::ridx(), Sparse< double >::rows(), SparseMatrix(), sz, tmp, MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, and octave::warn_singular_matrix().
|
private |
Definition at line 2178 of file dSparse.cc.
References b, b_nc, Sparse< double >::cidx(), Sparse< double >::cols(), current_liboctave_error_handler, Sparse< double >::data(), err, i, MatrixType::info(), octave::math::isnan(), k, MatrixType::mark_as_rectangular(), nm, OCTAVE_LOCAL_BUFFER, MatrixType::Permuted_Upper, retval, Sparse< double >::ridx(), Sparse< double >::rows(), sz, tmp, MatrixType::triangular_perm(), MatrixType::type(), MatrixType::Upper, and octave::warn_singular_matrix().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Definition at line 574 of file dSparse.cc.
|
friend |
Definition at line 7484 of file dSparse.cc.
|
friend |
Definition at line 7505 of file dSparse.cc.
|
friend |
Definition at line 553 of file dSparse.cc.
|
inherited |