GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "idx-vector.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) |
Definition at line 42 of file idx-vector.h.
typedef T Sparse< T >::element_type |
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
Definition at line 209 of file Sparse.cc.
References Sparse< T >::dimensions, Sparse< T >::rep, dim_vector::safe_numel(), val, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
|
inline |
|
inline |
|
explicit |
Definition at line 64 of file Sparse.cc.
References Sparse< T >::cidx(), PermMatrix::col_perm_vec(), Sparse< T >::data(), Sparse< T >::ridx(), and PermMatrix::rows().
Sparse< T >::Sparse | ( | const dim_vector & | dv | ) |
Definition at line 237 of file Sparse.cc.
References current_liboctave_error_handler, dv, dim_vector::ndims(), and Sparse< T >::rep.
Sparse< T >::Sparse | ( | const Sparse< T > & | a, |
const dim_vector & | dv | ||
) |
Definition at line 248 of file Sparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::dims(), dv, k, Sparse< T >::nnz(), Sparse< T >::rep, Sparse< T >::ridx(), Sparse< T >::rows(), tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
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 290 of file Sparse.cc.
References a, c, Sparse< T >::change_capacity(), current_liboctave_error_handler, Sparse< T >::data(), Array< T >::data(), Sparse< T >::dimensions, idx_vector::extent(), k, idx_vector::length(), Sparse< T >::maybe_compress(), Array< T >::numel(), OCTAVE_LOCAL_BUFFER, OCTAVE_LOCAL_BUFFER_INIT, p, idx_vector::raw(), Sparse< T >::rep, Sparse< T >::ridx(), s, second(), idx_vector::sorted(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 650 of file Sparse.cc.
References a, Sparse< T >::cols(), current_liboctave_error_handler, Sparse< T >::dimensions, Array< T >::elem(), dim_vector::ndims(), Array< T >::numel(), Sparse< T >::rep, Sparse< T >::rows(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 2675 of file Sparse.cc.
Referenced by Sparse< T >::assign(), binmap(), SparseComplexMatrix::matrix_value(), and SparseMatrix::matrix_value().
void Sparse< T >::assign | ( | const idx_vector & | i, |
const Sparse< T > & | rhs | ||
) |
Definition at line 1822 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(), Sparse< T >::nnz(), numel(), Sparse< T >::numel(), Sparse< T >::reshape(), retval, Sparse< T >::ridx(), idx_vector::sorted(), and tmp.
Referenced by Sparse< T >::assign(), and Sparse< T >::cat().
void Sparse< T >::assign | ( | const idx_vector & | i, |
const idx_vector & | j, | ||
const Sparse< T > & | rhs | ||
) |
Definition at line 1974 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::is_vector(), k, idx_vector::length(), m, mx_inline_add(), mx_inline_add2(), Sparse< T >::nnz(), OCTAVE_LOCAL_BUFFER_INIT, retval, Sparse< T >::ridx(), Sparse< T >::rows(), idx_vector::sorted(), tmp, transpose(), Sparse< T >::transpose(), and u.
Definition at line 284 of file Sparse.h.
Referenced by octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), and octave_sparse_complex_matrix::try_narrowing_conversion().
|
inline |
|
static |
Definition at line 2577 of file Sparse.cc.
References Sparse< T >::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), dim_vector::concat(), Sparse< T >::data(), Sparse< T >::dims(), dv, dim_vector::hvcat(), Sparse< T >::is_empty(), k, Sparse< T >::nnz(), retval, Sparse< T >::ridx(), Sparse< T >::rows(), u, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by single_type_concat().
|
inline |
Definition at line 505 of file Sparse.h.
Referenced by SparseBoolMatrix::any(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Sparse< T >::index(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< T >::Sparse(), SparseBoolMatrix::sum(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 543 of file Sparse.h.
Referenced by SparseComplexMatrix::abs(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::index(), Sparse< T >::insert(), kron(), octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::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(), real(), row_norms(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), save_mat5_binary_element(), save_mat_binary_data(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 272 of file Sparse.h.
Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::insert(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), octave_sparse_matrix::map(), MatrixType::MatrixType(), max(), min(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), real(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), x_el_div(), and xpow().
|
inline |
Definition at line 273 of file Sparse.h.
Referenced by Sparse< T >::assign(), Sparse< T >::cat(), column_norms(), kron(), max(), min(), row_norms(), and Sparse< T >::sort().
octave_idx_type Sparse< T >::compute_index | ( | const Array< octave_idx_type > & | ra_idx | ) | const |
Definition at line 710 of file Sparse.cc.
References current_liboctave_error_handler, Array< T >::numel(), ra_idx, and retval.
|
inline |
Definition at line 521 of file Sparse.h.
Referenced by SparseMatrix::abs(), SparseComplexMatrix::abs(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::index(), Sparse< T >::insert(), kron(), octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), operator-(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::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(), real(), row_norms(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), save_mat5_binary_element(), save_mat5_element_length(), save_mat_binary_data(), Sparse< T >::sort(), 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(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().
|
inline |
|
inline |
|
inline |
void Sparse< T >::delete_elements | ( | const idx_vector & | i | ) |
Definition at line 1146 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(), idx_vector::raw(), retval, Sparse< T >::ridx(), idx_vector::sorted(), tmp, and transpose().
Referenced by Sparse< T >::delete_elements().
void Sparse< T >::delete_elements | ( | int | dim, |
const idx_vector & | i | ||
) |
Definition at line 1366 of file Sparse.cc.
References idx_vector::colon, and current_liboctave_error_handler.
void Sparse< T >::delete_elements | ( | const idx_vector & | i, |
const idx_vector & | j | ||
) |
Definition at line 1247 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(), k, idx_vector::length(), mx_inline_sub(), Sparse< T >::nnz(), Sparse< T >::ridx(), tmp, transpose(), and Sparse< T >::transpose().
Sparse< T > Sparse< T >::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2404 of file Sparse.cc.
References abs(), d, elem, k, tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by SparseBoolMatrix::diag(), and MSparse< Complex >::diag().
|
inline |
|
inline |
|
inline |
Definition at line 291 of file Sparse.h.
Referenced by Sparse< T >::assign(), binmap(), Sparse< T >::cat(), elem_xpow(), idx_vector::idx_vector_rep::idx_vector_rep(), and Sparse< T >::Sparse().
|
inline |
Definition at line 374 of file Sparse.h.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< bool >::checkelem(), Sparse< bool >::elem(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), plus_or_minus(), product(), and quotient().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sparse< T > Sparse< T >::index | ( | const idx_vector & | i, |
bool | resize_ok = false |
||
) | const |
Definition at line 1378 of file Sparse.cc.
References idx_vector::as_array(), Array< T >::as_matrix(), Sparse< T >::change_capacity(), Sparse< T >::cidx(), idx_vector::colon, Array< T >::cols(), Sparse< T >::data(), dims, elem, octave::err_index_out_of_range(), idx_vector::extent(), idx_vector::increment(), Sparse< T >::index(), Array< 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::is_vector(), k, lblookup(), mx_inline_sub(), numel(), idx_vector::orig_dimensions(), dim_vector::redim(), Sparse< T >::resize1(), retval, Sparse< T >::ridx(), Array< T >::rows(), Sparse(), tmp, Sparse< T >::transpose(), Array< T >::transpose(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by Sparse< T >::assign(), 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 1578 of file Sparse.cc.
References Sparse< T >::change_capacity(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::data(), dims, octave::err_index_out_of_range(), 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::is_scalar(), idx_vector::is_vector(), k, lblookup(), idx_vector::length(), m, mx_inline_sub(), OCTAVE_LOCAL_BUFFER, idx_vector::raw(), Sparse< T >::resize(), retval, Sparse< T >::ridx(), tmp, transpose(), Sparse< T >::transpose(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 696 of file Sparse.h.
Referenced by octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), octave_sparse_matrix::load_binary(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), and octave_sparse_matrix::load_hdf5().
Sparse< T > & Sparse< T >::insert | ( | const Sparse< T > & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 998 of file Sparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::nnz(), Sparse< T >::ridx(), Sparse< T >::rows(), and tmp.
Referenced by MSparse< Complex >::insert(), and SparseBoolMatrix::insert().
Sparse< T > & Sparse< T >::insert | ( | const Sparse< T > & | a, |
const Array< octave_idx_type > & | idx | ||
) |
Definition at line 1079 of file Sparse.cc.
References current_liboctave_error_handler, Array< T >::numel(), and ra_idx.
|
inline |
Definition at line 494 of file Sparse.h.
Referenced by MSparse< Complex >::ipermute(), and SparseBoolMatrix::ipermute().
Definition at line 517 of file Sparse.h.
Referenced by Sparse< T >::cat(), and LuAminusSigmaB().
|
inline |
|
inlineprotected |
Definition at line 481 of file Sparse.h.
Referenced by atan2(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), do_tril(), do_triu(), elem_xpow(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), imag(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), max(), min(), plus_or_minus(), product(), quotient(), real(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), times_or_divide(), times_or_divides(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Actual number of nonzero terms.
Definition at line 253 of file Sparse.h.
Referenced by Sparse< T >::SparseRep::any_element_is_nan(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), conj(), Sparse< T >::delete_elements(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gccolamd(), Gcolamd(), Gsymbfact(), imag(), octave_sparse_matrix::index_vector(), Sparse< T >::SparseRep::indices_ok(), Sparse< T >::insert(), kron(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), MatrixType::MatrixType(), max(), min(), operator-(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), quotient(), real(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), Sparse< bool >::Sparse(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
|
inline |
Definition at line 257 of file Sparse.h.
Referenced by Sparse< T >::assign(), elem_xpow(), octave_sparse_matrix::index_vector(), and Sparse< T >::sort().
|
inline |
Amount of storage for nonzero elements.
This may differ from the actual number of elements, see nnz().
Definition at line 245 of file Sparse.h.
Referenced by dmperm_internal(), read_sparse_matrix(), and save_mat5_binary_element().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 692 of file Sparse.cc.
References Sparse< T >::dimensions, and Sparse< T >::rep.
Referenced by MSparse< Complex >::operator=(), and SparseBoolMatrix::operator=().
Sparse< T > Sparse< T >::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 889 of file Sparse.cc.
References Array< T >::numel(), and transpose().
Referenced by MSparse< Complex >::permute(), and SparseBoolMatrix::permute().
void Sparse< T >::print_info | ( | std::ostream & | os, |
const std::string & | prefix | ||
) | const |
T Sparse< T >::range_error | ( | const char * | fcn, |
octave_idx_type | n | ||
) | const |
T & Sparse< T >::range_error | ( | const char * | fcn, |
octave_idx_type | n | ||
) |
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 | i, | ||
octave_idx_type | j | ||
) |
T Sparse< T >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) | const |
Definition at line 762 of file Sparse.cc.
References Array< T >::numel(), ra_idx, and string.
T & Sparse< T >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 786 of file Sparse.cc.
References Array< T >::numel(), ra_idx, and string.
Sparse< T > Sparse< T >::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 809 of file Sparse.cc.
References k, dim_vector::ndims(), dim_vector::numel(), dim_vector::resize(), retval, dim_vector::str(), string, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by Sparse< T >::assign(), MSparse< Complex >::reshape(), and SparseBoolMatrix::reshape().
void Sparse< T >::resize | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) |
Definition at line 948 of file Sparse.cc.
References c, k, min(), and u.
Referenced by Sparse< T >::index(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), max(), and min().
void Sparse< T >::resize | ( | const dim_vector & | dv | ) |
Definition at line 936 of file Sparse.cc.
References dv, and dim_vector::ndims().
void Sparse< T >::resize1 | ( | octave_idx_type | n | ) |
Definition at line 917 of file Sparse.cc.
References octave::err_invalid_resize(), and max().
Referenced by Sparse< T >::index().
|
inline |
Definition at line 530 of file Sparse.h.
Referenced by SparseComplexMatrix::abs(), SparseBoolMatrix::any(), octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), conj(), octave_sparse_matrix::convert_to_str_internal(), Sparse< T >::delete_elements(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::index(), Sparse< T >::insert(), kron(), octave_sparse_bool_matrix::load_binary(), octave_sparse_complex_matrix::load_binary(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Sparse< bool >::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), operator<<(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::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(), real(), row_norms(), octave_sparse_bool_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), save_mat5_binary_element(), save_mat_binary_data(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseBoolMatrix::sum(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 271 of file Sparse.h.
Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_matrix::char_array_value(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), idx_vector::idx_vector_rep::idx_vector_rep(), imag(), Sparse< T >::insert(), kron(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), octave_sparse_matrix::map(), MatrixType::MatrixType(), max(), min(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), quotient(), read_sparse_matrix(), real(), row_norms(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::sort(), Sparse< T >::Sparse(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), x_el_div(), and xpow().
Sparse< T > Sparse< T >::sort | ( | octave_idx_type | dim = 0 , |
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2233 of file Sparse.cc.
References ASCENDING, Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), DESCENDING, k, m, Sparse< T >::numel(), Sparse< T >::ridx(), Sparse< T >::rows(), octave_sort< T >::set_compare(), octave_sort< T >::sort(), and Sparse< T >::transpose().
Referenced by dmsolve_permute().
Sparse< T > Sparse< T >::sort | ( | Array< octave_idx_type > & | sidx, |
octave_idx_type | dim = 0 , |
||
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2298 of file Sparse.cc.
References ASCENDING, Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), DESCENDING, k, m, Sparse< T >::numel(), OCTAVE_LOCAL_BUFFER, Sparse< T >::ridx(), Sparse< T >::rows(), octave_sort< T >::set_compare(), octave_sort< T >::sort(), Sparse< T >::transpose(), and Array< T >::transpose().
Definition at line 293 of file Sparse.h.
Referenced by MSparse< Complex >::squeeze(), and SparseBoolMatrix::squeeze().
Definition at line 1090 of file Sparse.cc.
References k, retval, tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by Sparse< T >::assign(), Sparse< T >::delete_elements(), Sparse< T >::index(), Sparse< T >::sort(), SparseBoolMatrix::transpose(), and MSparse< Complex >::transpose().
|
inline |
Definition at line 549 of file Sparse.h.
Referenced by SparseBoolMatrix::any(), mxArray_sparse::as_octave_value(), atan2(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), Sparse< T >::diag(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), Gsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T >::index(), octave_sparse_matrix::load_binary(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), SparseMatrix::max(), SparseComplexMatrix::max(), max(), SparseMatrix::min(), SparseComplexMatrix::min(), min(), octinternal_do_mul_colpm_sm(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), Sparse< T >::reshape(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), SparseBoolMatrix::sum(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inline |
|
inline |
Definition at line 523 of file Sparse.h.
Referenced by mxArray_sparse::as_octave_value(), atan2(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), Sparse< T >::diag(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gsymbfact(), SparseComplexMatrix::hermitian(), Sparse< T >::index(), octave_sparse_matrix::load_binary(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), SparseMatrix::max(), SparseComplexMatrix::max(), max(), SparseMatrix::min(), SparseComplexMatrix::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(), Sparse< T >::reshape(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), SparseBoolMatrix::sum(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inline |
|
inline |
Definition at line 312 of file Sparse.h.
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 |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 536 of file Sparse.h.
Referenced by mxArray_sparse::as_octave_value(), atan2(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), Sparse< T >::diag(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gamd(), Gccolamd(), Gcolamd(), Gsymbfact(), Gsymrcm(), SparseComplexMatrix::hermitian(), Sparse< T >::index(), octave_sparse_matrix::load_binary(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), SparseMatrix::max(), SparseComplexMatrix::max(), max(), SparseMatrix::min(), SparseComplexMatrix::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(), Sparse< T >::reshape(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), octave::math::sparse_lu< lu_type >::sparse_lu(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V().
|
inline |
dim_vector Sparse< T >::dimensions |
Definition at line 170 of file Sparse.h.
Referenced by Sparse< T >::operator=(), and Sparse< T >::Sparse().
Definition at line 168 of file Sparse.h.
Referenced by Sparse< T >::operator=(), Sparse< T >::Sparse(), and Sparse< bool >::Sparse().