GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "Sparse.h"
Classes | |
class | SparseRep |
Public Types | |
typedef T | element_type |
Static Public Member Functions | |
static Sparse< T > | cat (int dim, octave_idx_type n, const Sparse< T > *sparse_list) |
Public Attributes | |
dim_vector | dimensions |
Sparse< T >::SparseRep * | rep |
Protected Member Functions | |
void | make_unique (void) |
Private Member Functions | |
Sparse< T >::SparseRep * | nil_rep (void) const |
typedef T Sparse< T >::element_type |
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
Definition at line 203 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(), Sparse< T >::data(), PermMatrix::is_row_perm(), PermMatrix::pvec(), Sparse< T >::ridx(), and PermMatrix::rows().
Sparse< T >::Sparse | ( | const dim_vector & | dv | ) |
Definition at line 231 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 242 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 286 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(), Sparse< T >::sort(), idx_vector::sorted(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 636 of file Sparse.cc.
References Sparse< T >::cols(), current_liboctave_error_handler, Sparse< T >::dimensions, Array< T >::elem(), dim_vector::length(), Array< T >::length(), Sparse< T >::rep, Sparse< T >::rows(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Definition at line 2651 of file Sparse.cc.
Referenced by Sparse< T >::assign(), and binmap().
void Sparse< T >::assign | ( | const idx_vector & | i, |
const Sparse< T > & | rhs | ||
) |
Definition at line 1817 of file Sparse.cc.
References Sparse< T >::array_value(), Array< T >::assign(), idx_vector::colon, Sparse< T >::cols(), idx_vector::copy_data(), copy_or_memcpy(), 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 1968 of file Sparse.cc.
References Sparse< T >::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), copy_or_memcpy(), 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 248 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::capacity().
|
static |
Definition at line 2551 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 492 of file Sparse.h.
Referenced by SparseBoolMatrix::any(), binmap(), 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 530 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_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), 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(), 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 265 of file Sparse.h.
Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_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(), DEFUN_DLD(), dmsolve_insert(), dmsolve_permute(), do_tril(), do_triu(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fluinc(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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 266 of file Sparse.h.
Referenced by Sparse< T >::assign(), Sparse< T >::cat(), column_norms(), find_nonzero_elem_idx(), 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 698 of file Sparse.cc.
References current_liboctave_error_handler, and Array< T >::length().
Definition at line 508 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_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), column_norms(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), 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(), 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 |
void Sparse< T >::delete_elements | ( | const idx_vector & | i | ) |
Definition at line 1142 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::colon, idx_vector::complement(), copy_or_memcpy(), Sparse< T >::data(), idx_vector::extent(), fill_or_memset(), 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 1359 of file Sparse.cc.
References idx_vector::colon.
void Sparse< T >::delete_elements | ( | const idx_vector & | i, |
const idx_vector & | j | ||
) |
Definition at line 1240 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::complement(), copy_or_memcpy(), 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 |
Reimplemented in SparseComplexMatrix, SparseMatrix, MSparse< T >, MSparse< double >, MSparse< Complex >, and SparseBoolMatrix.
Definition at line 2385 of file Sparse.cc.
References abs(), current_liboctave_error_handler, d, elem, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by MSparse< Complex >::diag().
|
inline |
|
inline |
|
inline |
Definition at line 284 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 361 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 |
Reimplemented in SparseBoolMatrix.
Definition at line 1375 of file Sparse.cc.
References idx_vector::as_array(), Sparse< T >::change_capacity(), Sparse< T >::cidx(), idx_vector::colon, Array< T >::cols(), copy_or_memcpy(), current_liboctave_error_handler, Sparse< T >::data(), elem, idx_vector::extent(), fill_or_memset(), 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(), dim_vector::length(), mx_inline_sub(), idx_vector::orig_dimensions(), 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(), and Sparse< T >::index().
Sparse< T > Sparse< T >::index | ( | const idx_vector & | i, |
const idx_vector & | j, | ||
bool | resize_ok = false |
||
) | const |
Reimplemented in SparseBoolMatrix.
Definition at line 1576 of file Sparse.cc.
References Sparse< T >::change_capacity(), Sparse< T >::cidx(), idx_vector::colon, copy_or_memcpy(), 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 683 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 | ||
) |
Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 988 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().
Sparse< T > & Sparse< T >::insert | ( | const Sparse< T > & | a, |
const Array< octave_idx_type > & | idx | ||
) |
Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 1072 of file Sparse.cc.
References Array< T >::length().
|
inline |
Reimplemented in SparseMatrix, SparseComplexMatrix, SparseBoolMatrix, MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 481 of file Sparse.h.
Referenced by MSparse< Complex >::ipermute().
Definition at line 504 of file Sparse.h.
Referenced by Sparse< T >::cat(), and LuAminusSigmaB().
|
inline |
Definition at line 259 of file Sparse.h.
Referenced by Sparse< T >::sort().
Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.
Reimplemented in MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 468 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().
Definition at line 564 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_data().
|
inline |
Definition at line 566 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_ir().
|
inline |
Definition at line 571 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::mex_get_jc().
|
inline |
Definition at line 543 of file Sparse.h.
Referenced by octave_base_sparse< SparseComplexMatrix >::octave_base_sparse().
|
inline |
|
inline |
Definition at line 249 of file Sparse.h.
Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), conj(), DEFUN_DLD(), 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(), 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 253 of file Sparse.h.
Referenced by Sparse< T >::assign(), elem_xpow(), and octave_sparse_matrix::index_vector().
|
inline |
Definition at line 247 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 680 of file Sparse.cc.
References Sparse< T >::dimensions, and Sparse< T >::rep.
Referenced by SparseBoolMatrix::operator=(), and MSparse< Complex >::operator=().
Sparse< T > Sparse< T >::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Reimplemented in SparseMatrix, SparseComplexMatrix, SparseBoolMatrix, MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 874 of file Sparse.cc.
References Array< T >::length(), and transpose().
Referenced by MSparse< Complex >::permute().
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 760 of file Sparse.cc.
References Array< T >::length().
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 >::length().
Sparse< T > Sparse< T >::reshape | ( | const dim_vector & | new_dims | ) | const |
Reimplemented in SparseMatrix, SparseComplexMatrix, SparseBoolMatrix, MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 812 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(), and MSparse< Complex >::reshape().
void Sparse< T >::resize | ( | octave_idx_type | r, |
octave_idx_type | c | ||
) |
Definition at line 935 of file Sparse.cc.
References copy_or_memcpy(), fill_or_memset(), and min().
Referenced by Sparse< T >::index(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), and octave_base_sparse< SparseComplexMatrix >::octave_base_sparse().
void Sparse< T >::resize | ( | const dim_vector & | dv | ) |
Definition at line 920 of file Sparse.cc.
References dim_vector::length().
void Sparse< T >::resize1 | ( | octave_idx_type | n | ) |
Definition at line 902 of file Sparse.cc.
References gripe_invalid_resize(), and max().
Referenced by Sparse< T >::index().
|
inline |
Definition at line 517 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_bool_matrix::char_array_value(), octave_sparse_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), conj(), octave_sparse_matrix::convert_to_str_internal(), DEFUN_DLD(), 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(), 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 264 of file Sparse.h.
Referenced by Sparse< T >::assign(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), octave_sparse_bool_matrix::char_array_value(), octave_sparse_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(), DEFUN_DLD(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), elem_xpow(), Fcomplex(), find_nonzero_elem_idx(), Fluinc(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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 2214 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(), octave_base_sparse< SparseComplexMatrix >::sort(), and Sparse< T >::Sparse().
Sparse< T > Sparse< T >::sort | ( | Array< octave_idx_type > & | sidx, |
octave_idx_type | dim = 0 , |
||
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 2279 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().
Reimplemented in SparseMatrix, SparseComplexMatrix, SparseBoolMatrix, MSparse< T >, MSparse< double >, and MSparse< Complex >.
Definition at line 286 of file Sparse.h.
Referenced by MSparse< Complex >::squeeze().
Reimplemented in SparseComplexMatrix, SparseMatrix, MSparse< T >, MSparse< double >, MSparse< Complex >, and SparseBoolMatrix.
Definition at line 1086 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 536 of file Sparse.h.
Referenced by SparseBoolMatrix::any(), mxArray_sparse::as_octave_value(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), DEFUN_DLD(), Sparse< T >::diag(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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(), SparseBoolMatrix::sum(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), Sparse< T >::transpose(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), SparseComplexQR::SparseComplexQR_rep::V(), and SparseQR::SparseQR_rep::V().
|
inline |
Definition at line 510 of file Sparse.h.
Referenced by mxArray_sparse::as_octave_value(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), DEFUN_DLD(), Sparse< T >::diag(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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(), 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 301 of file Sparse.h.
Referenced by elem_xpow(), and qrsolve().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 319 of file Sparse.h.
Referenced by Sparse< bool >::xelem().
|
inline |
Definition at line 322 of file Sparse.h.
Referenced by Sparse< bool >::xelem().
|
inline |
Definition at line 523 of file Sparse.h.
Referenced by mxArray_sparse::as_octave_value(), atan2(), binmap(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Sparse< T >::cat(), DEFUN_DLD(), Sparse< T >::diag(), dmperm_internal(), dmsolve_extract(), dmsolve_insert(), dmsolve_permute(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), 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(), 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 167 of file Sparse.h.
Referenced by Sparse< T >::operator=(), and Sparse< T >::Sparse().
Definition at line 165 of file Sparse.h.
Referenced by Sparse< T >::operator=(), Sparse< T >::Sparse(), and Sparse< bool >::Sparse().