#include "Sparse.h"
Classes | |
class | SparseRep |
Public Types | |
typedef T | element_type |
Static Public Member Functions | |
static Sparse< T, Alloc > | cat (int dim, octave_idx_type n, const Sparse< T, Alloc > *sparse_list) |
Protected Member Functions | |
void | make_unique () |
Protected Attributes | |
dim_vector | m_dimensions |
Sparse< T, Alloc >::SparseRep * | m_rep |
typedef T Sparse< T, Alloc >::element_type |
Definition at line 259 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_count, and Sparse< T, Alloc >::m_rep.
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
Definition at line 200 of file Sparse.cc.
References Sparse< T, Alloc >::m_dimensions, Sparse< T, Alloc >::m_rep, dim_vector::safe_numel(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 229 of file Sparse.cc.
References Sparse< T, Alloc >::cidx(), PermMatrix::col_perm_vec(), Sparse< T, Alloc >::data(), n, Sparse< T, Alloc >::ridx(), and PermMatrix::rows().
|
inline |
Definition at line 310 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_count, and Sparse< T, Alloc >::m_rep.
Sparse< T, Alloc >::Sparse | ( | const dim_vector & | dv | ) |
Definition at line 248 of file Sparse.cc.
References Sparse< T, Alloc >::m_rep, and dim_vector::ndims().
Sparse< T, Alloc >::Sparse | ( | const Sparse< T, Alloc > & | a, |
const dim_vector & | dv | ||
) |
Definition at line 260 of file Sparse.cc.
References Sparse< T, Alloc >::cols(), and Sparse< T, Alloc >::rows().
Sparse< T, Alloc >::Sparse | ( | const Array< T > & | a, |
const octave::idx_vector & | r, | ||
const octave::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 672 of file Sparse.cc.
References Sparse< T, Alloc >::cols(), Array< T, Alloc >::elem(), len, Sparse< T, Alloc >::m_dimensions, Sparse< T, Alloc >::m_rep, dim_vector::ndims(), Array< T, Alloc >::numel(), Sparse< T, Alloc >::rows(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Definition at line 751 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::any_element_is_nan(), and Sparse< T, Alloc >::m_rep.
Definition at line 2767 of file Sparse.cc.
References Array< T, Alloc >::xelem().
Referenced by binmap(), SparseComplexMatrix::matrix_value(), and SparseMatrix::matrix_value().
void Sparse< T, Alloc >::assign | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j, | ||
const Sparse< T, Alloc > & | rhs | ||
) |
Definition at line 2045 of file Sparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::columns(), Sparse< T, Alloc >::data(), Sparse< T, Alloc >::index(), m, mx_inline_add(), mx_inline_add2(), n, Sparse< T, Alloc >::nnz(), OCTAVE_LOCAL_BUFFER_INIT, Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
void Sparse< T, Alloc >::assign | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j, | ||
const T & | rhs | ||
) |
void Sparse< T, Alloc >::assign | ( | const octave::idx_vector & | i, |
const Sparse< T, Alloc > & | rhs | ||
) |
Definition at line 1881 of file Sparse.cc.
References Sparse< T, Alloc >::cols(), n, Sparse< T, Alloc >::numel(), numel(), and Sparse< T, Alloc >::reshape().
Referenced by octave_base_sparse< T >::assign(), and Sparse< T, Alloc >::cat().
void Sparse< T, Alloc >::assign | ( | const octave::idx_vector & | i, |
const T & | rhs | ||
) |
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().
|
static |
Definition at line 2667 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().
|
inline |
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(), and SparseBoolMatrix::sum().
|
inline |
Definition at line 446 of file Sparse.h.
References compute_index(), ra_idx, and Sparse< T, Alloc >::range_error().
|
inline |
Definition at line 502 of file Sparse.h.
References compute_index(), Sparse< T, Alloc >::elem(), ra_idx, and Sparse< T, Alloc >::range_error().
|
inline |
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().
|
inline |
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().
|
inline |
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().
|
inline |
Definition at line 486 of file Sparse.h.
References n, numel(), Sparse< T, Alloc >::range_error(), and Sparse< T, Alloc >::xelem().
|
inline |
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 Sparse< T, Alloc >::Sparse(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), 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(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), elem_xdiv(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fsymbfact(), Sparse< T, Alloc >::get_col_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_jc(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), SparseComplexMatrix::prod(), SparseMatrix::prod(), product(), quotient(), 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(), and times_or_divides().
|
inline |
Definition at line 607 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_cidx, and Sparse< T, Alloc >::m_rep.
|
inline |
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().
|
inline |
Definition at line 605 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::ccidx(), and Sparse< T, Alloc >::m_rep.
|
inline |
Definition at line 352 of file Sparse.h.
References Sparse< T, Alloc >::dim2().
Referenced by MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), 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(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), elem_xdiv(), elem_xpow(), F__ilu0__(), F__iluc__(), F__ilutp__(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), Sparse< T, Alloc >::map(), octave_sparse_matrix::map(), max(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), times_or_divide(), times_or_divides(), and xpow().
|
inline |
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 SparseMatrix::row().
octave_idx_type Sparse< T, Alloc >::compute_index | ( | const Array< octave_idx_type > & | ra_idx | ) | const |
Definition at line 734 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
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 Sparse< T, Alloc >::Sparse(), sparse_lu< lu_type >::sparse_lu(), 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(), SparseBoolMatrix::any(), 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, Alloc >::assign(), binmap(), 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(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), elem_xdiv(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_data(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), operator-(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_sparse_matrix(), SparseComplexMatrix::row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), Sparse< T, Alloc >::test(), times_or_divide(), and times_or_divides().
Definition at line 581 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::m_data, and Sparse< T, Alloc >::m_rep.
|
inline |
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().
|
inline |
Definition at line 579 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), and Sparse< T, Alloc >::m_rep.
void Sparse< T, Alloc >::delete_elements | ( | const octave::idx_vector & | i | ) |
Definition at line 1198 of file Sparse.cc.
References err_del_index_out_of_range(), and numel().
void Sparse< T, Alloc >::delete_elements | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j | ||
) |
Definition at line 1300 of file Sparse.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::data(), err_del_index_out_of_range(), mx_inline_sub(), Sparse< T, Alloc >::nnz(), and Sparse< T, Alloc >::ridx().
void Sparse< T, Alloc >::delete_elements | ( | int | dim, |
const octave::idx_vector & | i | ||
) |
Definition at line 1421 of file Sparse.cc.
References current_liboctave_error_handler.
Sparse< T, Alloc > Sparse< T, Alloc >::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2493 of file Sparse.cc.
References d.
Referenced by SparseBoolMatrix::diag(), and MSparse< T >::diag().
|
inline |
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().
|
inline |
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().
|
inline |
Definition at line 371 of file Sparse.h.
References Sparse< T, Alloc >::m_dimensions.
Referenced by binmap(), Sparse< T, Alloc >::cat(), octave_base_sparse< T >::dims(), elem_xpow(), Fcomplex(), map_2_xldexp_sparse(), SparseComplexMatrix::max(), SparseMatrix::max(), SparseComplexMatrix::min(), and SparseMatrix::min().
|
inline |
Definition at line 468 of file Sparse.h.
References compute_index(), Sparse< T, Alloc >::elem(), and ra_idx.
|
inline |
Definition at line 516 of file Sparse.h.
References compute_index(), Sparse< T, Alloc >::elem(), and ra_idx.
|
inline |
Definition at line 462 of file Sparse.h.
References Sparse< T, Alloc >::make_unique(), and Sparse< T, Alloc >::xelem().
|
inline |
Definition at line 514 of file Sparse.h.
References Sparse< T, Alloc >::xelem().
|
inline |
Definition at line 456 of file Sparse.h.
References Sparse< T, Alloc >::make_unique(), n, and Sparse< T, Alloc >::xelem().
Referenced by Sparse< T, Alloc >::checkelem(), Sparse< T, Alloc >::elem(), SparseMatrix::max(), SparseMatrix::min(), plus_or_minus(), product(), and quotient().
|
inline |
Definition at line 512 of file Sparse.h.
References n, and Sparse< T, Alloc >::xelem().
|
inline |
Definition at line 356 of file Sparse.h.
References Sparse< T, Alloc >::cidx().
|
inline |
Definition at line 355 of file Sparse.h.
References Sparse< T, Alloc >::ridx().
Sparse< T, Alloc > Sparse< T, Alloc >::index | ( | const octave::idx_vector & | i, |
bool | resize_ok = false |
||
) | const |
Definition at line 1434 of file Sparse.cc.
References numel(), dim_vector::redim(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Referenced by Sparse< T, Alloc >::assign(), F__ilutp__(), SparseBoolMatrix::index(), and Sparse< T, Alloc >::index().
Sparse< T, Alloc > Sparse< T, Alloc >::index | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j, | ||
bool | resize_ok = false |
||
) | const |
Definition at line 1635 of file Sparse.cc.
References Sparse< T, Alloc >::index(), m, n, and Sparse< T, Alloc >::resize().
Definition at line 749 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::indices_ok(), and Sparse< T, Alloc >::m_rep.
Sparse< T, Alloc > & Sparse< T, Alloc >::insert | ( | const Sparse< T, Alloc > & | a, |
const Array< octave_idx_type > & | idx | ||
) |
Definition at line 1127 of file Sparse.cc.
References octave_base_value::numel(), and ra_idx.
Sparse< T, Alloc > & Sparse< T, Alloc >::insert | ( | const Sparse< T, Alloc > & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 1044 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().
|
inline |
Definition at line 545 of file Sparse.h.
References Sparse< T, Alloc >::permute().
Referenced by SparseBoolMatrix::ipermute(), and MSparse< T >::ipermute().
Definition at line 570 of file Sparse.h.
References Sparse< T, Alloc >::cols(), and Sparse< T, Alloc >::rows().
Referenced by Sparse< T, Alloc >::cat().
Definition at line 568 of file Sparse.h.
References Sparse< T, Alloc >::dim1(), and Sparse< T, Alloc >::dim2().
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().
|
inline |
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().
|
inline |
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(), elem_xpow(), 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(), and octave_sparse_matrix::save_hdf5().
|
inline |
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().
|
inline |
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::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, Alloc >::SparseRep::any_element_is_nan(), Sparse< T >::SparseRep::any_element_is_nan(), SparseMatrix::any_element_is_negative(), SparseMatrix::any_element_not_one_or_zero(), Sparse< T, Alloc >::assign(), binmap(), Sparse< T, Alloc >::cat(), Sparse< T, Alloc >::change_capacity(), Sparse< T, Alloc >::delete_elements(), elem_xpow(), Fccolamd(), Fcolamd(), Fcomplex(), find_nonzero_elem_idx(), Fsymbfact(), SparseComplexMatrix::hermitian(), octave_sparse_matrix::index_vector(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::map(), map_2_xldexp_sparse(), 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(), Sparse< T, Alloc >::test(), times_or_divide(), and times_or_divides().
|
inline |
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(), and map_2_xldexp_sparse().
|
inline |
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(), octave_base_sparse< T >::nzmax(), and read_sparse_matrix().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sparse< T, Alloc > & Sparse< T, Alloc >::operator= | ( | const Sparse< T, Alloc > & | a | ) |
Definition at line 715 of file Sparse.cc.
References Sparse< T, Alloc >::SparseRep::m_count, Sparse< T, Alloc >::m_dimensions, and Sparse< T, Alloc >::m_rep.
Referenced by MSparse< T >::operator=(), and SparseBoolMatrix::operator=().
Sparse< T, Alloc > Sparse< T, Alloc >::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 931 of file Sparse.cc.
References Array< T, Alloc >::numel().
Referenced by Sparse< T, Alloc >::ipermute(), SparseBoolMatrix::permute(), and MSparse< T >::permute().
T & Sparse< T, Alloc >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 823 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
T Sparse< T, Alloc >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) | const |
Definition at line 798 of file Sparse.cc.
References n, octave_base_value::numel(), and ra_idx.
T & Sparse< T, Alloc >::range_error | ( | const char * | fcn, |
octave_idx_type | i, | ||
octave_idx_type | j | ||
) |
T Sparse< T, Alloc >::range_error | ( | const char * | fcn, |
octave_idx_type | i, | ||
octave_idx_type | j | ||
) | const |
T & Sparse< T, Alloc >::range_error | ( | const char * | fcn, |
octave_idx_type | n | ||
) |
T Sparse< T, Alloc >::range_error | ( | const char * | fcn, |
octave_idx_type | n | ||
) | const |
Definition at line 758 of file Sparse.cc.
References n.
Referenced by Sparse< T, Alloc >::checkelem().
Sparse< T, Alloc > Sparse< T, Alloc >::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 848 of file Sparse.cc.
References dim_vector::ndims(), dim_vector::numel(), dim_vector::resize(), dim_vector::str(), Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Referenced by Sparse< T, Alloc >::assign(), SparseBoolMatrix::reshape(), and MSparse< T >::reshape().
void Sparse< T, Alloc >::resize | ( | const dim_vector & | dv | ) |
Definition at line 980 of file Sparse.cc.
References n, and dim_vector::ndims().
void Sparse< T, Alloc >::resize | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) |
Definition at line 993 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().
void Sparse< T, Alloc >::resize1 | ( | octave_idx_type | n | ) |
Definition at line 960 of file Sparse.cc.
References err_invalid_resize(), max(), and n.
|
inline |
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 Sparse< T, Alloc >::Sparse(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T, Alloc >::assign(), binmap(), 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(), SparseMatrix::column(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T, Alloc >::delete_elements(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), elem_xdiv(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fsymbfact(), Sparse< T, Alloc >::get_row_index(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), Sparse< T, Alloc >::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), octave_base_sparse< T >::mex_get_ir(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), SparseComplexMatrix::operator!(), SparseMatrix::operator!(), SparseBoolMatrix::operator==(), SparseComplexMatrix::operator==(), SparseMatrix::operator==(), sparse_lu< lu_type >::Pc(), plus_or_minus(), sparse_lu< lu_type >::Pr(), product(), quotient(), read_sparse_matrix(), SparseComplexMatrix::row(), SparseMatrix::row(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), SparseBoolMatrix::sum(), times_or_divide(), and times_or_divides().
|
inline |
Definition at line 594 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::m_ridx.
|
inline |
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().
|
inline |
Definition at line 592 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::cridx(), and Sparse< T, Alloc >::m_rep.
|
inline |
Definition at line 351 of file Sparse.h.
References Sparse< T, Alloc >::dim1().
Referenced by MatrixType::MatrixType(), Sparse< T, Alloc >::Sparse(), SparseComplexMatrix::abs(), Sparse< T, Alloc >::assign(), binmap(), 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(), SparseMatrix::column(), SparseBoolMatrix::concat(), SparseComplexMatrix::concat(), SparseMatrix::concat(), octave_sparse_matrix::convert_to_str_internal(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), elem_xdiv(), elem_xpow(), Famd(), Fccolamd(), Fcolamd(), Fcomplex(), Fcsymamd(), Fetree(), find_nonzero_elem_idx(), Fsymamd(), Fsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::insert(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), Sparse< T, Alloc >::isempty(), SparseComplexMatrix::ishermitian(), SparseMatrix::issymmetric(), Sparse< T, Alloc >::map(), 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(), times_or_divide(), times_or_divides(), Sparse< T, Alloc >::xelem(), and xpow().
Sparse< T, Alloc > Sparse< T, Alloc >::sort | ( | Array< octave_idx_type > & | sidx, |
octave_idx_type | dim = 0 , |
||
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2385 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().
Sparse< T, Alloc > Sparse< T, Alloc >::sort | ( | octave_idx_type | dim = 0 , |
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2318 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().
|
inline |
Definition at line 373 of file Sparse.h.
Referenced by SparseBoolMatrix::squeeze(), and MSparse< T >::squeeze().
|
inline |
Definition at line 656 of file Sparse.h.
References Sparse< T, Alloc >::data(), and Sparse< T, Alloc >::nnz().
|
inline |
Definition at line 663 of file Sparse.h.
Referenced by SparseComplexMatrix::too_large_for_float(), and SparseMatrix::too_large_for_float().
Definition at line 1140 of file Sparse.cc.
References Sparse< T, Alloc >::xcidx(), Sparse< T, Alloc >::xdata(), and Sparse< T, Alloc >::xridx().
Referenced by SparseBoolMatrix::transpose(), and MSparse< T >::transpose().
|
inline |
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(), binmap(), Sparse< T, Alloc >::cat(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), Fsymamd(), Fsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseMatrix::max(), max(), SparseMatrix::min(), min(), Sparse< T, Alloc >::reshape(), SparseBoolMatrix::sum(), and Sparse< T, Alloc >::transpose().
|
inline |
Definition at line 603 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::cidx(), 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(), binmap(), Sparse< T, Alloc >::cat(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseMatrix::max(), max(), SparseMatrix::min(), min(), Sparse< T, Alloc >::reshape(), SparseBoolMatrix::sum(), and Sparse< T, Alloc >::transpose().
|
inline |
Definition at line 577 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::data(), and Sparse< T, Alloc >::m_rep.
|
inline |
Definition at line 415 of file Sparse.h.
References compute_index(), ra_idx, and Sparse< T, Alloc >::xelem().
|
inline |
Definition at line 418 of file Sparse.h.
References compute_index(), ra_idx, and Sparse< T, Alloc >::xelem().
|
inline |
Definition at line 409 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::elem(), and Sparse< T, Alloc >::m_rep.
|
inline |
Definition at line 410 of file Sparse.h.
References Sparse< T, Alloc >::SparseRep::celem(), and Sparse< T, Alloc >::m_rep.
|
inline |
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(), and Sparse< T, Alloc >::xelem().
|
inline |
Definition at line 402 of file Sparse.h.
References n, Sparse< T, Alloc >::rows(), and Sparse< T, Alloc >::xelem().
|
inline |
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(), binmap(), Sparse< T, Alloc >::cat(), Famd(), Fccolamd(), Fcolamd(), Fcsymamd(), Fetree(), Fsymamd(), Fsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T, Alloc >::index(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), SparseMatrix::max(), max(), SparseMatrix::min(), min(), Sparse< T, Alloc >::reshape(), and Sparse< T, Alloc >::transpose().
|
inline |
Definition at line 590 of file Sparse.h.
References Sparse< T, Alloc >::m_rep, and Sparse< T, Alloc >::SparseRep::ridx().
|
protected |
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=().
|
protected |
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().