#include "Sparse.h"
Classes | |
class | SparseRep |
Public Types | |
typedef T | element_type |
Static Public Member Functions | |
static Sparse< T > | cat (int dim, octave_idx_type n, const Sparse< T > *sparse_list) |
Public Attributes | |
dim_vector | dimensions |
Sparse< T >::SparseRep * | rep |
Protected Member Functions | |
void | make_unique (void) |
Static Private Member Functions | |
static Sparse< T >::SparseRep * | nil_rep (void) |
typedef T Sparse< T >::element_type |
Definition at line 168 of file Sparse.h.
References Sparse< T >::SparseRep::count.
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
Definition at line 194 of file Sparse.cc.
References Sparse< T >::dimensions, Sparse< T >::rep, dim_vector::safe_numel(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
|
inline |
|
inline |
|
explicit |
Definition at line 222 of file Sparse.cc.
References n, and PermMatrix::rows().
Definition at line 198 of file Sparse.h.
References Sparse< T >::SparseRep::c, Sparse< T >::SparseRep::d, Sparse< T >::SparseRep::ncols, Sparse< T >::nnz(), Sparse< T >::SparseRep::r, and Sparse< T >::rep.
Definition at line 210 of file Sparse.h.
References Sparse< T >::SparseRep::count.
Sparse< T >::Sparse | ( | const dim_vector & | dv | ) |
Definition at line 240 of file Sparse.cc.
References dim_vector::ndims(), and Sparse< T >::rep.
Sparse< T >::Sparse | ( | const Sparse< T > & | a, |
const dim_vector & | dv | ||
) |
Definition at line 251 of file Sparse.cc.
References Sparse< T >::cols(), Sparse< T >::dims(), Sparse< T >::nnz(), Sparse< T >::rep, and Sparse< T >::rows().
Sparse< T >::Sparse | ( | const Array< T > & | a, |
const idx_vector & | r, | ||
const idx_vector & | c, | ||
octave_idx_type | nr = -1 , |
||
octave_idx_type | nc = -1 , |
||
bool | sum_terms = true , |
||
octave_idx_type | nzm = -1 |
||
) |
Definition at line 293 of file Sparse.cc.
References Sparse< T >::change_capacity(), current_liboctave_error_handler, Sparse< T >::data(), Sparse< T >::dimensions, idx_vector::extent(), idx_vector::length(), n, Array< T >::numel(), OCTAVE_LOCAL_BUFFER, OCTAVE_LOCAL_BUFFER_INIT, r, idx_vector::raw(), Sparse< T >::rep, Sparse< T >::ridx(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 660 of file Sparse.cc.
References Sparse< T >::cols(), Sparse< T >::dimensions, Array< T >::elem(), len, dim_vector::ndims(), Array< T >::numel(), Sparse< T >::rep, Sparse< T >::rows(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
|
inline |
Definition at line 647 of file Sparse.h.
References Sparse< T >::SparseRep::any_element_is_nan().
Definition at line 2688 of file Sparse.cc.
References retval, and Array< T >::xelem().
Referenced by Sparse< T >::assign(), binmap(), SparseComplexMatrix::matrix_value(), and SparseMatrix::matrix_value().
void Sparse< T >::assign | ( | const idx_vector & | i, |
const idx_vector & | j, | ||
const Sparse< T > & | rhs | ||
) |
Definition at line 1989 of file Sparse.cc.
References Sparse< T >::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), Sparse< T >::data(), octave::err_nonconformant(), idx_vector::extent(), idx_vector::increment(), Sparse< T >::index(), idx_vector::inverse_permutation(), idx_vector::is_colon(), idx_vector::is_colon_equiv(), idx_vector::is_cont_range(), idx_vector::is_permutation(), idx_vector::is_range(), idx_vector::isvector(), idx_vector::length(), m, mx_inline_add(), mx_inline_add2(), n, Sparse< T >::nnz(), OCTAVE_LOCAL_BUFFER_INIT, retval, Sparse< T >::ridx(), Sparse< T >::rows(), idx_vector::sorted(), transpose(), and Sparse< T >::transpose().
void Sparse< T >::assign | ( | const idx_vector & | i, |
const Sparse< T > & | rhs | ||
) |
Definition at line 1837 of file Sparse.cc.
References Sparse< T >::array_value(), Array< T >::assign(), idx_vector::colon, Sparse< T >::cols(), idx_vector::copy_data(), Sparse< T >::data(), Sparse< T >::dims(), octave::err_nonconformant(), idx_vector::extent(), Array< T >::fortran_vec(), idx_vector::increment(), Sparse< T >::index(), idx_vector::inverse_permutation(), idx_vector::is_colon(), idx_vector::is_cont_range(), idx_vector::is_permutation(), idx_vector::is_range(), lblookup(), idx_vector::length(), mx_inline_add(), n, Sparse< T >::nnz(), numel(), Sparse< T >::numel(), Sparse< T >::reshape(), retval, Sparse< T >::ridx(), and idx_vector::sorted().
Referenced by Sparse< T >::assign().
|
inline |
Definition at line 263 of file Sparse.h.
Referenced by octave_base_sparse< T >::byte_size(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), and octave_sparse_matrix::try_narrowing_conversion().
|
static |
Definition at line 2590 of file Sparse.cc.
References Array< T >::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), dim_vector::concat(), Sparse< T >::data(), Sparse< T >::dims(), dim_vector::hvcat(), Array< T >::isempty(), Sparse< T >::isempty(), n, Sparse< T >::nnz(), retval, Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by single_type_concat().
|
inline |
Definition at line 454 of file Sparse.h.
References Sparse< T >::SparseRep::change_length().
Referenced by Sparse< T >::Sparse().
|
inline |
Definition at line 345 of file Sparse.h.
References compute_index(), elem, and ra_idx.
|
inline |
Definition at line 401 of file Sparse.h.
References compute_index(), Sparse< T >::elem(), and ra_idx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 493 of file Sparse.h.
References Sparse< T >::SparseRep::cidx().
|
inline |
Definition at line 501 of file Sparse.h.
References Sparse< T >::SparseRep::ccidx().
|
inline |
Definition at line 492 of file Sparse.h.
References Sparse< T >::SparseRep::c.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), octave::math::sparse_lu< lu_type >::Pc(), plus_or_minus(), octave::math::sparse_lu< lu_type >::Pr(), SparseComplexMatrix::prod(), SparseMatrix::prod(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), x_el_div(), and xpow().
|
inline |
Definition at line 503 of file Sparse.h.
References Sparse< T >::SparseRep::c.
|
inline |
Definition at line 251 of file Sparse.h.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T >::Sparse(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), Sparse< T >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), F__ilu0__(), F__iluc__(), F__ilutp__(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), save_mat5_binary_element(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), x_el_div(), and xpow().
|
inline |
Definition at line 252 of file Sparse.h.
Referenced by Sparse< T >::assign(), Sparse< T >::cat(), SparseComplexMatrix::row(), and SparseMatrix::row().
octave_idx_type Sparse< T >::compute_index | ( | const Array< octave_idx_type > & | ra_idx | ) | const |
|
inline |
Definition at line 471 of file Sparse.h.
References Sparse< T >::SparseRep::data().
|
inline |
Definition at line 475 of file Sparse.h.
References Sparse< T >::SparseRep::data().
|
inline |
Definition at line 470 of file Sparse.h.
References Sparse< T >::SparseRep::d.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), SparseMatrix::all_elements_are_zero(), SparseComplexMatrix::all_integers(), SparseMatrix::all_integers(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), SparseMatrix::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::any_element_not_one_or_zero(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T >::insert(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), octave::math::sparse_lu< lu_type >::Pc(), plus_or_minus(), octave::math::sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), x_el_div(), and xpow().
|
inline |
Definition at line 477 of file Sparse.h.
References Sparse< T >::SparseRep::d.
void Sparse< T >::delete_elements | ( | const idx_vector & | i | ) |
Definition at line 1161 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::colon, idx_vector::complement(), Sparse< T >::data(), octave::err_del_index_out_of_range(), idx_vector::extent(), idx_vector::is_colon_equiv(), idx_vector::is_cont_range(), lblookup(), idx_vector::length(), mx_inline_sub(), numel(), OCTAVE_LOCAL_BUFFER, idx_vector::orig_dimensions(), r, idx_vector::raw(), retval, Sparse< T >::ridx(), idx_vector::sorted(), and transpose().
Referenced by Sparse< T >::delete_elements().
void Sparse< T >::delete_elements | ( | const idx_vector & | i, |
const idx_vector & | j | ||
) |
Definition at line 1262 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::complement(), Sparse< T >::data(), Sparse< T >::delete_elements(), octave::err_del_index_out_of_range(), idx_vector::extent(), idx_vector::is_colon(), idx_vector::is_cont_range(), idx_vector::length(), mx_inline_sub(), Sparse< T >::nnz(), Sparse< T >::ridx(), transpose(), and Sparse< T >::transpose().
void Sparse< T >::delete_elements | ( | int | dim, |
const idx_vector & | i | ||
) |
Definition at line 1381 of file Sparse.cc.
References idx_vector::colon, and current_liboctave_error_handler.
Sparse< T > Sparse< T >::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2417 of file Sparse.cc.
References abs(), d, elem, and n.
Referenced by SparseBoolMatrix::diag(), and MSparse< T >::diag().
|
inline |
|
inline |
|
inline |
Definition at line 270 of file Sparse.h.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), Sparse< T >::Sparse(), Sparse< T >::assign(), binmap(), Sparse< T >::cat(), octave_base_sparse< T >::dims(), elem_xpow(), Fcomplex(), SparseComplexMatrix::max(), SparseMatrix::max(), SparseComplexMatrix::min(), and SparseMatrix::min().
|
inline |
Definition at line 367 of file Sparse.h.
References compute_index(), Sparse< T >::elem(), and ra_idx.
|
inline |
Definition at line 415 of file Sparse.h.
References compute_index(), Sparse< T >::elem(), and ra_idx.
|
inline |
|
inline |
|
inline |
Definition at line 355 of file Sparse.h.
References n.
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T >::checkelem(), Sparse< T >::elem(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::max(), SparseMatrix::max(), SparseComplexMatrix::min(), SparseMatrix::min(), plus_or_minus(), product(), and quotient().
|
inline |
|
inline |
|
inline |
Sparse< T > Sparse< T >::index | ( | const idx_vector & | i, |
bool | resize_ok = false |
||
) | const |
Definition at line 1393 of file Sparse.cc.
References idx_vector::as_array(), Array< T >::as_matrix(), idx_vector::colon, Array< T >::cols(), Array< T >::data(), elem, octave::err_index_out_of_range(), idx_vector::extent(), idx_vector::increment(), Array< T >::index(), Sparse< T >::index(), idx_vector::is_colon(), idx_vector::is_cont_range(), idx_vector::is_permutation(), idx_vector::is_range(), idx_vector::is_scalar(), idx_vector::isvector(), lblookup(), mx_inline_sub(), numel(), idx_vector::orig_dimensions(), dim_vector::redim(), Sparse< T >::resize1(), retval, Array< T >::rows(), Array< T >::transpose(), and Array< T >::xelem().
Referenced by Sparse< T >::assign(), F__ilutp__(), SparseBoolMatrix::index(), and Sparse< T >::index().
Sparse< T > Sparse< T >::index | ( | const idx_vector & | i, |
const idx_vector & | j, | ||
bool | resize_ok = false |
||
) | const |
Definition at line 1593 of file Sparse.cc.
References idx_vector::colon, Array< T >::data(), octave::err_index_out_of_range(), idx_vector::extent(), idx_vector::increment(), Array< T >::index(), Sparse< T >::index(), idx_vector::inverse_permutation(), idx_vector::is_colon(), idx_vector::is_colon_equiv(), idx_vector::is_cont_range(), idx_vector::is_permutation(), idx_vector::is_range(), idx_vector::is_scalar(), idx_vector::isvector(), lblookup(), idx_vector::length(), m, mx_inline_sub(), n, OCTAVE_LOCAL_BUFFER, idx_vector::raw(), Sparse< T >::resize(), retval, transpose(), and Array< T >::transpose().
|
inline |
Definition at line 645 of file Sparse.h.
References Sparse< T >::SparseRep::indices_ok().
Sparse< T > & Sparse< T >::insert | ( | const Sparse< T > & | a, |
const Array< octave_idx_type > & | idx | ||
) |
Definition at line 1094 of file Sparse.cc.
References octave_base_value::numel(), and ra_idx.
Sparse< T > & Sparse< T >::insert | ( | const Sparse< T > & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 1013 of file Sparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::nnz(), r, Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by MSparse< T >::insert(), and SparseBoolMatrix::insert().
|
inline |
Definition at line 443 of file Sparse.h.
Referenced by SparseBoolMatrix::ipermute(), and MSparse< T >::ipermute().
|
inline |
Definition at line 466 of file Sparse.h.
Referenced by Sparse< T >::cat(), and LuAminusSigmaB().
|
inline |
|
inlineprotected |
|
inline |
Definition at line 581 of file Sparse.h.
References Sparse< T >::cidx(), Sparse< T >::data(), Sparse< T >::maybe_compress(), and Sparse< T >::ridx().
Definition at line 430 of file Sparse.h.
References Sparse< T >::SparseRep::maybe_compress().
Referenced by elem_xpow(), Sparse< T >::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(), and octave_sparse_matrix::save_hdf5().
|
inline |
Definition at line 526 of file Sparse.h.
Referenced by octave_base_sparse< T >::mex_get_data().
|
inline |
Definition at line 528 of file Sparse.h.
Referenced by octave_base_sparse< T >::mex_get_ir().
|
inline |
Definition at line 533 of file Sparse.h.
Referenced by octave_base_sparse< T >::mex_get_jc().
|
inline |
Definition at line 505 of file Sparse.h.
References dim_vector::ndims().
Referenced by octave_base_sparse< T >::octave_base_sparse().
|
inline |
Actual number of nonzero terms.
Definition at line 238 of file Sparse.h.
References Sparse< T >::SparseRep::nnz().
Referenced by MatrixType::MatrixType(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), SparseMatrix::abs(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::all_elements_are_real(), SparseMatrix::all_elements_are_zero(), SparseComplexMatrix::all_integers(), SparseMatrix::all_integers(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), SparseMatrix::any_element_is_nan(), Sparse< T >::SparseRep::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::any_element_not_one_or_zero(), Sparse< T >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T >::cat(), Sparse< T >::delete_elements(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), Fccolamd(), Fcolamd(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), octave_sparse_matrix::index_vector(), Sparse< T >::SparseRep::indices_ok(), Sparse< T >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), max(), min(), octave_base_sparse< T >::nnz(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), plus_or_minus(), product(), quotient(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
|
inline |
Definition at line 242 of file Sparse.h.
References dim_vector::safe_numel().
Referenced by Sparse< T >::assign(), elem_xpow(), and octave_sparse_matrix::index_vector().
|
inline |
Amount of storage for nonzero elements.
This may differ from the actual number of elements, see nnz().
Definition at line 235 of file Sparse.h.
References Sparse< T >::SparseRep::length().
Referenced by dmperm_internal(), octave_base_sparse< T >::nzmax(), read_sparse_matrix(), and save_mat5_binary_element().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 702 of file Sparse.cc.
References Sparse< T >::SparseRep::count, Sparse< T >::dimensions, and Sparse< T >::rep.
Referenced by MSparse< T >::operator=(), and SparseBoolMatrix::operator=().
Sparse< T > Sparse< T >::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 904 of file Sparse.cc.
References Array< T >::numel(), and transpose().
Referenced by SparseBoolMatrix::permute(), and MSparse< T >::permute().
void Sparse< T >::print_info | ( | std::ostream & | os, |
const std::string & | prefix | ||
) | const |
T & Sparse< T >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 802 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
T Sparse< T >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) | const |
Definition at line 778 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
T & Sparse< T >::range_error | ( | const char * | fcn, |
octave_idx_type | i, | ||
octave_idx_type | j | ||
) |
T Sparse< T >::range_error | ( | const char * | fcn, |
octave_idx_type | i, | ||
octave_idx_type | j | ||
) | const |
T & Sparse< T >::range_error | ( | const char * | fcn, |
octave_idx_type | n | ||
) |
T Sparse< T >::range_error | ( | const char * | fcn, |
octave_idx_type | n | ||
) | const |
Sparse< T > Sparse< T >::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 825 of file Sparse.cc.
References dim_vector::ndims(), dim_vector::numel(), dim_vector::resize(), retval, and dim_vector::str().
Referenced by Sparse< T >::assign(), SparseBoolMatrix::reshape(), and MSparse< T >::reshape().
void Sparse< T >::resize | ( | const dim_vector & | dv | ) |
Definition at line 951 of file Sparse.cc.
References n, and dim_vector::ndims().
void Sparse< T >::resize | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) |
Definition at line 963 of file Sparse.cc.
Referenced by octave_base_sparse< T >::octave_base_sparse(), Sparse< T >::index(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), and octave_sparse_matrix::load_hdf5().
void Sparse< T >::resize1 | ( | octave_idx_type | n | ) |
Definition at line 932 of file Sparse.cc.
References octave::err_invalid_resize(), max(), and n.
Referenced by Sparse< T >::index().
|
inline |
Definition at line 480 of file Sparse.h.
References Sparse< T >::SparseRep::ridx().
|
inline |
Definition at line 488 of file Sparse.h.
References Sparse< T >::SparseRep::cridx().
|
inline |
Definition at line 479 of file Sparse.h.
References Sparse< T >::SparseRep::r.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Fcomplex(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Sparse< T >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), octave::math::sparse_lu< lu_type >::Pc(), plus_or_minus(), octave::math::sparse_lu< lu_type >::Pr(), product(), quotient(), read_mat5_binary_element(), read_sparse_matrix(), SparseComplexMatrix::row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), x_el_div(), and xpow().
|
inline |
Definition at line 490 of file Sparse.h.
References Sparse< T >::SparseRep::r.
|
inline |
Definition at line 250 of file Sparse.h.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep(), MatrixType::MatrixType(), Sparse< T >::Sparse(), SparseComplexMatrix::abs(), Sparse< T >::assign(), binmap(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_complex_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), SparseComplexMatrix::column(), SparseMatrix::column(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), plus_or_minus(), SparseComplexMatrix::prod(), SparseMatrix::prod(), product(), quotient(), read_sparse_matrix(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), x_el_div(), and xpow().
Sparse< T > Sparse< T >::sort | ( | Array< octave_idx_type > & | sidx, |
octave_idx_type | dim = 0 , |
||
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2310 of file Sparse.cc.
References Array< octave_idx_type >, ASCENDING, current_liboctave_error_handler, DESCENDING, m, OCTAVE_LOCAL_BUFFER, octave_sort< T >::set_compare(), octave_sort< T >::sort(), and Array< T >::transpose().
Sparse< T > Sparse< T >::sort | ( | octave_idx_type | dim = 0 , |
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2244 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().
Definition at line 272 of file Sparse.h.
Referenced by SparseBoolMatrix::squeeze(), and MSparse< T >::squeeze().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 559 of file Sparse.h.
Referenced by SparseComplexMatrix::too_large_for_float(), and SparseMatrix::too_large_for_float().
Definition at line 1105 of file Sparse.cc.
References retval.
Referenced by Sparse< T >::assign(), Sparse< T >::delete_elements(), SparseBoolMatrix::transpose(), and MSparse< T >::transpose().
|
inline |
Definition at line 499 of file Sparse.h.
References Sparse< T >::SparseRep::cidx().
|
inline |
Definition at line 498 of file Sparse.h.
References Sparse< T >::SparseRep::c.
Referenced by Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), mxArray_sparse::as_octave_value(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), Fsymamd(), Fsymbfact(), Fsymrcm(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), LuAminusSigmaB(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inline |
Definition at line 473 of file Sparse.h.
References Sparse< T >::SparseRep::data().
|
inline |
Definition at line 472 of file Sparse.h.
References Sparse< T >::SparseRep::d.
Referenced by Sparse< T >::Sparse(), mxArray_sparse::as_octave_value(), dmsolve_insert(), dmsolve_permute(), Fsymbfact(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), LuAminusSigmaB(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), read_mat5_binary_element(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inline |
Definition at line 313 of file Sparse.h.
References compute_index(), and ra_idx.
|
inline |
Definition at line 316 of file Sparse.h.
References compute_index(), and ra_idx.
|
inline |
Definition at line 307 of file Sparse.h.
References Sparse< T >::SparseRep::elem().
|
inline |
Definition at line 308 of file Sparse.h.
References Sparse< T >::SparseRep::celem().
|
inline |
Definition at line 293 of file Sparse.h.
References n.
Referenced by elem_xpow(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
|
inline |
|
inline |
Definition at line 486 of file Sparse.h.
References Sparse< T >::SparseRep::ridx().
|
inline |
Definition at line 485 of file Sparse.h.
References Sparse< T >::SparseRep::r.
Referenced by Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), mxArray_sparse::as_octave_value(), dmperm_internal(), dmsolve_insert(), dmsolve_permute(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), Fsymamd(), Fsymbfact(), Fsymrcm(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), LuAminusSigmaB(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
dim_vector Sparse< T >::dimensions |
Definition at line 160 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), and Sparse< T >::operator=().
Definition at line 158 of file Sparse.h.
Referenced by Sparse< T >::Sparse(), and Sparse< T >::operator=().