GNU Octave  8.1.0
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 (const Array< bool > &a, const octave::idx_vector &r, const octave::idx_vector &c, octave_idx_type nr=-1, octave_idx_type nc=-1, bool sum_terms=true, octave_idx_type nzm=-1)
 
 SparseBoolMatrix (const boolMatrix &a)
 
 SparseBoolMatrix (const boolNDArray &a)
 
 SparseBoolMatrix (const dim_vector &dv, octave_idx_type nz=0)
 
 SparseBoolMatrix (const PermMatrix &a)
 
 SparseBoolMatrix (const Sparse< bool > &a)
 
 SparseBoolMatrix (const SparseBoolMatrix &a)
 
 SparseBoolMatrix (const SparseBoolMatrix &a, const dim_vector &dv)
 
 SparseBoolMatrix (octave_idx_type r, octave_idx_type c)
 
 SparseBoolMatrix (octave_idx_type r, octave_idx_type c, bool val)
 
 SparseBoolMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
 
 SparseBoolMatrix (void)
 
OCTAVE_API SparseBoolMatrix all (int dim=-1) const
 
OCTAVE_API SparseBoolMatrix any (int dim=-1) const
 
bool any_element_is_nan (void) const
 
OCTAVE_API Array< bool > array_value (void) const
 
OCTAVE_API void assign (const octave::idx_vector &i, const bool &rhs)
 
OCTAVE_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const bool &rhs)
 
OCTAVE_API void assign (const octave::idx_vector &i, const octave::idx_vector &j, const Sparse< bool, Alloc > &rhs)
 
OCTAVE_API void assign (const octave::idx_vector &i, const Sparse< bool, Alloc > &rhs)
 
std::size_t byte_size (void) const
 
void change_capacity (octave_idx_type nz)
 
bool & checkelem (const Array< octave_idx_type > &ra_idx)
 
bool checkelem (const Array< octave_idx_type > &ra_idx) const
 
bool & checkelem (octave_idx_type i, octave_idx_type j)
 
bool checkelem (octave_idx_type i, octave_idx_type j) const
 
bool & checkelem (octave_idx_type n)
 
bool checkelem (octave_idx_type n) const
 
octave_idx_typecidx (octave_idx_type i)
 
octave_idx_type cidx (octave_idx_type i) const
 
octave_idx_typecidx (void)
 
octave_idx_typecidx (void) const
 
octave_idx_type cols (void) const
 
octave_idx_type columns (void) const
 
OCTAVE_API octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_API SparseBoolMatrix concat (const SparseBoolMatrix &rb, const Array< octave_idx_type > &ra_idx)
 
bool & data (octave_idx_type i)
 
bool data (octave_idx_type i) const
 
bool * data (void)
 
bool * data (void) const
 
OCTAVE_API void delete_elements (const octave::idx_vector &i)
 
OCTAVE_API void delete_elements (const octave::idx_vector &i, const octave::idx_vector &j)
 
OCTAVE_API void delete_elements (int dim, const octave::idx_vector &i)
 
OCTAVE_API 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
 
bool & elem (const Array< octave_idx_type > &ra_idx)
 
bool elem (const Array< octave_idx_type > &ra_idx) const
 
bool & elem (octave_idx_type i, octave_idx_type j)
 
bool elem (octave_idx_type i, octave_idx_type j) const
 
bool & elem (octave_idx_type n)
 
bool elem (octave_idx_type n) const
 
octave_idx_type get_col_index (octave_idx_type k)
 
octave_idx_type get_row_index (octave_idx_type k)
 
OCTAVE_API SparseBoolMatrix index (const octave::idx_vector &i, bool resize_ok) const
 
OCTAVE_API SparseBoolMatrix index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const
 
bool indices_ok (void) const
 
OCTAVE_API Sparse< bool, Alloc > & insert (const Sparse< bool, Alloc > &a, const Array< octave_idx_type > &idx)
 
OCTAVE_API Sparse< bool, Alloc > & insert (const Sparse< bool, Alloc > &a, octave_idx_type r, octave_idx_type c)
 
OCTAVE_API SparseBoolMatrixinsert (const SparseBoolMatrix &a, const Array< octave_idx_type > &indx)
 
OCTAVE_API SparseBoolMatrixinsert (const SparseBoolMatrix &a, octave_idx_type r, octave_idx_type c)
 
OCTAVE_API SparseBoolMatrix ipermute (const Array< octave_idx_type > &vec) const
 
bool isempty (void) const
 
bool issquare (void) const
 
