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;
163 retval.change_capacity (new_nz);
200 dim = (nr == 1 && nc != 1) ? 1 : 0;
209 retval.change_capacity (new_nz);
274 os << a.
ridx (i) + 1 <<
' ' << j + 1 <<
' ' << a.
data (i) <<
"\n";
285 return read_sparse_matrix<elt_type> (is, a, octave_read_value<bool>);
302 bool resize_ok)
const
template class OCTAVE_API Sparse< bool >
template class OCTAVE_API Sparse< double >
#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 & xelem(octave_idx_type n)
Size of the specified dimension.
T & elem(octave_idx_type n)
Size of the specified dimension.
const T * data(void) const
Size of the specified dimension.
const T * fortran_vec(void) const
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 index(const idx_vector &i, bool resize_ok) const
SparseBoolMatrix diag(octave_idx_type k=0) const
SparseBoolMatrix squeeze(void) const
SparseBoolMatrix all(int dim=-1) const
boolMatrix matrix_value(void) const
SparseMatrix sum(int dim=-1) const
bool operator==(const SparseBoolMatrix &a) const
SparseBoolMatrix operator!(void) const
SparseBoolMatrix any(int dim=-1) const
SparseBoolMatrix concat(const SparseBoolMatrix &rb, const Array< octave_idx_type > &ra_idx)
Sparse< T > squeeze(void) const
Sparse< T > & insert(const Sparse< T > &a, octave_idx_type r, octave_idx_type c)
octave_idx_type cols(void) const
Sparse< T > permute(const Array< octave_idx_type > &vec, bool inv=false) const
octave_idx_type * cidx(void)
Sparse< T > diag(octave_idx_type k=0) const
Sparse< T > ipermute(const Array< octave_idx_type > &vec) const
octave_idx_type nnz(void) const
Actual number of nonzero terms.
octave_idx_type rows(void) const
Sparse< T > reshape(const dim_vector &new_dims) const
Sparse< T > index(const idx_vector &i, bool resize_ok=false) const
octave_idx_type * ridx(void)
Vector representing the dimensions (size) of an Array.
const octave_base_value const Array< octave_idx_type > & ra_idx
octave_value::octave_value(const Array< char > &chm, char type) return retval