54 if (nr != nr_a || nc != nc_a || nz != nz_a)
95 if (rb.
rows () > 0 && rb.
cols () > 0)
119 if (jj <
cidx (i+1) &&
ridx (jj) == j)
151 dim = (nr == 1 && nc != 1) ? 1 : 0;
157 retval.
xcidx (0) = 0;
163 std::fill_n (retval.
data (), new_nz,
true);
182 idx_vector (static_cast<octave_idx_type> (0)),
198 dim = (nr == 1 && nc != 1) ? 1 : 0;
213 retval.
xdata (k++) = c;
233 idx_vector (static_cast<octave_idx_type> (0)),
272 os << a.
ridx (i) + 1 <<
" " << j + 1 <<
" " << a.
data (i) <<
"\n";
283 return read_sparse_matrix<elt_type> (is, a, octave_read_value<bool>);
300 bool resize_ok)
const
#define SPARSE_SMS_EQNE_OPS(M, MZ, CM, S, SZ, CS)
Sparse< T > ipermute(const Array< octave_idx_type > &vec) const
octave_idx_type cols(void) const
boolMatrix matrix_value(void) const
octave_idx_type rows(void) const
const octave_base_value const Array< octave_idx_type > & ra_idx
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
SparseBoolMatrix ipermute(const Array< octave_idx_type > &vec) const
#define SPARSE_SMSM_EQNE_OPS(M1, Z1, C1, M2, Z2, C2)
#define SPARSE_SMSM_BOOL_OPS(M1, M2, ZERO)
octave_idx_type * xcidx(void)
Sparse< T > index(const idx_vector &i, bool resize_ok=false) const
SparseBoolMatrix permute(const Array< octave_idx_type > &vec, bool inv=false) const
Sparse< T > permute(const Array< octave_idx_type > &vec, bool inv=false) const
Sparse< T > & insert(const Sparse< T > &a, octave_idx_type r, octave_idx_type c)
octave_idx_type * cidx(void)
T & elem(octave_idx_type n)
bool operator==(const SparseBoolMatrix &a) const
SparseBoolMatrix index(const idx_vector &i, bool resize_ok) const
SparseBoolMatrix reshape(const dim_vector &new_dims) const
octave_idx_type nnz(void) const
Sparse< T > squeeze(void) const
SparseMatrix sum(int dim=-1) const
#define SPARSE_ALL_OP(DIM)
#define SPARSE_SSM_EQNE_OPS(S, SZ, SC, M, MZ, MC)
SparseBoolMatrix all(int dim=-1) const
void change_capacity(octave_idx_type nz)
SparseBoolMatrix operator!(void) const
Sparse< T > reshape(const dim_vector &new_dims) const
SparseBoolMatrix concat(const SparseBoolMatrix &rb, const Array< octave_idx_type > &ra_idx)
SparseBoolMatrix & insert(const SparseBoolMatrix &a, octave_idx_type r, octave_idx_type c)
SparseBoolMatrix any(int dim=-1) const
SparseBoolMatrix squeeze(void) const
T & xelem(octave_idx_type n)
octave_idx_type * ridx(void)
#define SPARSE_SMS_BOOL_OPS(M, S, ZERO)
SparseBoolMatrix diag(octave_idx_type k=0) const
const T * fortran_vec(void) const
#define SPARSE_SSM_BOOL_OPS(S, M, ZERO)
std::ostream & operator<<(std::ostream &os, const SparseBoolMatrix &a)
Sparse< T > diag(octave_idx_type k=0) const
bool operator!=(const SparseBoolMatrix &a) const