Sparse< U > map (F fcn) const
 
Sparse< U > map (U(&fcn)(bool)) const
 
Sparse< U > map (U(&fcn)(const bool &)) const
 
OCTAVE_API boolMatrix matrix_value (void) const
 
Sparse< bool, Allocmaybe_compress (bool remove_zeros=false)
 
octave_idx_type ndims (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...
 
OCTAVE_API SparseBoolMatrix operator! (void) const
 
OCTAVE_API bool operator!= (const SparseBoolMatrix &a) const
 
bool & operator() (const Array< octave_idx_type > &ra_idx)
 
bool operator() (const Array< octave_idx_type > &ra_idx) const
 
bool & operator() (octave_idx_type i, octave_idx_type j)
 
bool operator() (octave_idx_type i, octave_idx_type j) const
 
bool & operator() (octave_idx_type n)
 
bool operator() (octave_idx_type n) const
 
SparseBoolMatrixoperator= (const SparseBoolMatrix &a)
 
OCTAVE_API bool operator== (const SparseBoolMatrix &a) const
 
OCTAVE_API SparseBoolMatrix permute (const Array< octave_idx_type > &vec, bool inv=false) const
 
OCTAVE_API void print_info (std::ostream &os, const std::string &prefix) const
 
OCTAVE_NORETURN OCTAVE_API bool & range_error (const char *fcn, const Array< octave_idx_type > &ra_idx)
 
OCTAVE_NORETURN OCTAVE_API bool range_error (const char *fcn, const Array< octave_idx_type > &ra_idx) const
 
OCTAVE_NORETURN OCTAVE_API bool & range_error (const char *fcn, octave_idx_type i, octave_idx_type j)
 
OCTAVE_NORETURN OCTAVE_API bool range_error (const char *fcn, octave_idx_type i, octave_idx_type j) const
 
OCTAVE_NORETURN OCTAVE_API bool & range_error (const char *fcn, octave_idx_type n)
 
OCTAVE_NORETURN OCTAVE_API bool range_error (const char *fcn, octave_idx_type n) const
 
OCTAVE_API SparseBoolMatrix reshape (const dim_vector &new_dims) const
 
OCTAVE_API void resize (const dim_vector &dv)
 
OCTAVE_API void resize (octave_idx_type r, octave_idx_type c)
 
OCTAVE_API void resize1 (octave_idx_type n)
 
octave_idx_typeridx (octave_idx_type i)
 
octave_idx_type ridx (octave_idx_type i) const
 
octave_idx_typeridx (void)
 
octave_idx_typeridx (void) const
 
octave_idx_type rows (void) const
 
OCTAVE_API Sparse< bool, Allocsort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
OCTAVE_API Sparse< bool, Allocsort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
OCTAVE_API SparseBoolMatrix squeeze (void) const
 
OCTAVE_API SparseMatrix sum (int dim=-1) const
 
bool test (F fcn) const
 
bool test_all (bool(&fcn)(bool)) const
 
bool test_all (bool(&fcn)(const bool &)) const
 
bool test_all (F fcn) const
 
bool test_any (bool(&fcn)(bool)) const
 
bool test_any (bool(&fcn)(const bool &)) const
 
bool test_any (F fcn) const
 
SparseBoolMatrix transpose (void) const
 
octave_idx_typexcidx (octave_idx_type i)
 
octave_idx_typexcidx (void)
 
bool & xdata (octave_idx_type i)
 
bool * xdata (void)
 
bool & xelem (const Array< octave_idx_type > &ra_idx)
 
bool xelem (const Array< octave_idx_type > &ra_idx) const
 
bool & xelem (octave_idx_type i, octave_idx_type j)
 
bool xelem (octave_idx_type i, octave_idx_type j) const
 
bool & xelem (octave_idx_type n)
 
bool xelem (octave_idx_type n) const
 
octave_idx_typexridx (octave_idx_type i)
 
octave_idx_typexridx (void)
 

Static Public Member Functions

static OCTAVE_API Sparse< bool, Alloccat (int dim, octave_idx_type n, const Sparse< bool, Alloc > *sparse_list)
 

Protected Member Functions

void make_unique (void)
 

Protected Attributes

dim_vector m_dimensions
 
Sparse< bool, Alloc >::SparseRep * m_rep
 

Static Private Member Functions

static OCTAVE_API Sparse< bool, Alloc >::SparseRep * nil_rep (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 , Alloc >::element_type
inherited

Definition at line 52 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 octave::idx_vector r,
const octave::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 140 of file boolSparse.cc.

References SPARSE_ALL_OP.

Referenced by octave_base_sparse< T >::all(), and Fprod().

◆ any()

◆ any_element_is_nan()

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

Definition at line 751 of file Sparse.h.

◆ array_value()

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

Definition at line 652 of file Sparse.cc.

◆ assign() [1/4]

OCTAVE_API void Sparse< bool , Alloc >::assign ( const octave::idx_vector i,
const bool &  rhs 
)
inherited

Definition at line 627 of file Sparse.cc.

◆ assign() [2/4]

OCTAVE_API void Sparse< bool , Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const bool &  rhs 
)
inherited

Definition at line 634 of file Sparse.cc.

◆ assign() [3/4]

OCTAVE_API void Sparse< bool , Alloc >::assign ( const octave::idx_vector i,
const octave::idx_vector j,
const Sparse< bool , Alloc > &  rhs 
)
inherited

Definition at line 630 of file Sparse.cc.

◆ assign() [4/4]

OCTAVE_API void Sparse< bool , Alloc >::assign ( const octave::idx_vector i,
const Sparse< bool , Alloc > &  rhs 
)
inherited

Definition at line 624 of file Sparse.cc.

◆ byte_size()

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

Definition at line 364 of file Sparse.h.

◆ cat()

OCTAVE_API Sparse< bool , Alloc > Sparse< bool , Alloc >::cat ( int  dim,
octave_idx_type  n,
const Sparse< bool , Alloc > *  sparse_list 
)
staticinherited

Definition at line 650 of file Sparse.cc.

◆ change_capacity()

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

Definition at line 556 of file Sparse.h.

◆ checkelem() [1/6]

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

Definition at line 446 of file Sparse.h.

◆ checkelem() [2/6]

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

Definition at line 502 of file Sparse.h.

◆ checkelem() [3/6]

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

Definition at line 435 of file Sparse.h.

◆ checkelem() [4/6]

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

Definition at line 494 of file Sparse.h.

◆ checkelem() [5/6]

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

Definition at line 424 of file Sparse.h.

◆ checkelem() [6/6]

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

Definition at line 486 of file Sparse.h.

◆ cidx() [1/4]

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

Definition at line 597 of file Sparse.h.

◆ cidx() [2/4]

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

Definition at line 605 of file Sparse.h.

◆ cidx() [3/4]

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

Definition at line 596 of file Sparse.h.

◆ cidx() [4/4]

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

Definition at line 607 of file Sparse.h.

◆ cols()

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

Definition at line 352 of file Sparse.h.

◆ columns()

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

Definition at line 353 of file Sparse.h.

◆ compute_index()

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

Definition at line 376 of file Sparse.cc.

◆ concat()

SparseBoolMatrix SparseBoolMatrix::concat ( const SparseBoolMatrix rb,
const Array< octave_idx_type > &  ra_idx 
)

Definition at line 93 of file boolSparse.cc.

References Sparse< T, Alloc >::cols(), insert(), ra_idx, and Sparse< T, Alloc >::rows().

◆ data() [1/4]

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

Definition at line 575 of file Sparse.h.

◆ data() [2/4]

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

Definition at line 579 of file Sparse.h.

◆ data() [3/4]

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

Definition at line 574 of file Sparse.h.

◆ data() [4/4]

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

Definition at line 581 of file Sparse.h.

◆ delete_elements() [1/3]

OCTAVE_API void Sparse< bool , Alloc >::delete_elements ( const octave::idx_vector i)
inherited

Definition at line 611 of file Sparse.cc.

◆ delete_elements() [2/3]

OCTAVE_API void Sparse< bool , Alloc >::delete_elements ( const octave::idx_vector i,
const octave::idx_vector j 
)
inherited

Definition at line 615 of file Sparse.cc.

◆ delete_elements() [3/3]

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

Definition at line 613 of file Sparse.cc.

◆ diag()

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

Definition at line 242 of file boolSparse.cc.

References Sparse< T, Alloc >::diag().

Referenced by octave_base_sparse< T >::diag().

◆ dim1()

octave_idx_type Sparse< bool , Alloc >::dim1 ( void  ) const
inlineinherited

Definition at line 348 of file Sparse.h.

◆ dim2()

octave_idx_type Sparse< bool , Alloc >::dim2 ( void  ) const
inlineinherited

Definition at line 349 of file Sparse.h.

◆ dims()

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

Definition at line 371 of file Sparse.h.

◆ elem() [1/6]

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

Definition at line 468 of file Sparse.h.

◆ elem() [2/6]

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

Definition at line 516 of file Sparse.h.

◆ elem() [3/6]

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

Definition at line 462 of file Sparse.h.

◆ elem() [4/6]

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

Definition at line 514 of file Sparse.h.

◆ elem() [5/6]

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

Definition at line 456 of file Sparse.h.

◆ elem() [6/6]

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

Definition at line 512 of file Sparse.h.

◆ get_col_index()

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

Definition at line 356 of file Sparse.h.

◆ get_row_index()

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

Definition at line 355 of file Sparse.h.

◆ index() [1/2]

SparseBoolMatrix SparseBoolMatrix::index ( const octave::idx_vector i,
bool  resize_ok 
) const

Definition at line 293 of file boolSparse.cc.

References Sparse< T, Alloc >::index().

◆ index() [2/2]

SparseBoolMatrix SparseBoolMatrix::index ( const octave::idx_vector i,
const octave::idx_vector j,
bool  resize_ok 
) const

Definition at line 299 of file boolSparse.cc.

References Sparse< T, Alloc >::index().

◆ indices_ok()

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

Definition at line 749 of file Sparse.h.

◆ insert() [1/4]

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

Definition at line 566 of file Sparse.cc.

◆ insert() [2/4]

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

Definition at line 564 of file Sparse.cc.

◆ insert() [3/4]

SparseBoolMatrix & SparseBoolMatrix::insert ( const SparseBoolMatrix a,
const Array< octave_idx_type > &  indx 
)

Definition at line 85 of file boolSparse.cc.

References Sparse< T, Alloc >::insert().

◆ insert() [4/4]

SparseBoolMatrix & SparseBoolMatrix::insert ( const SparseBoolMatrix a,
octave_idx_type  r,
octave_idx_type  c 
)

Definition at line 77 of file boolSparse.cc.

References Sparse< T, Alloc >::insert(), and r.

Referenced by concat().

◆ ipermute()

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

Definition at line 318 of file boolSparse.cc.

References Sparse< T, Alloc >::ipermute().

◆ isempty()

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

Definition at line 570 of file Sparse.h.

◆ issquare()

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

Definition at line 568 of file Sparse.h.

◆ make_unique()

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

Definition at line 234 of file Sparse.h.

◆ map() [1/3]

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

Definition at line 685 of file Sparse.h.

◆ map() [2/3]

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

Definition at line 741 of file Sparse.h.

◆ map() [3/3]

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

Definition at line 746 of file Sparse.h.

◆ matrix_value()

◆ maybe_compress()

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

Definition at line 531 of file Sparse.h.

◆ ndims()

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

Definition at line 609 of file Sparse.h.

◆ nil_rep()

OCTAVE_API Sparse< bool , Alloc >::SparseRep * Sparse< bool , Alloc >::nil_rep ( void  )
staticprivateinherited

Definition at line 255 of file Sparse.cc.

◆ nnz()

octave_idx_type Sparse< bool , Alloc >::nnz ( void  ) const
inlineinherited

Actual number of nonzero terms.

Definition at line 339 of file Sparse.h.

◆ numel()

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

Definition at line 343 of file Sparse.h.

◆ nzmax()

octave_idx_type Sparse< bool , Alloc >::nzmax ( void  ) const
inlineinherited

Amount of storage for nonzero elements.

This may differ from the actual number of elements, see nnz().

Definition at line 336 of file Sparse.h.

◆ operator!()

SparseBoolMatrix SparseBoolMatrix::operator! ( void  ) const

◆ operator!=()

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

Definition at line 71 of file boolSparse.cc.

◆ operator()() [1/6]

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

Definition at line 481 of file Sparse.h.

◆ operator()() [2/6]

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

Definition at line 526 of file Sparse.h.

◆ operator()() [3/6]

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

Definition at line 476 of file Sparse.h.

◆ operator()() [4/6]

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

Definition at line 521 of file Sparse.h.

◆ operator()() [5/6]

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

Definition at line 471 of file Sparse.h.

◆ operator()() [6/6]

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

Definition at line 519 of file Sparse.h.

◆ operator=()

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

Definition at line 80 of file boolSparse.h.

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

◆ operator==()

◆ 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, Alloc >::permute().

Referenced by octave_base_sparse< T >::permute().

◆ print_info()

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

Definition at line 638 of file Sparse.cc.

◆ range_error() [1/6]

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

Definition at line 391 of file Sparse.cc.

◆ range_error() [2/6]

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

Definition at line 389 of file Sparse.cc.

◆ range_error() [3/6]

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

Definition at line 386 of file Sparse.cc.

◆ range_error() [4/6]

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

Definition at line 384 of file Sparse.cc.

◆ range_error() [5/6]

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

Definition at line 381 of file Sparse.cc.

◆ range_error() [6/6]

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

Definition at line 379 of file Sparse.cc.

◆ reshape()

SparseBoolMatrix SparseBoolMatrix::reshape ( const dim_vector new_dims) const

Definition at line 306 of file boolSparse.cc.

References Sparse< T, Alloc >::reshape().

Referenced by octave_base_sparse< T >::reshape().

◆ resize() [1/2]

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

Definition at line 554 of file Sparse.cc.

◆ resize() [2/2]

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

Definition at line 552 of file Sparse.cc.

◆ resize1()

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

Definition at line 550 of file Sparse.cc.

◆ ridx() [1/4]

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

Definition at line 584 of file Sparse.h.

◆ ridx() [2/4]

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

Definition at line 592 of file Sparse.h.

◆ ridx() [3/4]

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

Definition at line 583 of file Sparse.h.

◆ ridx() [4/4]

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

Definition at line 594 of file Sparse.h.

◆ rows()

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

Definition at line 351 of file Sparse.h.

◆ sort() [1/2]

OCTAVE_API Sparse< bool , Alloc > Sparse< bool , Alloc >::sort ( Array< octave_idx_type > &  sidx,
octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

Definition at line 643 of file Sparse.cc.

◆ sort() [2/2]

OCTAVE_API Sparse< bool , Alloc > Sparse< bool , Alloc >::sort ( octave_idx_type  dim = 0,
sortmode  mode = ASCENDING 
) const
inherited

Definition at line 641 of file Sparse.cc.

◆ squeeze()

SparseBoolMatrix SparseBoolMatrix::squeeze ( void  ) const

Definition at line 287 of file boolSparse.cc.

References Sparse< T, Alloc >::squeeze().

Referenced by octave_base_sparse< T >::squeeze().

◆ sum()

◆ test()

bool Sparse< bool , Alloc >::test ( fcn) const
inlineinherited

Definition at line 656 of file Sparse.h.

◆ test_all() [1/3]

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

Definition at line 677 of file Sparse.h.

◆ test_all() [2/3]

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

Definition at line 680 of file Sparse.h.

◆ test_all() [3/3]

bool Sparse< bool , Alloc >::test_all ( fcn) const
inlineinherited

Definition at line 667 of file Sparse.h.

◆ test_any() [1/3]

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

Definition at line 671 of file Sparse.h.

◆ test_any() [2/3]

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

Definition at line 674 of file Sparse.h.

◆ test_any() [3/3]

bool Sparse< bool , Alloc >::test_any ( fcn) const
inlineinherited

Definition at line 663 of file Sparse.h.

◆ transpose()

SparseBoolMatrix SparseBoolMatrix::transpose ( void  ) const
inline

Definition at line 89 of file boolSparse.h.

References Sparse< T, Alloc >::transpose().

Referenced by Fsymbfact(), and oct_unop_transpose().

◆ xcidx() [1/2]

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

Definition at line 603 of file Sparse.h.

◆ xcidx() [2/2]

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

Definition at line 602 of file Sparse.h.

◆ xdata() [1/2]

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

Definition at line 577 of file Sparse.h.

◆ xdata() [2/2]

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

Definition at line 576 of file Sparse.h.

◆ xelem() [1/6]

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

Definition at line 415 of file Sparse.h.

◆ xelem() [2/6]

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

Definition at line 418 of file Sparse.h.

◆ xelem() [3/6]

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

Definition at line 409 of file Sparse.h.

◆ xelem() [4/6]

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

Definition at line 410 of file Sparse.h.

◆ xelem() [5/6]

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

Definition at line 395 of file Sparse.h.

◆ xelem() [6/6]

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

Definition at line 402 of file Sparse.h.

◆ xridx() [1/2]

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

Definition at line 590 of file Sparse.h.

◆ xridx() [2/2]

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

Definition at line 589 of file Sparse.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 261 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

◆ m_dimensions

dim_vector Sparse< bool , Alloc >::m_dimensions
protectedinherited

Definition at line 251 of file Sparse.h.

◆ m_rep

Sparse<bool , Alloc>::SparseRep* Sparse< bool , Alloc >::m_rep
protectedinherited

Definition at line 249 of file Sparse.h.


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