#include "boolSparse.h"
Public Types | |
typedef boolMatrix | dense_matrix_type |
typedef bool | element_type |
Static Public Member Functions | |
static Sparse< bool > | cat (int dim, octave_idx_type n, const Sparse< bool > *sparse_list) |
Public Attributes | |
dim_vector | dimensions |
Sparse< bool >::SparseRep * | rep |
Protected Member Functions | |
void | make_unique (void) |
Friends | |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const SparseBoolMatrix &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, SparseBoolMatrix &a) |
Definition at line 38 of file boolSparse.h.
Definition at line 45 of file boolSparse.h.
|
inline |
Definition at line 47 of file boolSparse.h.
|
inline |
Definition at line 49 of file boolSparse.h.
|
inlineexplicit |
Definition at line 52 of file boolSparse.h.
|
inline |
Definition at line 55 of file boolSparse.h.
Definition at line 58 of file boolSparse.h.
|
inline |
Definition at line 60 of file boolSparse.h.
|
inline |
Definition at line 62 of file boolSparse.h.
|
inlineexplicit |
Definition at line 65 of file boolSparse.h.
|
inlineexplicit |
Definition at line 67 of file boolSparse.h.
|
inlineexplicit |
Definition at line 69 of file boolSparse.h.
|
inline |
Definition at line 71 of file boolSparse.h.
|
inline |
Definition at line 77 of file boolSparse.h.
SparseBoolMatrix SparseBoolMatrix::all | ( | int | dim = -1 | ) | const |
Definition at line 138 of file boolSparse.cc.
References SPARSE_ALL_OP.
Referenced by octave_base_sparse< SparseComplexMatrix >::is_true().
SparseBoolMatrix SparseBoolMatrix::any | ( | int | dim = -1 | ) | const |
Definition at line 144 of file boolSparse.cc.
References Sparse< bool >::cidx(), Sparse< bool >::cols(), i, Sparse< bool >::nnz(), retval, Sparse< bool >::ridx(), Sparse< bool >::rows(), and tmp.
Definition at line 663 of file Sparse.h.
References Sparse< T >::SparseRep::any_element_is_nan().
|
inherited |
Definition at line 1824 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(), i, 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.
|
inherited |
Definition at line 1976 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), Sparse< T >::data(), octave::err_nonconformant(), idx_vector::extent(), i, idx_vector::increment(), Sparse< T >::index(), idx_vector::inverse_permutation(), idx_vector::is_colon(), idx_vector::is_colon_equiv(), idx_vector::is_cont_range(), idx_vector::is_permutation(), idx_vector::is_range(), idx_vector::isvector(), k, idx_vector::length(), 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.
|
inlineinherited |
|
staticinherited |
Definition at line 2577 of file Sparse.cc.
References octave_value::assign(), Sparse< T >::cidx(), idx_vector::colon, Sparse< T >::columns(), dim_vector::concat(), Sparse< T >::data(), Sparse< T >::dims(), dv, dim_vector::hvcat(), i, Sparse< T >::isempty(), octave_value::isempty(), k, Sparse< T >::nnz(), retval, Sparse< T >::ridx(), Sparse< T >::rows(), and u.
|
inlineinherited |
Definition at line 462 of file Sparse.h.
References Sparse< T >::SparseRep::change_length().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 409 of file Sparse.h.
References compute_index(), Sparse< T >::elem(), i, and ra_idx.
|
inlineinherited |
Definition at line 508 of file Sparse.h.
References Sparse< T >::SparseRep::c.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
|
inlineinherited |
Definition at line 509 of file Sparse.h.
References Sparse< T >::SparseRep::cidx(), and i.
|
inlineinherited |
Definition at line 517 of file Sparse.h.
References Sparse< T >::SparseRep::ccidx(), and i.
|
inlineinherited |
Definition at line 519 of file Sparse.h.
References Sparse< T >::SparseRep::c.
|
inlineinherited |
Definition at line 259 of file Sparse.h.
Referenced by any(), DiagArray2< Complex >::extract_diag(), matrix_value(), operator!(), operator==(), and sum().
|
inlineinherited |
|
inherited |
Definition at line 713 of file Sparse.cc.
References current_liboctave_error_handler, octave_base_value::numel(), ra_idx, and retval.
SparseBoolMatrix SparseBoolMatrix::concat | ( | const SparseBoolMatrix & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 91 of file boolSparse.cc.
References Sparse< T >::cols(), insert(), ra_idx, and Sparse< T >::rows().
Definition at line 486 of file Sparse.h.
References Sparse< T >::SparseRep::d.
Referenced by matrix_value(), and operator==().
|
inlineinherited |
Definition at line 487 of file Sparse.h.
References Sparse< T >::SparseRep::data(), and i.
|
inlineinherited |
Definition at line 491 of file Sparse.h.
References Sparse< T >::SparseRep::data(), and i.
Definition at line 493 of file Sparse.h.
References Sparse< T >::SparseRep::d.
|
inherited |
Definition at line 1148 of file Sparse.cc.
References idx_vector::colon, idx_vector::complement(), octave::err_del_index_out_of_range(), idx_vector::extent(), i, 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, idx_vector::sorted(), tmp, and transpose().
|
inherited |
Definition at line 1368 of file Sparse.cc.
References idx_vector::colon, and current_liboctave_error_handler.
|
inherited |
Definition at line 1249 of file Sparse.cc.
References Sparse< T >::cidx(), idx_vector::complement(), Sparse< T >::data(), octave::err_del_index_out_of_range(), idx_vector::extent(), i, idx_vector::is_colon(), idx_vector::is_cont_range(), k, idx_vector::length(), mx_inline_sub(), Sparse< T >::nnz(), Sparse< T >::ridx(), tmp, and transpose().
SparseBoolMatrix SparseBoolMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 242 of file boolSparse.cc.
References Sparse< T >::diag(), and k.
|
inlineinherited |
Definition at line 255 of file Sparse.h.
Referenced by DiagArray2< Complex >::check_idx(), DiagArray2< Complex >::nelem(), DiagArray2< Complex >::resize(), and DiagArray2< Complex >::rows().
|
inlineinherited |
Definition at line 256 of file Sparse.h.
Referenced by DiagArray2< Complex >::check_idx(), DiagArray2< Complex >::cols(), DiagArray2< Complex >::columns(), DiagArray2< Complex >::nelem(), and DiagArray2< Complex >::resize().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 375 of file Sparse.h.
References compute_index(), Sparse< T >::elem(), and ra_idx.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 423 of file Sparse.h.
References compute_index(), Sparse< T >::elem(), and ra_idx.
|
inlineinherited |
|
inlineinherited |
SparseBoolMatrix SparseBoolMatrix::index | ( | const idx_vector & | i, |
bool | resize_ok | ||
) | const |
Definition at line 293 of file boolSparse.cc.
References i, and Sparse< T >::index().
SparseBoolMatrix SparseBoolMatrix::index | ( | const idx_vector & | i, |
const idx_vector & | j, | ||
bool | resize_ok | ||
) | const |
Definition at line 299 of file boolSparse.cc.
References i, and Sparse< T >::index().
Definition at line 661 of file Sparse.h.
References Sparse< T >::SparseRep::indices_ok().
SparseBoolMatrix & SparseBoolMatrix::insert | ( | const SparseBoolMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 75 of file boolSparse.cc.
References a, c, and Sparse< T >::insert().
Referenced by concat().
SparseBoolMatrix & SparseBoolMatrix::insert | ( | const SparseBoolMatrix & | a, |
const Array< octave_idx_type > & | indx | ||
) |
Definition at line 83 of file boolSparse.cc.
References a, and Sparse< T >::insert().
|
inherited |
|
inherited |
Definition at line 1081 of file Sparse.cc.
References a, current_liboctave_error_handler, octave_base_value::numel(), and ra_idx.
SparseBoolMatrix SparseBoolMatrix::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const |
Definition at line 318 of file boolSparse.cc.
References Sparse< T >::ipermute().
|
inlineinherited |
boolMatrix SparseBoolMatrix::matrix_value | ( | void | ) | const |
Definition at line 248 of file boolSparse.cc.
References Sparse< bool >::cidx(), Sparse< bool >::cols(), Sparse< bool >::data(), i, retval, Sparse< bool >::ridx(), and Sparse< bool >::rows().
Referenced by octave_sparse_bool_matrix::array_value(), octave_sparse_bool_matrix::bool_array_value(), octave_sparse_bool_matrix::bool_matrix_value(), octave_sparse_bool_matrix::complex_array_value(), octave_sparse_bool_matrix::complex_matrix_value(), octave_sparse_bool_matrix::matrix_value(), and octave_sparse_bool_matrix::try_narrowing_conversion().
Definition at line 438 of file Sparse.h.
References Sparse< T >::SparseRep::maybe_compress().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 521 of file Sparse.h.
References dim_vector::ndims().
|
inlineinherited |
Definition at line 250 of file Sparse.h.
Referenced by DiagArray2< Complex >::numel().
|
inlineinherited |
Actual number of nonzero terms.
Definition at line 240 of file Sparse.h.
References Sparse< T >::SparseRep::nnz().
Referenced by any(), operator!(), operator==(), and sum().
|
inlineinherited |
Definition at line 244 of file Sparse.h.
References dim_vector::safe_numel().
|
inlineinherited |
Amount of storage for nonzero elements.
This may differ from the actual number of elements, see nnz().
Definition at line 232 of file Sparse.h.
References Sparse< T >::SparseRep::length().
SparseBoolMatrix SparseBoolMatrix::operator! | ( | void | ) | const |
Definition at line 103 of file boolSparse.cc.
References Sparse< T >::cidx(), Sparse< bool >::cidx(), Sparse< bool >::cols(), Sparse< T >::data(), i, Sparse< bool >::nnz(), Sparse< T >::ridx(), Sparse< bool >::ridx(), and Sparse< bool >::rows().
bool SparseBoolMatrix::operator!= | ( | const SparseBoolMatrix & | a | ) | const |
Definition at line 69 of file boolSparse.cc.
References a.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 80 of file boolSparse.h.
References a, and Sparse< T >::operator=().
bool SparseBoolMatrix::operator== | ( | const SparseBoolMatrix & | a | ) | const |
Definition at line 45 of file boolSparse.cc.
References a, Sparse< bool >::cidx(), Sparse< bool >::cols(), Sparse< bool >::data(), i, Sparse< bool >::nnz(), Sparse< bool >::ridx(), and Sparse< bool >::rows().
SparseBoolMatrix SparseBoolMatrix::permute | ( | const Array< octave_idx_type > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 312 of file boolSparse.cc.
References Sparse< T >::permute().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
SparseBoolMatrix SparseBoolMatrix::reshape | ( | const dim_vector & | new_dims | ) | const |
Definition at line 306 of file boolSparse.cc.
References Sparse< T >::reshape().
|
inherited |
|
inherited |
Definition at line 938 of file Sparse.cc.
References dv, and dim_vector::ndims().
|
inherited |
Definition at line 919 of file Sparse.cc.
References octave::err_invalid_resize(), and max().
|
inlineinherited |
Definition at line 495 of file Sparse.h.
References Sparse< T >::SparseRep::r.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
|
inlineinherited |
Definition at line 496 of file Sparse.h.
References i, and Sparse< T >::SparseRep::ridx().
|
inlineinherited |
Definition at line 504 of file Sparse.h.
References Sparse< T >::SparseRep::cridx(), and i.
|
inlineinherited |
Definition at line 506 of file Sparse.h.
References Sparse< T >::SparseRep::r.
|
inlineinherited |
Definition at line 258 of file Sparse.h.
Referenced by any(), DiagArray2< Complex >::extract_diag(), matrix_value(), operator!(), operator==(), and sum().
|
inherited |
Definition at line 2231 of file Sparse.cc.
References ASCENDING, Sparse< T >::cidx(), Sparse< T >::columns(), current_liboctave_error_handler, Sparse< T >::data(), DESCENDING, i, k, mode, Sparse< T >::numel(), Sparse< T >::ridx(), Sparse< T >::rows(), octave_sort< T >::set_compare(), octave_sort< T >::sort(), and Sparse< T >::transpose().
Referenced by octinternal_do_mul_colpm_sm().
|
inherited |
Definition at line 2297 of file Sparse.cc.
References ASCENDING, Sparse< T >::cidx(), Sparse< T >::columns(), current_liboctave_error_handler, Sparse< T >::data(), DESCENDING, i, k, mode, 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().
SparseBoolMatrix SparseBoolMatrix::squeeze | ( | void | ) | const |
Definition at line 287 of file boolSparse.cc.
References Sparse< T >::squeeze().
SparseMatrix SparseBoolMatrix::sum | ( | int | dim = -1 | ) | const |
Definition at line 191 of file boolSparse.cc.
References c, Sparse< bool >::cidx(), Sparse< bool >::cols(), i, k, Sparse< bool >::nnz(), retval, Sparse< bool >::ridx(), Sparse< bool >::rows(), and tmp.
|
inline |
Definition at line 89 of file boolSparse.h.
References Sparse< T >::transpose().
Referenced by Gsymbfact(), and oct_unop_transpose().
|
inlineinherited |
Definition at line 514 of file Sparse.h.
References Sparse< T >::SparseRep::c.
|
inlineinherited |
Definition at line 515 of file Sparse.h.
References Sparse< T >::SparseRep::cidx(), and i.
Definition at line 488 of file Sparse.h.
References Sparse< T >::SparseRep::d.
|
inlineinherited |
Definition at line 489 of file Sparse.h.
References Sparse< T >::SparseRep::data(), and i.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 315 of file Sparse.h.
References Sparse< T >::SparseRep::elem(), and i.
|
inlineinherited |
Definition at line 316 of file Sparse.h.
References Sparse< T >::SparseRep::celem(), and i.
|
inlineinherited |
Definition at line 321 of file Sparse.h.
References compute_index(), and ra_idx.
|
inlineinherited |
Definition at line 324 of file Sparse.h.
References compute_index(), and ra_idx.
|
inlineinherited |
Definition at line 501 of file Sparse.h.
References Sparse< T >::SparseRep::r.
|
inlineinherited |
Definition at line 502 of file Sparse.h.
References i, and Sparse< T >::SparseRep::ridx().
|
friend |
Definition at line 262 of file boolSparse.cc.
|
friend |
Definition at line 279 of file boolSparse.cc.
|
inherited |