GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
SparseBoolMatrix Class Reference

#include "boolSparse.h"

Inheritance diagram for SparseBoolMatrix:
Collaboration diagram for SparseBoolMatrix:

Public Types

typedef boolMatrix dense_matrix_type
 
typedef bool element_type
 

Public Member Functions

 SparseBoolMatrix (void)
 
 SparseBoolMatrix (octave_idx_type r, octave_idx_type c)
 
 SparseBoolMatrix (octave_idx_type r, octave_idx_type c, bool val)
 
 SparseBoolMatrix (const dim_vector &dv, octave_idx_type nz=0)
 
 SparseBoolMatrix (const Sparse< bool > &a)
 
 SparseBoolMatrix (const SparseBoolMatrix &a)
 
 SparseBoolMatrix (const SparseBoolMatrix &a, const dim_vector &dv)
 
 SparseBoolMatrix (const boolMatrix &a)
 
 SparseBoolMatrix (const boolNDArray &a)
 
 SparseBoolMatrix (const PermMatrix &a)
 
 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)
 
 SparseBoolMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
SparseBoolMatrix all (int dim=-1) const
 
SparseBoolMatrix any (int dim=-1) const
 
bool any_element_is_nan (void) const
 
Array< boolarray_value (void) const
 
void assign (const idx_vector &i, const Sparse< bool > &rhs)
 
void assign (const idx_vector &i, const idx_vector &j, const Sparse< bool > &rhs)
 
size_t byte_size (void) const
 
octave_idx_type capacity (void) const
 Amount of storage for nonzero elements. More...
 
void change_capacity (octave_idx_type nz)
 
boolcheckelem (octave_idx_type n)
 
boolcheckelem (octave_idx_type i, octave_idx_type j)
 
boolcheckelem (const Array< octave_idx_type > &ra_idx)
 
bool checkelem (octave_idx_type n) const
 
bool checkelem (octave_idx_type i, octave_idx_type j) const
 
bool checkelem (const Array< octave_idx_type > &ra_idx) const
 
octave_idx_typecidx (void)
 
octave_idx_typecidx (octave_idx_type i)
 
octave_idx_type cidx (octave_idx_type i) const
 
octave_idx_typecidx (void) const
 
octave_idx_type cols (void) const
 
