GNU Octave
4.0.0
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) |
Private Member Functions | |
Sparse< T >::SparseRep * | nil_rep (void) const |
Definition at line 40 of file idx-vector.h.
typedef T Sparse< T >::element_type |
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
Definition at line 196 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 56 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 224 of file Sparse.cc.
References current_liboctave_error_handler, dim_vector::length(), and Sparse< T >::rep.
Sparse< T >::Sparse | ( | const Sparse< T > & | a, |
const dim_vector & | dv | ||
) |
Definition at line 235 of file Sparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::dims(), Sparse< T >::nnz(), Sparse< T >::rep, Sparse< T >::ridx(), Sparse< T >::rows(), 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 279 of file Sparse.cc.
References Sparse< T >::change_capacity(), current_liboctave_error_handler, Array< T >::data(), Sparse< T >::data(), Sparse< T >::dimensions, idx_vector::extent(), idx_vector::length(), Sparse< T >::maybe_compress(), Array< T >::numel(), OCTAVE_LOCAL_BUFFER, OCTAVE_LOCAL_BUFFER_INIT, idx_vector::raw(), Sparse< T >::rep, Sparse< T >::ridx(), idx_vector::sorted(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 639 of file Sparse.cc.
References Sparse< T >::cols(), current_liboctave_error_handler, Sparse< T >::dimensions, Array< T >::elem(), Array< T >::length(), dim_vector::length(), Sparse< T >::rep, Sparse< T >::rows(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 2685 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 1834 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(), idx_vector::extent(), Array< T >::fortran_vec(), gripe_invalid_assignment_size(), 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(), Sparse< T >::numel(), Sparse< T >::reshape(), Sparse< T >::ridx(), and idx_vector::sorted().
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 1986 of file Sparse.cc.
References Sparse< T >::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), Sparse< T >::data(), idx_vector::extent(), gripe_assignment_dimension_mismatch(), 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(), idx_vector::length(), mx_inline_add(), mx_inline_add2(), Sparse< T >::nnz(), OCTAVE_LOCAL_BUFFER_INIT, Sparse< T >::ridx(), Sparse< T >::rows(), idx_vector::sorted(), transpose(), and Sparse< T >::transpose().
|
inline |
Definition at line 247 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::capacity().
|
static |
Definition at line 2584 of file Sparse.cc.
References Sparse< T >::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), dim_vector::concat(), current_liboctave_error_handler, Sparse< T >::data(), Sparse< T >::dims(), dim_vector::hvcat(), Sparse< T >::is_empty(), Sparse< T >::nnz(), Sparse< T >::ridx(), Sparse< T >::rows(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by single_type_concat().
|
inline |
Definition at line 493 of file Sparse.h.
Referenced by SparseBoolMatrix::any(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Sparse< T >::index(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), qrsolve(), Sparse< T >::Sparse(), SparseBoolMatrix::sum(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 531 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(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), 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==(), plus_or_minus(), 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(), SparseComplexLU::SparseComplexLU(), SparseComplexMatrix::SparseComplexMatrix(), SparseLU::SparseLU(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), times_or_divide(), times_or_divides(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), vector_product(), x_el_div(), and xpow().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 264 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(), chol2inv(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), F__ilutp__(), F__luinc__(), Fcomplex(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gamd(), Gccolamd(), Gcolamd(), Gcsymamd(), Getree(), Gsymamd(), 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(), qrsolve(), 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(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseQR::SparseQR_rep::SparseQR_rep(), 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(), x_el_div(), and xpow().
|
inline |
Definition at line 265 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 701 of file Sparse.cc.
References current_liboctave_error_handler, Array< T >::length(), and ra_idx.
|
inline |
Definition at line 509 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(), SparseMatrix::dinverse(), SparseComplexMatrix::dinverse(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), 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==(), plus_or_minus(), 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(), SparseComplexLU::SparseComplexLU(), SparseComplexMatrix::SparseComplexMatrix(), SparseLU::SparseLU(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), times_or_divide(), times_or_divides(), SparseMatrix::tinverse(), SparseComplexMatrix::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 1152 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::colon, idx_vector::complement(), Sparse< T >::data(), idx_vector::extent(), gripe_del_index_out_of_range(), idx_vector::is_colon_equiv(), idx_vector::is_cont_range(), lblookup(), idx_vector::length(), mx_inline_sub(), OCTAVE_LOCAL_BUFFER, idx_vector::orig_dimensions(), idx_vector::raw(), Sparse< T >::ridx(), idx_vector::sorted(), and transpose().
Referenced by Sparse< T >::delete_elements().
void Sparse< T >::delete_elements | ( | int | dim, |
const idx_vector & | i | ||
) |
Definition at line 1371 of file Sparse.cc.
References idx_vector::colon.
void Sparse< T >::delete_elements | ( | const idx_vector & | i, |
const idx_vector & | j | ||
) |
Definition at line 1252 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::complement(), Sparse< T >::data(), Sparse< T >::delete_elements(), idx_vector::extent(), gripe_del_index_out_of_range(), 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().
Sparse< T > Sparse< T >::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2411 of file Sparse.cc.
References abs(), d, elem, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by SparseBoolMatrix::diag(), and MSparse< Complex >::diag().
|
inline |
|
inline |
|
inline |
Definition at line 283 of file Sparse.h.
Referenced by binmap(), Sparse< T >::cat(), octave_base_sparse< SparseComplexMatrix >::dims(), elem_xpow(), Fcomplex(), idx_vector::idx_vector_rep::idx_vector_rep(), and Sparse< T >::Sparse().
|
inline |
Definition at line 362 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 1387 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(), elem, idx_vector::extent(), gripe_index_out_of_range(), 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::is_vector(), lblookup(), mx_inline_sub(), idx_vector::orig_dimensions(), dim_vector::redim(), Sparse< T >::resize1(), Sparse< T >::ridx(), Array< T >::rows(), Array< T >::transpose(), Sparse< T >::transpose(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
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 1590 of file Sparse.cc.
References Sparse< T >::change_capacity(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::data(), idx_vector::extent(), gripe_index_out_of_range(), 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(), lblookup(), idx_vector::length(), mx_inline_sub(), OCTAVE_LOCAL_BUFFER, idx_vector::raw(), Sparse< T >::resize(), Sparse< T >::ridx(), transpose(), Sparse< T >::transpose(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 684 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(), and Sparse< T >::rows().
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 1082 of file Sparse.cc.
References Array< T >::length().
|
inline |
Definition at line 482 of file Sparse.h.
Referenced by MSparse< Complex >::ipermute(), and SparseBoolMatrix::ipermute().
Definition at line 505 of file Sparse.h.
Referenced by Sparse< T >::cat(), and LuAminusSigmaB().
|
inline |
Definition at line 258 of file Sparse.h.
Referenced by Sparse< T >::sort().
|
inlineprotected |
Definition at line 469 of file Sparse.h.
Referenced by atan2(), binmap(), 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(), qrsolve(), 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(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
|
inline |
Definition at line 565 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_data().
|
inline |
Definition at line 567 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_ir().
|
inline |
Definition at line 572 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_jc().
|
inline |
Definition at line 544 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::octave_base_sparse().
|
inline |
|
inline |
Definition at line 248 of file Sparse.h.
Referenced by 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(), Fcomplex(), 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(), octave_base_sparse< SparseComplexMatrix >::nnz(), operator-(), SparseBoolMatrix::operator==(), SparseMatrix::operator==(), SparseComplexMatrix::operator==(), plus_or_minus(), product(), qrsolve(), 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(), SparseComplexMatrix::SparseComplexMatrix(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), times_or_divide(), times_or_divides(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
|
inline |
Definition at line 252 of file Sparse.h.
Referenced by Sparse< T >::assign(), elem_xpow(), and octave_sparse_matrix::index_vector().
|
inline |
Definition at line 246 of file Sparse.h.
Referenced by dmperm_internal(), octave_base_sparse< SparseComplexMatrix >::nzmax(), read_sparse_matrix(), and save_mat5_binary_element().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 683 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 882 of file Sparse.cc.
References Array< T >::length(), 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 763 of file Sparse.cc.
References Array< T >::length(), and ra_idx.
T & Sparse< T >::range_error | ( | const char * | fcn, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 789 of file Sparse.cc.
References Array< T >::length(), and ra_idx.
Sparse< T > Sparse< T >::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 815 of file Sparse.cc.
References dim_vector::length(), dim_vector::numel(), dim_vector::resize(), dim_vector::str(), 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 944 of file Sparse.cc.
References min().
Referenced by Sparse< T >::index(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), max(), min(), and octave_base_sparse< SparseComplexMatrix >::octave_base_sparse().
void Sparse< T >::resize | ( | const dim_vector & | dv | ) |
Definition at line 929 of file Sparse.cc.
References dim_vector::length().
void Sparse< T >::resize1 | ( | octave_idx_type | n | ) |
Definition at line 910 of file Sparse.cc.
References gripe_invalid_resize(), and max().
Referenced by Sparse< T >::index().
|
inline |
Definition at line 518 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(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), 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==(), plus_or_minus(), 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(), SparseComplexLU::SparseComplexLU(), SparseComplexMatrix::SparseComplexMatrix(), SparseLU::SparseLU(), SparseMatrix::SparseMatrix(), SparseQR::SparseQR_rep::SparseQR_rep(), 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 263 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(), chol2inv(), SparseBoolMatrix::concat(), SparseMatrix::concat(), SparseComplexMatrix::concat(), conj(), octave_sparse_matrix::convert_to_str_internal(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), F__luinc__(), Fcomplex(), find_nonzero_elem_idx(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), G__glpk__(), Gamd(), Gccolamd(), Gcolamd(), Gcsymamd(), Getree(), Gsymamd(), 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(), qrsolve(), 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(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseQR::SparseQR_rep::SparseQR_rep(), 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(), x_el_div(), and xpow().
Sparse< T > Sparse< T >::sort | ( | octave_idx_type | dim = 0 , |
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2240 of file Sparse.cc.
References ASCENDING, Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), DESCENDING, Sparse< T >::length(), Sparse< T >::ridx(), Sparse< T >::rows(), octave_sort< T >::set_compare(), octave_sort< T >::sort(), and Sparse< T >::transpose().
Referenced by dmsolve_permute(), and octave_base_sparse< SparseComplexMatrix >::sort().
Sparse< T > Sparse< T >::sort | ( | Array< octave_idx_type > & | sidx, |
octave_idx_type | dim = 0 , |
||
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2305 of file Sparse.cc.
References ASCENDING, Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), DESCENDING, Sparse< T >::length(), OCTAVE_LOCAL_BUFFER, Sparse< T >::ridx(), Sparse< T >::rows(), octave_sort< T >::set_compare(), octave_sort< T >::sort(), Array< T >::transpose(), and Sparse< T >::transpose().
Definition at line 285 of file Sparse.h.
Referenced by MSparse< Complex >::squeeze(), and SparseBoolMatrix::squeeze().
Definition at line 1096 of file Sparse.cc.
References 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 537 of file Sparse.h.
Referenced by SparseBoolMatrix::any(), mxArray_sparse::as_octave_value(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), Sparse< T >::diag(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gamd(), Gccolamd(), Gcolamd(), Gcsymamd(), Getree(), Gsymamd(), 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(), qrsolve(), SparseComplexQR::SparseComplexQR_rep::R(), SparseQR::SparseQR_rep::R(), Sparse< T >::reshape(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseBoolMatrix::sum(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), SparseQR::SparseQR_rep::V(), and SparseComplexQR::SparseComplexQR_rep::V().
|
inline |
|
inline |
Definition at line 511 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(), SparseMatrix::dsolve(), SparseComplexMatrix::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(), qrsolve(), SparseQR::SparseQR_rep::R(), SparseComplexQR::SparseComplexQR_rep::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(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), SparseQR::SparseQR_rep::V(), and SparseComplexQR::SparseComplexQR_rep::V().
|
inline |
|
inline |
Definition at line 300 of file Sparse.h.
Referenced by elem_xpow(), and qrsolve().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 524 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(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Gamd(), Gccolamd(), Gcolamd(), Gcsymamd(), Getree(), Gsymamd(), 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(), qrsolve(), SparseComplexQR::SparseComplexQR_rep::R(), SparseQR::SparseQR_rep::R(), Sparse< T >::reshape(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), Sparse< T >::Sparse(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), SparseQR::SparseQR_rep::V(), and SparseComplexQR::SparseComplexQR_rep::V().
|
inline |
dim_vector Sparse< T >::dimensions |
Definition at line 166 of file Sparse.h.
Referenced by Sparse< T >::operator=(), and Sparse< T >::Sparse().
Definition at line 164 of file Sparse.h.
Referenced by Sparse< T >::operator=(), Sparse< T >::Sparse(), and Sparse< bool >::Sparse().