26 #if defined (HAVE_CONFIG_H)
56 if (nr != nr_a || nc != nc_a || nz != nz_a)
97 if (rb.
rows () > 0 && rb.
cols () > 0)
121 if (jj <
cidx (i+1) &&
ridx (jj) == j)
153 dim = (nr == 1 && nc != 1) ? 1 : 0;
159 retval.
xcidx (0) = 0;
165 std::fill_n (retval.
data (), new_nz,
true);
199 dim = (nr == 1 && nc != 1) ? 1 : 0;
214 retval.
xdata (k++) = c;
272 os << a.
ridx (i) + 1 <<
' ' << j + 1 <<
' ' << a.
data (i) <<
"\n";
300 bool resize_ok)
const
#define SPARSE_SSM_BOOL_OPS(S, M)
#define SPARSE_SMS_EQNE_OPS(M, S)
#define SPARSE_SSM_EQNE_OPS(S, M)
#define SPARSE_SMSM_EQNE_OPS(M1, M2)
#define SPARSE_SMSM_BOOL_OPS(M1, M2)
#define SPARSE_SMS_BOOL_OPS(M, S)
#define SPARSE_ALL_OP(DIM)
std::ostream & operator<<(std::ostream &os, const SparseBoolMatrix &a)
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
T & elem(octave_idx_type n)
Size of the specified dimension.
T * fortran_vec()
Size of the specified dimension.
T & xelem(octave_idx_type n)
Size of the specified dimension.
SparseBoolMatrix & insert(const SparseBoolMatrix &a, octave_idx_type r, octave_idx_type c)
SparseBoolMatrix reshape(const dim_vector &new_dims) const
SparseBoolMatrix ipermute(const Array< octave_idx_type > &vec) const
SparseBoolMatrix permute(const Array< octave_idx_type > &vec, bool inv=false) const
bool operator!=(const SparseBoolMatrix &a) const
SparseBoolMatrix diag(octave_idx_type k=0) const
SparseBoolMatrix index(const octave::idx_vector &i, bool resize_ok) const
SparseBoolMatrix all(int dim=-1) const
boolMatrix matrix_value() const
SparseMatrix sum(int dim=-1) const
SparseBoolMatrix operator!() const
SparseBoolMatrix squeeze() const
bool operator==(const SparseBoolMatrix &a) const
SparseBoolMatrix any(int dim=-1) const
SparseBoolMatrix concat(const SparseBoolMatrix &rb, const Array< octave_idx_type > &ra_idx)
octave_idx_type cols() const
Sparse< T, Alloc > diag(octave_idx_type k=0) const
Sparse< T, Alloc > permute(const Array< octave_idx_type > &vec, bool inv=false) const
octave_idx_type * xcidx()
Sparse< T, Alloc > squeeze() const
Sparse< T, Alloc > index(const octave::idx_vector &i, bool resize_ok=false) const
Sparse< T, Alloc > & insert(const Sparse< T, Alloc > &a, octave_idx_type r, octave_idx_type c)
octave_idx_type nnz() const
Actual number of nonzero terms.
octave_idx_type rows() const
void change_capacity(octave_idx_type nz)
Sparse< T, Alloc > ipermute(const Array< octave_idx_type > &vec) const
Sparse< T, Alloc > reshape(const dim_vector &new_dims) const
Vector representing the dimensions (size) of an Array.
octave::idx_vector idx_vector
template bool read_value< bool >(std::istream &is)
const octave_base_value const Array< octave_idx_type > & ra_idx