GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 40 of file boolSparse.h.
Definition at line 47 of file boolSparse.h.
|
inline |
Definition at line 49 of file boolSparse.h.
|
inline |
Definition at line 51 of file boolSparse.h.
|
inlineexplicit |
Definition at line 54 of file boolSparse.h.
|
inline |
Definition at line 57 of file boolSparse.h.
Definition at line 60 of file boolSparse.h.
|
inline |
Definition at line 62 of file boolSparse.h.
|
inline |
Definition at line 64 of file boolSparse.h.
|
inlineexplicit |
Definition at line 67 of file boolSparse.h.
|
inlineexplicit |
Definition at line 69 of file boolSparse.h.
|
inlineexplicit |
Definition at line 71 of file boolSparse.h.
|
inline |
Definition at line 73 of file boolSparse.h.
|
inline |
Definition at line 79 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< T >::is_true().
SparseBoolMatrix SparseBoolMatrix::any | ( | int | dim = -1 | ) | const |
Definition at line 144 of file boolSparse.cc.
References Sparse< T >::change_capacity(), Sparse< bool >::cidx(), Sparse< bool >::cols(), Sparse< T >::data(), Array< T >::fortran_vec(), Sparse< bool >::nnz(), retval, Sparse< T >::ridx(), Sparse< bool >::ridx(), Sparse< bool >::rows(), tmp, Sparse< T >::xcidx(), and Array< T >::xelem().
Definition at line 698 of file Sparse.h.
References Sparse< T >::SparseRep::any_element_is_nan().
Referenced by DiagArray2< Complex >::build_diag_matrix().
|
inherited |
|
inherited |
|
inlineinherited |
|
staticinherited |
|
inlineinherited |
Definition at line 505 of file Sparse.h.
References Sparse< T >::SparseRep::change_length().
|
inlineinherited |
Definition at line 342 of file Sparse.h.
References numel().
Referenced by DiagArray2< Complex >::operator()().
|
inlineinherited |
|
inlineinherited |
Definition at line 364 of file Sparse.h.
References compute_index(), and elem.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 439 of file Sparse.h.
References compute_index(), and Sparse< T >::elem().
|
inlineinherited |
Definition at line 543 of file Sparse.h.
References Sparse< T >::SparseRep::c.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
|
inlineinherited |
Definition at line 544 of file Sparse.h.
References Sparse< T >::SparseRep::cidx().
|
inlineinherited |
Definition at line 552 of file Sparse.h.
References Sparse< T >::SparseRep::ccidx().
|
inlineinherited |
Definition at line 554 of file Sparse.h.
References Sparse< T >::SparseRep::c.
|
inlineinherited |
Definition at line 272 of file Sparse.h.
Referenced by any(), DiagArray2< T >::extract_diag(), matrix_value(), operator!(), operator==(), and sum().
|
inlineinherited |
|
inherited |
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 521 of file Sparse.h.
References Sparse< T >::SparseRep::d.
Referenced by matrix_value(), and operator==().
|
inlineinherited |
Definition at line 522 of file Sparse.h.
References Sparse< T >::SparseRep::data().
|
inlineinherited |
Definition at line 526 of file Sparse.h.
References Sparse< T >::SparseRep::data().
Definition at line 528 of file Sparse.h.
References Sparse< T >::SparseRep::d.
|
inherited |
|
inherited |
|
inherited |
SparseBoolMatrix SparseBoolMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 242 of file boolSparse.cc.
References Sparse< T >::diag().
|
inlineinherited |
Definition at line 268 of file Sparse.h.
Referenced by DiagArray2< T >::check_idx(), DiagArray2< Complex >::nelem(), DiagArray2< T >::resize(), and DiagArray2< Complex >::rows().
|
inlineinherited |
Definition at line 269 of file Sparse.h.
Referenced by DiagArray2< T >::check_idx(), DiagArray2< Complex >::cols(), DiagArray2< Complex >::columns(), DiagArray2< Complex >::nelem(), and DiagArray2< T >::resize().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 386 of file Sparse.h.
References compute_index(), and Sparse< T >::elem().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 453 of file Sparse.h.
References compute_index(), and Sparse< T >::elem().
|
inlineinherited |
|
inlineinherited |
SparseBoolMatrix SparseBoolMatrix::index | ( | const idx_vector & | i, |
bool | resize_ok | ||
) | const |
Definition at line 293 of file boolSparse.cc.
References 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 Sparse< T >::index().
Definition at line 696 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 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 Sparse< T >::insert().
|
inherited |
|
inherited |
SparseBoolMatrix SparseBoolMatrix::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const |
Definition at line 318 of file boolSparse.cc.
References Sparse< T >::ipermute().
|
inlineinherited |
Definition at line 150 of file Sparse.h.
Referenced by dim_vector::chop_trailing_singletons(), and dim_vector::elem().
Definition at line 632 of file Sparse.h.
References Sparse< T >::cidx(), Sparse< T >::data(), fcn, Sparse< T >::maybe_compress(), result, Sparse< T >::ridx(), and val.
boolMatrix SparseBoolMatrix::matrix_value | ( | void | ) | const |
Definition at line 248 of file boolSparse.cc.
References Sparse< bool >::cidx(), Sparse< bool >::cols(), Sparse< bool >::data(), Array< T >::elem(), 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 481 of file Sparse.h.
References Sparse< T >::SparseRep::maybe_compress().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 556 of file Sparse.h.
References dim_vector::ndims().
Referenced by dim_vector::all_ones(), dim_vector::all_zero(), dim_vector::any_neg(), dim_vector::any_zero(), dim_vector::as_column(), dim_vector::as_row(), dim_vector::chop_trailing_singletons(), dim_vector::clonerep(), dim_vector::compute_index(), dim_vector::cum_compute_index(), dim_vector::cumulative(), dim_vector::elem(), dim_vector::empty_2d(), dim_vector::first_non_singleton(), dim_vector::increment_index(), dim_vector::is_vector(), dim_vector::length(), dim_vector::newrep(), dim_vector::numel(), dim_vector::resize(), dim_vector::resizerep(), and dim_vector::zero_by_zero().
|
inlineinherited |
Definition at line 263 of file Sparse.h.
Referenced by DiagArray2< Complex >::numel().
|
inlineinherited |
Actual number of nonzero terms.
Definition at line 253 of file Sparse.h.
References Sparse< T >::SparseRep::nnz().
Referenced by any(), operator!(), operator==(), and sum().
|
inlineinherited |
Definition at line 257 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 245 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(), 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 82 of file boolSparse.h.
References Sparse< T >::operator=().
bool SparseBoolMatrix::operator== | ( | const SparseBoolMatrix & | a | ) | const |
Definition at line 45 of file boolSparse.cc.
References Sparse< bool >::cidx(), Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< bool >::cols(), Sparse< bool >::data(), Sparse< T >::data(), Sparse< bool >::nnz(), Sparse< T >::nnz(), Sparse< T >::ridx(), Sparse< bool >::ridx(), Sparse< bool >::rows(), and Sparse< T >::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 |
Referenced by DiagArray2< Complex >::resize().
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 530 of file Sparse.h.
References Sparse< T >::SparseRep::r.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
|
inlineinherited |
Definition at line 531 of file Sparse.h.
References Sparse< T >::SparseRep::ridx().
|
inlineinherited |
Definition at line 539 of file Sparse.h.
References Sparse< T >::SparseRep::cridx().
|
inlineinherited |
Definition at line 541 of file Sparse.h.
References Sparse< T >::SparseRep::r.
|
inlineinherited |
Definition at line 271 of file Sparse.h.
Referenced by any(), DiagArray2< T >::extract_diag(), matrix_value(), operator!(), operator==(), and sum().
|
inherited |
Referenced by octinternal_do_mul_colpm_sm().
|
inherited |
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< T >::change_capacity(), Sparse< bool >::cidx(), Sparse< bool >::cols(), Array< T >::fortran_vec(), k, Sparse< bool >::nnz(), retval, Sparse< T >::ridx(), Sparse< bool >::ridx(), Sparse< bool >::rows(), tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Array< T >::xelem().
|
inline |
Definition at line 91 of file boolSparse.h.
References Sparse< T >::transpose().
Referenced by Gsymbfact(), and oct_unop_transpose().
|
inlineinherited |
Definition at line 549 of file Sparse.h.
References Sparse< T >::SparseRep::c.
|
inlineinherited |
Definition at line 550 of file Sparse.h.
References Sparse< T >::SparseRep::cidx().
Definition at line 523 of file Sparse.h.
References Sparse< T >::SparseRep::d.
|
inlineinherited |
Definition at line 524 of file Sparse.h.
References Sparse< T >::SparseRep::data().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 326 of file Sparse.h.
References Sparse< T >::SparseRep::elem().
|
inlineinherited |
Definition at line 327 of file Sparse.h.
References Sparse< T >::SparseRep::celem().
|
inlineinherited |
Definition at line 332 of file Sparse.h.
References compute_index().
|
inlineinherited |
Definition at line 335 of file Sparse.h.
References compute_index().
|
inlineinherited |
Definition at line 536 of file Sparse.h.
References Sparse< T >::SparseRep::r.
|
inlineinherited |
Definition at line 537 of file Sparse.h.
References Sparse< T >::SparseRep::ridx().
|
friend |
Definition at line 262 of file boolSparse.cc.
|
friend |
Definition at line 279 of file boolSparse.cc.
|
inherited |
Definition at line 168 of file Sparse.h.
Referenced by dim_vector::to_jit().