#include "boolSparse.h"
Definition at line 33 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | void | ) | [inline] |
Definition at line 39 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | octave_idx_type | r, | |
octave_idx_type | c | |||
) | [inline] |
Definition at line 41 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | octave_idx_type | r, | |
octave_idx_type | c, | |||
bool | val | |||
) | [inline, explicit] |
Definition at line 43 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const dim_vector & | dv, | |
octave_idx_type | nz = 0 | |||
) | [inline] |
Definition at line 46 of file boolSparse.h.
Definition at line 49 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const SparseBoolMatrix & | a | ) | [inline] |
Definition at line 51 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const SparseBoolMatrix & | a, | |
const dim_vector & | dv | |||
) | [inline] |
Definition at line 53 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const boolMatrix & | a | ) | [inline, explicit] |
Definition at line 56 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const boolNDArray & | a | ) | [inline, explicit] |
Definition at line 58 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const PermMatrix & | a | ) | [inline, explicit] |
Definition at line 60 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | const Array< bool > & | 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 | |||
) | [inline] |
Definition at line 62 of file boolSparse.h.
SparseBoolMatrix::SparseBoolMatrix | ( | octave_idx_type | r, | |
octave_idx_type | c, | |||
octave_idx_type | num_nz | |||
) | [inline] |
Definition at line 68 of file boolSparse.h.
SparseBoolMatrix SparseBoolMatrix::all | ( | int | dim = -1 |
) | const |
Definition at line 136 of file boolSparse.cc.
References SPARSE_ALL_OP.
Referenced by octave_base_sparse< SparseComplexMatrix >::all().
SparseBoolMatrix SparseBoolMatrix::any | ( | int | dim = -1 |
) | const |
Definition at line 142 of file boolSparse.cc.
References Sparse< T >::change_capacity(), Sparse< bool >::cidx(), Sparse< bool >::cols(), copy_or_memcpy(), Sparse< T >::data(), fill_or_memset(), Array< T >::fortran_vec(), Sparse< bool >::nnz(), Sparse< bool >::ridx(), Sparse< T >::ridx(), Sparse< bool >::rows(), Sparse< T >::xcidx(), and Array< T >::xelem().
Referenced by octave_base_sparse< SparseComplexMatrix >::any(), and DEFUN().
void Sparse< bool >::assign | ( | const idx_vector & | i, | |
const Sparse< bool > & | rhs | |||
) | [inherited] |
void Sparse< bool >::assign | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
const Sparse< bool > & | rhs | |||
) | [inherited] |
octave_idx_type Sparse< bool >::capacity | ( | void | ) | const [inline, inherited] |
static Sparse<bool > Sparse< bool >::cat | ( | int | dim, | |
octave_idx_type | n, | |||
const Sparse< bool > * | sparse_list | |||
) | [static, inherited] |
void Sparse< bool >::change_capacity | ( | octave_idx_type | nz | ) | [inline, inherited] |
Definition at line 445 of file Sparse.h.
References Sparse< T >::SparseRep::change_length().
bool & Sparse< bool >::checkelem | ( | octave_idx_type | n | ) | [inline, inherited] |
bool & Sparse< bool >::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
bool & Sparse< bool >::checkelem | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
Definition at line 345 of file Sparse.h.
References compute_index(), and elem.
bool Sparse< bool >::checkelem | ( | octave_idx_type | n | ) | const [inline, inherited] |
bool Sparse< bool >::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline, inherited] |
bool Sparse< bool >::checkelem | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
Definition at line 396 of file Sparse.h.
References compute_index(), and Sparse< T >::elem().
octave_idx_type* Sparse< bool >::cidx | ( | void | ) | [inline, inherited] |
Definition at line 479 of file Sparse.h.
References Sparse< T >::SparseRep::c.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
octave_idx_type& Sparse< bool >::cidx | ( | octave_idx_type | i | ) | [inline, inherited] |
Definition at line 480 of file Sparse.h.
References Sparse< T >::SparseRep::cidx().
octave_idx_type Sparse< bool >::cidx | ( | octave_idx_type | i | ) | const [inline, inherited] |
Definition at line 484 of file Sparse.h.
References Sparse< T >::SparseRep::ccidx().
octave_idx_type* Sparse< bool >::cidx | ( | void | ) | const [inline, inherited] |
Definition at line 486 of file Sparse.h.
References Sparse< T >::SparseRep::c.
octave_idx_type Sparse< bool >::cols | ( | void | ) | const [inline, inherited] |
Definition at line 263 of file Sparse.h.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
octave_idx_type Sparse< bool >::columns | ( | void | ) | const [inline, inherited] |
octave_idx_type Sparse< bool >::compute_index | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inherited] |
SparseBoolMatrix SparseBoolMatrix::concat | ( | const SparseBoolMatrix & | rb, | |
const Array< octave_idx_type > & | ra_idx | |||
) |
Definition at line 89 of file boolSparse.cc.
References Sparse< T >::cols(), insert(), and Sparse< T >::rows().
Definition at line 461 of file Sparse.h.
References Sparse< T >::SparseRep::d.
Referenced by matrix_value(), and operator==().
bool & Sparse< bool >::data | ( | octave_idx_type | i | ) | [inline, inherited] |
Definition at line 462 of file Sparse.h.
References Sparse< T >::SparseRep::data().
bool Sparse< bool >::data | ( | octave_idx_type | i | ) | const [inline, inherited] |
Definition at line 466 of file Sparse.h.
References Sparse< T >::SparseRep::data().
Definition at line 468 of file Sparse.h.
References Sparse< T >::SparseRep::d.
void Sparse< bool >::delete_elements | ( | const idx_vector & | i | ) | [inherited] |
void Sparse< bool >::delete_elements | ( | const idx_vector & | i, | |
const idx_vector & | j | |||
) | [inherited] |
void Sparse< bool >::delete_elements | ( | int | dim, | |
const idx_vector & | i | |||
) | [inherited] |
SparseBoolMatrix SparseBoolMatrix::diag | ( | octave_idx_type | k = 0 |
) | const |
Reimplemented from Sparse< bool >.
Definition at line 236 of file boolSparse.cc.
Referenced by octave_base_sparse< SparseComplexMatrix >::diag().
octave_idx_type Sparse< bool >::dim1 | ( | void | ) | const [inline, inherited] |
octave_idx_type Sparse< bool >::dim2 | ( | void | ) | const [inline, inherited] |
dim_vector Sparse< bool >::dims | ( | void | ) | const [inline, inherited] |
bool & Sparse< bool >::elem | ( | octave_idx_type | n | ) | [inline, inherited] |
bool & Sparse< bool >::elem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
bool & Sparse< bool >::elem | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
Definition at line 367 of file Sparse.h.
References compute_index(), and Sparse< T >::elem().
bool Sparse< bool >::elem | ( | octave_idx_type | n | ) | const [inline, inherited] |
bool Sparse< bool >::elem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline, inherited] |
bool Sparse< bool >::elem | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
Definition at line 410 of file Sparse.h.
References compute_index(), and Sparse< T >::elem().
octave_idx_type Sparse< bool >::get_col_index | ( | octave_idx_type | k | ) | [inline, inherited] |
octave_idx_type Sparse< bool >::get_row_index | ( | octave_idx_type | k | ) | [inline, inherited] |
SparseBoolMatrix SparseBoolMatrix::index | ( | const idx_vector & | i, | |
bool | resize_ok | |||
) | const |
Reimplemented from Sparse< bool >.
Definition at line 287 of file boolSparse.cc.
Referenced by index().
SparseBoolMatrix SparseBoolMatrix::index | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
bool | resize_ok | |||
) | const |
Reimplemented from Sparse< bool >.
Definition at line 293 of file boolSparse.cc.
References index().
Definition at line 592 of file Sparse.h.
References Sparse< T >::SparseRep::indices_ok().
Sparse<bool >& Sparse< bool >::insert | ( | const Sparse< bool > & | a, | |
octave_idx_type | r, | |||
octave_idx_type | c | |||
) | [inherited] |
Sparse<bool >& Sparse< bool >::insert | ( | const Sparse< bool > & | a, | |
const Array< octave_idx_type > & | idx | |||
) | [inherited] |
SparseBoolMatrix & SparseBoolMatrix::insert | ( | const SparseBoolMatrix & | a, | |
octave_idx_type | r, | |||
octave_idx_type | c | |||
) |
Definition at line 75 of file boolSparse.cc.
SparseBoolMatrix & SparseBoolMatrix::insert | ( | const SparseBoolMatrix & | a, | |
const Array< octave_idx_type > & | indx | |||
) |
Definition at line 82 of file boolSparse.cc.
References insert().
SparseBoolMatrix SparseBoolMatrix::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const |
Reimplemented from Sparse< bool >.
Definition at line 311 of file boolSparse.cc.
octave_idx_type Sparse< bool >::length | ( | void | ) | const [inline, inherited] |
Definition at line 528 of file Sparse.h.
References Sparse< T >::cidx(), Sparse< T >::data(), Sparse< T >::maybe_compress(), and Sparse< T >::ridx().
boolMatrix SparseBoolMatrix::matrix_value | ( | void | ) | const |
Definition at line 242 of file boolSparse.cc.
References Sparse< bool >::cidx(), Sparse< bool >::cols(), Sparse< bool >::data(), Array< T >::elem(), 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_base_sparse< SparseComplexMatrix >::full_value(), octave_sparse_bool_matrix::matrix_value(), and octave_sparse_bool_matrix::try_narrowing_conversion().
Definition at line 423 of file Sparse.h.
References Sparse< T >::SparseRep::maybe_compress().
octave_idx_type* Sparse< bool >::mex_get_ir | ( | void | ) | const [inline, inherited] |
octave_idx_type* Sparse< bool >::mex_get_jc | ( | void | ) | const [inline, inherited] |
octave_idx_type Sparse< bool >::ndims | ( | void | ) | const [inline, inherited] |
Definition at line 488 of file Sparse.h.
References dim_vector::length().
octave_idx_type Sparse< bool >::nelem | ( | void | ) | const [inline, inherited] |
octave_idx_type Sparse< bool >::nnz | ( | void | ) | const [inline, inherited] |
Definition at line 247 of file Sparse.h.
References Sparse< T >::SparseRep::nnz().
Referenced by any(), operator!(), operator==(), and sum().
octave_idx_type Sparse< bool >::numel | ( | void | ) | const [inline, inherited] |
Definition at line 251 of file Sparse.h.
References dim_vector::safe_numel().
octave_idx_type Sparse< bool >::nzmax | ( | void | ) | const [inline, inherited] |
Definition at line 245 of file Sparse.h.
References Sparse< T >::SparseRep::length().
SparseBoolMatrix SparseBoolMatrix::operator! | ( | void | ) | const |
Definition at line 100 of file boolSparse.cc.
References Sparse< bool >::cidx(), Sparse< T >::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.
bool Sparse< bool >::operator() | ( | octave_idx_type | n | ) | const [inline, inherited] |
bool Sparse< bool >::operator() | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
bool & Sparse< bool >::operator() | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
bool Sparse< bool >::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline, inherited] |
bool & Sparse< bool >::operator() | ( | octave_idx_type | n | ) | [inline, inherited] |
bool & Sparse< bool >::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
SparseBoolMatrix& SparseBoolMatrix::operator= | ( | const SparseBoolMatrix & | a | ) | [inline] |
Definition at line 70 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< T >::cidx(), Sparse< bool >::cidx(), Sparse< T >::cols(), Sparse< bool >::cols(), Sparse< T >::data(), Sparse< bool >::data(), Sparse< T >::nnz(), Sparse< bool >::nnz(), Sparse< T >::ridx(), Sparse< bool >::ridx(), Sparse< T >::rows(), and Sparse< bool >::rows().
SparseBoolMatrix SparseBoolMatrix::permute | ( | const Array< octave_idx_type > & | vec, | |
bool | inv = false | |||
) | const |
Reimplemented from Sparse< bool >.
Definition at line 305 of file boolSparse.cc.
Referenced by octave_base_sparse< SparseComplexMatrix >::permute().
bool & Sparse< bool >::range_error | ( | const char * | fcn, | |
octave_idx_type | n | |||
) | [inherited] |
bool Sparse< bool >::range_error | ( | const char * | fcn, | |
octave_idx_type | i, | |||
octave_idx_type | j | |||
) | const [inherited] |
bool & Sparse< bool >::range_error | ( | const char * | fcn, | |
octave_idx_type | i, | |||
octave_idx_type | j | |||
) | [inherited] |
bool Sparse< bool >::range_error | ( | const char * | fcn, | |
const Array< octave_idx_type > & | ra_idx | |||
) | const [inherited] |
bool & Sparse< bool >::range_error | ( | const char * | fcn, | |
const Array< octave_idx_type > & | ra_idx | |||
) | [inherited] |
bool Sparse< bool >::range_error | ( | const char * | fcn, | |
octave_idx_type | n | |||
) | const [inherited] |
SparseBoolMatrix SparseBoolMatrix::reshape | ( | const dim_vector & | new_dims | ) | const |
Reimplemented from Sparse< bool >.
Definition at line 299 of file boolSparse.cc.
Referenced by octave_base_sparse< SparseComplexMatrix >::reshape().
void Sparse< bool >::resize | ( | octave_idx_type | r, | |
octave_idx_type | c | |||
) | [inherited] |
void Sparse< bool >::resize | ( | const dim_vector & | dv | ) | [inherited] |
void Sparse< bool >::resize1 | ( | octave_idx_type | n | ) | [inherited] |
octave_idx_type* Sparse< bool >::ridx | ( | void | ) | [inline, inherited] |
Definition at line 470 of file Sparse.h.
References Sparse< T >::SparseRep::r.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
octave_idx_type& Sparse< bool >::ridx | ( | octave_idx_type | i | ) | [inline, inherited] |
Definition at line 471 of file Sparse.h.
References Sparse< T >::SparseRep::ridx().
octave_idx_type Sparse< bool >::ridx | ( | octave_idx_type | i | ) | const [inline, inherited] |
Definition at line 475 of file Sparse.h.
References Sparse< T >::SparseRep::cridx().
octave_idx_type* Sparse< bool >::ridx | ( | void | ) | const [inline, inherited] |
Definition at line 477 of file Sparse.h.
References Sparse< T >::SparseRep::r.
octave_idx_type Sparse< bool >::rows | ( | void | ) | const [inline, inherited] |
Definition at line 262 of file Sparse.h.
Referenced by any(), matrix_value(), operator!(), operator==(), and sum().
Sparse<bool > Sparse< bool >::sort | ( | octave_idx_type | dim = 0 , |
|
sortmode | mode = ASCENDING | |||
) | const [inherited] |
Sparse<bool > Sparse< bool >::sort | ( | Array< octave_idx_type > & | sidx, | |
octave_idx_type | dim = 0 , |
|||
sortmode | mode = ASCENDING | |||
) | const [inherited] |
SparseBoolMatrix SparseBoolMatrix::squeeze | ( | void | ) | const |
Reimplemented from Sparse< bool >.
Definition at line 281 of file boolSparse.cc.
Referenced by octave_base_sparse< SparseComplexMatrix >::squeeze().
SparseMatrix SparseBoolMatrix::sum | ( | int | dim = -1 |
) | const |
Definition at line 187 of file boolSparse.cc.
References Sparse< T >::change_capacity(), Sparse< bool >::cidx(), Sparse< bool >::cols(), copy_or_memcpy(), fill_or_memset(), Array< T >::fortran_vec(), Sparse< bool >::nnz(), Sparse< bool >::ridx(), Sparse< T >::ridx(), Sparse< bool >::rows(), Sparse< T >::xcidx(), Sparse< T >::xdata(), and Array< T >::xelem().
Referenced by DEFUN().
SparseBoolMatrix SparseBoolMatrix::transpose | ( | void | ) | const [inline] |
Reimplemented from Sparse< bool >.
Definition at line 79 of file boolSparse.h.
References Sparse< T >::transpose().
Referenced by DEFUN_DLD().
octave_idx_type* Sparse< bool >::xcidx | ( | void | ) | [inline, inherited] |
Definition at line 481 of file Sparse.h.
References Sparse< T >::SparseRep::c.
octave_idx_type& Sparse< bool >::xcidx | ( | octave_idx_type | i | ) | [inline, inherited] |
Definition at line 482 of file Sparse.h.
References Sparse< T >::SparseRep::cidx().
Definition at line 463 of file Sparse.h.
References Sparse< T >::SparseRep::d.
bool & Sparse< bool >::xdata | ( | octave_idx_type | i | ) | [inline, inherited] |
Definition at line 464 of file Sparse.h.
References Sparse< T >::SparseRep::data().
bool Sparse< bool >::xelem | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
Definition at line 316 of file Sparse.h.
References compute_index(), and Sparse< T >::xelem().
bool Sparse< bool >::xelem | ( | octave_idx_type | n | ) | const [inline, inherited] |
bool & Sparse< bool >::xelem | ( | octave_idx_type | n | ) | [inline, inherited] |
bool & Sparse< bool >::xelem | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
Definition at line 313 of file Sparse.h.
References compute_index(), and Sparse< T >::xelem().
bool Sparse< bool >::xelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline, inherited] |
Definition at line 311 of file Sparse.h.
References Sparse< T >::SparseRep::celem().
bool & Sparse< bool >::xelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
Definition at line 310 of file Sparse.h.
References Sparse< T >::SparseRep::elem().
octave_idx_type& Sparse< bool >::xridx | ( | octave_idx_type | i | ) | [inline, inherited] |
Definition at line 473 of file Sparse.h.
References Sparse< T >::SparseRep::ridx().
octave_idx_type* Sparse< bool >::xridx | ( | void | ) | [inline, inherited] |
Definition at line 472 of file Sparse.h.
References Sparse< T >::SparseRep::r.
OCTAVE_API std::ostream& operator<< | ( | std::ostream & | os, | |
const SparseBoolMatrix & | a | |||
) | [friend] |
Definition at line 256 of file boolSparse.cc.
OCTAVE_API std::istream& operator>> | ( | std::istream & | is, | |
SparseBoolMatrix & | a | |||
) | [friend] |
Definition at line 273 of file boolSparse.cc.
dim_vector Sparse< bool >::dimensions [inherited] |