octave_idx_type columns (void) const
 
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 
SparseBoolMatrix concat (const SparseBoolMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
booldata (void)
 
booldata (octave_idx_type i)
 
bool data (octave_idx_type i) const
 
booldata (void) const
 
void delete_elements (const idx_vector &i)
 
void delete_elements (int dim, const idx_vector &i)
 
void delete_elements (const idx_vector &i, const idx_vector &j)
 
SparseBoolMatrix diag (octave_idx_type k=0) const
 
octave_idx_type dim1 (void) const
 
octave_idx_type dim2 (void) const
 
dim_vector dims (void) const
 
boolelem (octave_idx_type n)
 
boolelem (octave_idx_type i, octave_idx_type j)
 
boolelem (const Array< octave_idx_type > &ra_idx)
 
bool elem (octave_idx_type n) const
 
bool elem (octave_idx_type i, octave_idx_type j) const
 
bool elem (const Array< octave_idx_type > &ra_idx) const
 
octave_idx_type get_col_index (octave_idx_type k)
 
octave_idx_type get_row_index (octave_idx_type k)
 
SparseBoolMatrix index (const idx_vector &i, bool resize_ok) const
 
SparseBoolMatrix index (const idx_vector &i, const idx_vector &j, bool resize_ok) const
 
bool indices_ok (void) const
 
SparseBoolMatrixinsert (const SparseBoolMatrix &a, octave_idx_type r, octave_idx_type c)
 
SparseBoolMatrixinsert (const SparseBoolMatrix &a, const Array< octave_idx_type > &indx)
 
Sparse< bool > & insert (const Sparse< bool > &a, octave_idx_type r, octave_idx_type c)
 
Sparse< bool > & insert (const Sparse< bool > &a, const Array< octave_idx_type > &idx)
 
SparseBoolMatrix ipermute (const Array< octave_idx_type > &vec) const
 
bool is_empty (void) const
 
bool is_square (void) const
 
bool isempty (void) const
 
bool issquare (void) const
 
octave_idx_type length (void) const
 
Sparse< U > map (F fcn) const
 
Sparse< U > map (U(&fcn)(bool)) const
 
Sparse< U > map (U(&fcn)(const bool &)) const
 
boolMatrix matrix_value (void) const
 
Sparse< boolmaybe_compress (bool remove_zeros=false)
 
void * mex_get_data (void) const
 
octave_idx_typemex_get_ir (void) const
 
octave_idx_typemex_get_jc (void) const
 
octave_idx_type ndims (void) const
 
octave_idx_type nelem (void) const
 
octave_idx_type nnz (void) const
 Actual number of nonzero terms. More...
 
octave_idx_type numel (void) const
 
octave_idx_type nzmax (void) const
 Amount of storage for nonzero elements. More...
 
SparseBoolMatrix operator! (void) const
 
bool operator!= (const SparseBoolMatrix &a) const
 
booloperator() (octave_idx_type n)
 
booloperator() (octave_idx_type i, octave_idx_type j)
 
booloperator() (const Array< octave_idx_type > &ra_idx)
 
bool operator() (octave_idx_type n) const
 
bool operator() (octave_idx_type i, octave_idx_type j) const
 
bool operator() (const Array< octave_idx_type > &ra_idx) const
 
SparseBoolMatrixoperator= (const SparseBoolMatrix &a)
 
bool operator== (const SparseBoolMatrix &a) const
 
SparseBoolMatrix permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_NORETURN bool range_error (const char *fcn, octave_idx_type n) const
 
OCTAVE_NORETURN boolrange_error (const char *fcn, octave_idx_type n)
 
OCTAVE_NORETURN bool range_error (const char *fcn, octave_idx_type i, octave_idx_type j) const
 
OCTAVE_NORETURN boolrange_error (const char *fcn, octave_idx_type i, octave_idx_type j)
 
OCTAVE_NORETURN bool range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_NORETURN boolrange_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
 
SparseBoolMatrix reshape (const dim_vector &new_dims) const
 
void resize (octave_idx_type r, octave_idx_type c)
 
void resize (const dim_vector &dv)
 
void resize1 (octave_idx_type n)
 
octave_idx_typeridx (void)
 
octave_idx_typeridx (octave_idx_type i)
 
octave_idx_type ridx (octave_idx_type i) const
 
octave_idx_typeridx (void) const
 
octave_idx_type rows (void) const
 
Sparse< boolsort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
Sparse< boolsort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
SparseBoolMatrix squeeze (void) const
 
SparseMatrix sum (int dim=-1) const
 
bool test (F fcn) const
 
bool test_all (F fcn) const
 
bool test_all (bool(&fcn)(bool)) const
 
bool test_all (bool(&fcn)(const bool &)) const
 
bool test_any (F fcn) const
 
bool test_any (bool(&fcn)(bool)) const
 
bool test_any (bool(&fcn)(const bool &)) const
 
SparseBoolMatrix transpose (void) const
 
octave_idx_typexcidx (void)
 
octave_idx_typexcidx (octave_idx_type i)
 
boolxdata (void)
 
boolxdata (octave_idx_type i)
 
boolxelem (octave_idx_type n)
 
bool xelem (octave_idx_type n) const
 
boolxelem (octave_idx_type i, octave_idx_type j)
 
bool xelem (octave_idx_type i, octave_idx_type j) const
 
boolxelem (const Array< octave_idx_type > &ra_idx)
 
bool xelem (const Array< octave_idx_type > &ra_idx) const
 
octave_idx_typexridx (void)
 
octave_idx_typexridx (octave_idx_type i)
 

Static Public Member Functions

static Sparse< boolcat (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)
 

Detailed Description

Definition at line 38 of file boolSparse.h.

Member Typedef Documentation

◆ dense_matrix_type

Definition at line 45 of file boolSparse.h.

◆ element_type

typedef bool Sparse< bool >::element_type
inherited

Definition at line 51 of file Sparse.h.

Constructor & Destructor Documentation

◆ SparseBoolMatrix() [1/12]

SparseBoolMatrix::SparseBoolMatrix ( void  )
inline

Definition at line 47 of file boolSparse.h.

◆ SparseBoolMatrix() [2/12]

SparseBoolMatrix::SparseBoolMatrix ( octave_idx_type  r,
octave_idx_type  c 
)
inline

Definition at line 49 of file boolSparse.h.

◆ SparseBoolMatrix() [3/12]

SparseBoolMatrix::SparseBoolMatrix ( octave_idx_type  r,
octave_idx_type  c,
bool  val 
)
inlineexplicit

Definition at line 52 of file boolSparse.h.

◆ SparseBoolMatrix() [4/12]

SparseBoolMatrix::SparseBoolMatrix ( const dim_vector dv,
octave_idx_type  nz = 0 
)
inline

Definition at line 55 of file boolSparse.h.

◆ SparseBoolMatrix() [5/12]

SparseBoolMatrix::SparseBoolMatrix ( const Sparse< bool > &  a)
inline

Definition at line 58 of file boolSparse.h.

◆ SparseBoolMatrix() [6/12]

SparseBoolMatrix::SparseBoolMatrix ( const SparseBoolMatrix a)
inline

Definition at line 60 of file boolSparse.h.

◆ SparseBoolMatrix() [7/12]

SparseBoolMatrix::SparseBoolMatrix ( const SparseBoolMatrix a,
const dim_vector dv 
)
inline

Definition at line 62 of file boolSparse.h.

◆ SparseBoolMatrix() [8/12]

SparseBoolMatrix::SparseBoolMatrix ( const boolMatrix a)
inlineexplicit

Definition at line 65 of file boolSparse.h.

◆ SparseBoolMatrix() [9/12]

SparseBoolMatrix::SparseBoolMatrix ( const boolNDArray a)
inlineexplicit

Definition at line 67 of file boolSparse.h.

◆ SparseBoolMatrix() [10/12]

SparseBoolMatrix::SparseBoolMatrix ( const PermMatrix a)
inlineexplicit

Definition at line 69 of file boolSparse.h.

◆ SparseBoolMatrix() [11/12]

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 71 of file boolSparse.h.

◆ SparseBoolMatrix() [12/12]

SparseBoolMatrix::SparseBoolMatrix ( octave_idx_type  r,
octave_idx_type  c,
octave_idx_type  num_nz 
)
inline

Definition at line 77 of file boolSparse.h.

Member Function Documentation

◆ all()

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().

◆ any()

SparseBoolMatrix SparseBoolMatrix::any ( int  dim = -1) const

◆ any_element_is_nan()

bool Sparse< bool >::any_element_is_nan ( void  ) const
inlineinherited

Definition at line 663 of file Sparse.h.

References Sparse< T >::SparseRep::any_element_is_nan().

◆ array_value()

Array< bool > Sparse< bool >::array_value ( void  ) const
inherited

Definition at line 2675 of file Sparse.cc.

References dims, i, and retval.

Referenced by DiagArray2< Complex >::build_diag_matrix().

◆ assign() [1/2]

◆ assign() [2/2]

◆ byte_size()

size_t Sparse< bool >::byte_size ( void  ) const
inlineinherited

Definition at line 271 of file Sparse.h.

◆ capacity()

octave_idx_type Sparse< bool >::capacity ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

Synonymous with nzmax().

Definition at line 237 of file Sparse.h.

◆ cat()

◆ change_capacity()

void Sparse< bool >::change_capacity ( octave_idx_type  nz)
inlineinherited

Definition at line 462 of file Sparse.h.

References Sparse< T >::SparseRep::change_length().

◆ checkelem() [1/6]

bool & Sparse< bool >::checkelem ( octave_idx_type  n)
inlineinherited

Definition at line 330 of file Sparse.h.

References numel().

◆ checkelem() [2/6]

bool & Sparse< bool >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 342 of file Sparse.h.

References i.

◆ checkelem() [3/6]

bool & Sparse< bool >::checkelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 353 of file Sparse.h.

References compute_index(), elem, i, and ra_idx.

◆ checkelem() [4/6]

bool Sparse< bool >::checkelem ( octave_idx_type  n) const
inlineinherited

Definition at line 393 of file Sparse.h.

References numel().

◆ checkelem() [5/6]

bool Sparse< bool >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 401 of file Sparse.h.

References i.

◆ checkelem() [6/6]

bool Sparse< bool >::checkelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 409 of file Sparse.h.

References compute_index(), Sparse< T >::elem(), i, and ra_idx.

◆ cidx() [1/4]

octave_idx_type* Sparse< bool >::cidx ( void  )
inlineinherited

Definition at line 508 of file Sparse.h.

References Sparse< T >::SparseRep::c.

Referenced by any(), matrix_value(), operator!(), operator==(), and sum().

◆ cidx() [2/4]

octave_idx_type& Sparse< bool >::cidx ( octave_idx_type  i)
inlineinherited

Definition at line 509 of file Sparse.h.

References Sparse< T >::SparseRep::cidx(), and i.

◆ cidx() [3/4]

octave_idx_type Sparse< bool >::cidx ( octave_idx_type  i) const
inlineinherited

Definition at line 517 of file Sparse.h.

References Sparse< T >::SparseRep::ccidx(), and i.

◆ cidx() [4/4]

octave_idx_type* Sparse< bool >::cidx ( void  ) const
inlineinherited

Definition at line 519 of file Sparse.h.

References Sparse< T >::SparseRep::c.

◆ cols()

octave_idx_type Sparse< bool >::cols ( void  ) const
inlineinherited

◆ columns()

octave_idx_type Sparse< bool >::columns ( void  ) const
inlineinherited

Definition at line 260 of file Sparse.h.

◆ compute_index()

octave_idx_type Sparse< bool >::compute_index ( const Array< octave_idx_type > &  ra_idx) const
inherited

Definition at line 713 of file Sparse.cc.

References current_liboctave_error_handler, octave_base_value::numel(), ra_idx, and retval.

◆ concat()

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().

◆ data() [1/4]

bool * Sparse< bool >::data ( void  )
inlineinherited

Definition at line 486 of file Sparse.h.

References Sparse< T >::SparseRep::d.

Referenced by matrix_value(), and operator==().

◆ data() [2/4]

bool & Sparse< bool >::data ( octave_idx_type  i)
inlineinherited

Definition at line 487 of file Sparse.h.

References Sparse< T >::SparseRep::data(), and i.

◆ data() [3/4]

bool Sparse< bool >::data ( octave_idx_type  i) const
inlineinherited

Definition at line 491 of file Sparse.h.

References Sparse< T >::SparseRep::data(), and i.

◆ data() [4/4]

bool * Sparse< bool >::data ( void  ) const
inlineinherited

Definition at line 493 of file Sparse.h.

References Sparse< T >::SparseRep::d.

◆ delete_elements() [1/3]

◆ delete_elements() [2/3]

void Sparse< bool >::delete_elements ( int  dim,
const idx_vector i 
)
inherited

Definition at line 1368 of file Sparse.cc.

References idx_vector::colon, and current_liboctave_error_handler.

◆ delete_elements() [3/3]

◆ diag()

SparseBoolMatrix SparseBoolMatrix::diag ( octave_idx_type  k = 0) const

Definition at line 242 of file boolSparse.cc.

References Sparse< T >::diag(), and k.

◆ dim1()

◆ dim2()

◆ dims()

dim_vector Sparse< bool >::dims ( void  ) const
inlineinherited

Definition at line 278 of file Sparse.h.

◆ elem() [1/6]

bool & Sparse< bool >::elem ( octave_idx_type  n)
inlineinherited

Definition at line 363 of file Sparse.h.

◆ elem() [2/6]

bool & Sparse< bool >::elem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 369 of file Sparse.h.

References i.

◆ elem() [3/6]

bool & Sparse< bool >::elem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 375 of file Sparse.h.

References compute_index(), Sparse< T >::elem(), and ra_idx.

◆ elem() [4/6]

bool Sparse< bool >::elem ( octave_idx_type  n) const
inlineinherited

Definition at line 419 of file Sparse.h.

◆ elem() [5/6]

bool Sparse< bool >::elem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 421 of file Sparse.h.

References i.

◆ elem() [6/6]

bool Sparse< bool >::elem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 423 of file Sparse.h.

References compute_index(), Sparse< T >::elem(), and ra_idx.

◆ get_col_index()

octave_idx_type Sparse< bool >::get_col_index ( octave_idx_type  k)
inlineinherited

Definition at line 263 of file Sparse.h.

References k.

◆ get_row_index()

octave_idx_type Sparse< bool >::get_row_index ( octave_idx_type  k)
inlineinherited

Definition at line 262 of file Sparse.h.

References k.

◆ index() [1/2]

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().

◆ index() [2/2]

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().

◆ indices_ok()

bool Sparse< bool >::indices_ok ( void  ) const
inlineinherited

Definition at line 661 of file Sparse.h.

References Sparse< T >::SparseRep::indices_ok().

◆ insert() [1/4]

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().

◆ insert() [2/4]

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().

◆ insert() [3/4]

Sparse< bool > & Sparse< bool >::insert ( const Sparse< bool > &  a,
octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 1000 of file Sparse.cc.

References a, c, i, and tmp.

◆ insert() [4/4]

Sparse< bool > & Sparse< bool >::insert ( const Sparse< bool > &  a,
const Array< octave_idx_type > &  idx 
)
inherited

Definition at line 1081 of file Sparse.cc.

References a, current_liboctave_error_handler, octave_base_value::numel(), and ra_idx.

◆ ipermute()

SparseBoolMatrix SparseBoolMatrix::ipermute ( const Array< octave_idx_type > &  vec) const

Definition at line 318 of file boolSparse.cc.

References Sparse< T >::ipermute().

◆ is_empty()

bool Sparse< bool >::is_empty ( void  ) const
inlineinherited

Definition at line 481 of file Sparse.h.

◆ is_square()

bool Sparse< bool >::is_square ( void  ) const
inlineinherited

Definition at line 475 of file Sparse.h.

◆ isempty()

bool Sparse< bool >::isempty ( void  ) const
inlineinherited

Definition at line 478 of file Sparse.h.

◆ issquare()

bool Sparse< bool >::issquare ( void  ) const
inlineinherited

Definition at line 472 of file Sparse.h.

◆ length()

octave_idx_type Sparse< bool >::length ( void  ) const
inlineinherited

Definition at line 253 of file Sparse.h.

References numel().

◆ make_unique()

void Sparse< bool >::make_unique ( void  )
inlineprotectedinherited

Definition at line 137 of file Sparse.h.

◆ map() [1/3]

Sparse<U> Sparse< bool >::map ( F  fcn) const
inlineinherited

Definition at line 597 of file Sparse.h.

References fcn, i, result, and val.

◆ map() [2/3]

Sparse<U> Sparse< bool >::map ( U(&)(bool fcn) const
inlineinherited

Definition at line 653 of file Sparse.h.

References fcn.

◆ map() [3/3]

Sparse<U> Sparse< bool >::map ( U(&)(const bool &)  fcn) const
inlineinherited

Definition at line 658 of file Sparse.h.

References fcn.

◆ matrix_value()

◆ maybe_compress()

Sparse<bool > Sparse< bool >::maybe_compress ( bool  remove_zeros = false)
inlineinherited

Definition at line 438 of file Sparse.h.

References Sparse< T >::SparseRep::maybe_compress().

◆ mex_get_data()

void* Sparse< bool >::mex_get_data ( void  ) const
inlineinherited

Definition at line 542 of file Sparse.h.

◆ mex_get_ir()

octave_idx_type* Sparse< bool >::mex_get_ir ( void  ) const
inlineinherited

Definition at line 544 of file Sparse.h.

◆ mex_get_jc()

octave_idx_type* Sparse< bool >::mex_get_jc ( void  ) const
inlineinherited

Definition at line 549 of file Sparse.h.

◆ ndims()

octave_idx_type Sparse< bool >::ndims ( void  ) const
inlineinherited

Definition at line 521 of file Sparse.h.

References dim_vector::ndims().

◆ nelem()

octave_idx_type Sparse< bool >::nelem ( void  ) const
inlineinherited

Definition at line 250 of file Sparse.h.

Referenced by DiagArray2< Complex >::numel().

◆ nnz()

octave_idx_type Sparse< bool >::nnz ( void  ) const
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().

◆ numel()

octave_idx_type Sparse< bool >::numel ( void  ) const
inlineinherited

Definition at line 244 of file Sparse.h.

References dim_vector::safe_numel().

◆ nzmax()

octave_idx_type Sparse< bool >::nzmax ( void  ) const
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().

◆ operator!()

◆ operator!=()

Definition at line 69 of file boolSparse.cc.

References a.

◆ operator()() [1/6]

bool & Sparse< bool >::operator() ( octave_idx_type  n)
inlineinherited

Definition at line 378 of file Sparse.h.

References elem.

◆ operator()() [2/6]

bool & Sparse< bool >::operator() ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 383 of file Sparse.h.

References elem, and i.

◆ operator()() [3/6]

bool & Sparse< bool >::operator() ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 388 of file Sparse.h.

References elem, and ra_idx.

◆ operator()() [4/6]

bool Sparse< bool >::operator() ( octave_idx_type  n) const
inlineinherited

Definition at line 426 of file Sparse.h.

References elem.

◆ operator()() [5/6]

bool Sparse< bool >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 428 of file Sparse.h.

References elem, and i.

◆ operator()() [6/6]

bool Sparse< bool >::operator() ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 433 of file Sparse.h.

References elem, and ra_idx.

◆ operator=()

SparseBoolMatrix& SparseBoolMatrix::operator= ( const SparseBoolMatrix a)
inline

Definition at line 80 of file boolSparse.h.

References a, and Sparse< T >::operator=().

◆ operator==()

bool SparseBoolMatrix::operator== ( const SparseBoolMatrix a) const

◆ permute()

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().

◆ print_info()

void Sparse< bool >::print_info ( std::ostream &  os,
const std::string prefix 
) const
inherited

Definition at line 3000 of file Sparse.cc.

References os.

◆ range_error() [1/6]

bool Sparse< bool >::range_error ( const char *  fcn,
octave_idx_type  n 
) const
inherited

Definition at line 736 of file Sparse.cc.

References fcn.

◆ range_error() [2/6]

bool & Sparse< bool >::range_error ( const char *  fcn,
octave_idx_type  n 
)
inherited

Definition at line 743 of file Sparse.cc.

References fcn.

◆ range_error() [3/6]

bool Sparse< bool >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
) const
inherited

Definition at line 750 of file Sparse.cc.

References fcn, and i.

◆ range_error() [4/6]

bool & Sparse< bool >::range_error ( const char *  fcn,
octave_idx_type  i,
octave_idx_type  j 
)
inherited

Definition at line 758 of file Sparse.cc.

References fcn, and i.

◆ range_error() [5/6]

bool Sparse< bool >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
) const
inherited

Definition at line 765 of file Sparse.cc.

References fcn, i, octave_base_value::numel(), ra_idx, and string.

◆ range_error() [6/6]

bool & Sparse< bool >::range_error ( const char *  fcn,
const Array< octave_idx_type > &  ra_idx 
)
inherited

Definition at line 789 of file Sparse.cc.

References fcn, i, octave_base_value::numel(), ra_idx, and string.

◆ reshape()

SparseBoolMatrix SparseBoolMatrix::reshape ( const dim_vector new_dims) const

Definition at line 306 of file boolSparse.cc.

References Sparse< T >::reshape().

◆ resize() [1/2]

void Sparse< bool >::resize ( octave_idx_type  r,
octave_idx_type  c 
)
inherited

Definition at line 950 of file Sparse.cc.

References c, i, k, min(), and u.

Referenced by DiagArray2< Complex >::resize().

◆ resize() [2/2]

void Sparse< bool >::resize ( const dim_vector dv)
inherited

Definition at line 938 of file Sparse.cc.

References dv, and dim_vector::ndims().

◆ resize1()

void Sparse< bool >::resize1 ( octave_idx_type  n)
inherited

Definition at line 919 of file Sparse.cc.

References octave::err_invalid_resize(), and max().

◆ ridx() [1/4]

octave_idx_type* Sparse< bool >::ridx ( void  )
inlineinherited

Definition at line 495 of file Sparse.h.

References Sparse< T >::SparseRep::r.

Referenced by any(), matrix_value(), operator!(), operator==(), and sum().

◆ ridx() [2/4]

octave_idx_type& Sparse< bool >::ridx ( octave_idx_type  i)
inlineinherited

Definition at line 496 of file Sparse.h.

References i, and Sparse< T >::SparseRep::ridx().

◆ ridx() [3/4]

octave_idx_type Sparse< bool >::ridx ( octave_idx_type  i) const
inlineinherited

Definition at line 504 of file Sparse.h.

References Sparse< T >::SparseRep::cridx(), and i.

◆ ridx() [4/4]

octave_idx_type* Sparse< bool >::ridx ( void  ) const
inlineinherited

Definition at line 506 of file Sparse.h.

References Sparse< T >::SparseRep::r.

◆ rows()

octave_idx_type Sparse< bool >::rows ( void  ) const
inlineinherited

◆ sort() [1/2]

◆ sort() [2/2]

◆ squeeze()

SparseBoolMatrix SparseBoolMatrix::squeeze ( void  ) const

Definition at line 287 of file boolSparse.cc.

References Sparse< T >::squeeze().

◆ sum()

SparseMatrix SparseBoolMatrix::sum ( int  dim = -1) const

◆ test()

bool Sparse< bool >::test ( F  fcn) const
inlineinherited

Definition at line 568 of file Sparse.h.

References fcn.

◆ test_all() [1/3]

bool Sparse< bool >::test_all ( F  fcn) const
inlineinherited

Definition at line 579 of file Sparse.h.

References fcn.

◆ test_all() [2/3]

bool Sparse< bool >::test_all ( bool(&)(bool fcn) const
inlineinherited

Definition at line 589 of file Sparse.h.

References fcn.

◆ test_all() [3/3]

bool Sparse< bool >::test_all ( bool(&)(const bool &)  fcn) const
inlineinherited

Definition at line 592 of file Sparse.h.

References fcn.

◆ test_any() [1/3]

bool Sparse< bool >::test_any ( F  fcn) const
inlineinherited

Definition at line 575 of file Sparse.h.

References fcn.

◆ test_any() [2/3]

bool Sparse< bool >::test_any ( bool(&)(bool fcn) const
inlineinherited

Definition at line 583 of file Sparse.h.

References fcn.

◆ test_any() [3/3]

bool Sparse< bool >::test_any ( bool(&)(const bool &)  fcn) const
inlineinherited

Definition at line 586 of file Sparse.h.

References fcn.

◆ transpose()

SparseBoolMatrix SparseBoolMatrix::transpose ( void  ) const
inline

Definition at line 89 of file boolSparse.h.

References Sparse< T >::transpose().

Referenced by Gsymbfact(), and oct_unop_transpose().

◆ xcidx() [1/2]

octave_idx_type* Sparse< bool >::xcidx ( void  )
inlineinherited

Definition at line 514 of file Sparse.h.

References Sparse< T >::SparseRep::c.

◆ xcidx() [2/2]

octave_idx_type& Sparse< bool >::xcidx ( octave_idx_type  i)
inlineinherited

Definition at line 515 of file Sparse.h.

References Sparse< T >::SparseRep::cidx(), and i.

◆ xdata() [1/2]

bool * Sparse< bool >::xdata ( void  )
inlineinherited

Definition at line 488 of file Sparse.h.

References Sparse< T >::SparseRep::d.

◆ xdata() [2/2]

bool & Sparse< bool >::xdata ( octave_idx_type  i)
inlineinherited

Definition at line 489 of file Sparse.h.

References Sparse< T >::SparseRep::data(), and i.

◆ xelem() [1/6]

bool & Sparse< bool >::xelem ( octave_idx_type  n)
inlineinherited

Definition at line 301 of file Sparse.h.

References i.

◆ xelem() [2/6]

bool Sparse< bool >::xelem ( octave_idx_type  n) const
inlineinherited

Definition at line 308 of file Sparse.h.

References i.

◆ xelem() [3/6]

bool & Sparse< bool >::xelem ( octave_idx_type  i,
octave_idx_type  j 
)
inlineinherited

Definition at line 315 of file Sparse.h.

References Sparse< T >::SparseRep::elem(), and i.

◆ xelem() [4/6]

bool Sparse< bool >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inlineinherited

Definition at line 316 of file Sparse.h.

References Sparse< T >::SparseRep::celem(), and i.

◆ xelem() [5/6]

bool & Sparse< bool >::xelem ( const Array< octave_idx_type > &  ra_idx)
inlineinherited

Definition at line 321 of file Sparse.h.

References compute_index(), and ra_idx.

◆ xelem() [6/6]

bool Sparse< bool >::xelem ( const Array< octave_idx_type > &  ra_idx) const
inlineinherited

Definition at line 324 of file Sparse.h.

References compute_index(), and ra_idx.

◆ xridx() [1/2]

octave_idx_type* Sparse< bool >::xridx ( void  )
inlineinherited

Definition at line 501 of file Sparse.h.

References Sparse< T >::SparseRep::r.

◆ xridx() [2/2]

octave_idx_type& Sparse< bool >::xridx ( octave_idx_type  i)
inlineinherited

Definition at line 502 of file Sparse.h.

References i, and Sparse< T >::SparseRep::ridx().

Friends And Related Function Documentation

◆ operator<<

OCTAVE_API std::ostream& operator<< ( std::ostream &  os,
const SparseBoolMatrix a 
)
friend

Definition at line 262 of file boolSparse.cc.

◆ operator>>

OCTAVE_API std::istream& operator>> ( std::istream &  is,
SparseBoolMatrix a 
)
friend

Definition at line 279 of file boolSparse.cc.

Member Data Documentation

◆ dimensions

dim_vector Sparse< bool >::dimensions
inherited

Definition at line 157 of file Sparse.h.

◆ rep

Sparse<bool >::SparseRep* Sparse< bool >::rep
inherited

Definition at line 155 of file Sparse.h.


The documentation for this class was generated from the following files: