24 #if ! defined (octave_boolSparse_h) 25 #define octave_boolSparse_h 1 27 #include "octave-config.h" 112 bool resize_ok)
const;
117 bool inv =
false)
const;
133 friend OCTAVE_API std::ostream&
operator << (std::ostream&
os,
135 friend OCTAVE_API std::istream&
operator >> (std::istream&
is,
#define SPARSE_SMSM_BOOL_OP_DECLS(M1, M2, API)
bool operator!=(const dim_vector &a, const dim_vector &b)
const octave_base_value const Array< octave_idx_type > & ra_idx
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
#define SPARSE_SMS_EQNE_OP_DECLS(M, S, API)
Sparse< double > index(const idx_vector &i, bool resize_ok=false) const
identity matrix If supplied two scalar respectively For allows like xample val
SparseBoolMatrix(octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
#define SPARSE_SSM_EQNE_OP_DECLS(S, M, API)
SparseMatrix sum(int dim=-1) const
SparseBoolMatrix(const PermMatrix &a)
SparseBoolMatrix(octave_idx_type r, octave_idx_type c, bool val)
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
SparseBoolMatrix(octave_idx_type r, octave_idx_type c)
SparseMatrix & insert(const SparseMatrix &a, octave_idx_type r, octave_idx_type c)
Sparse< T > transpose(void) const
the second is matched to the second specifier and placed in the second column and so forth If there are more words than specifiers then the process is repeated until all words have been processed or the limit imposed by any(non-whitespace) text in the format that is not one of these specifiers is considered a literal. If there is a literal between two format specifiers then that same literal must appear in the input stream between the matching words. The following specifiers are valid
#define SPARSE_SMS_BOOL_OP_DECLS(M, S, API)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
SparseMatrix reshape(const dim_vector &new_dims) const
SparseMatrix ipermute(const Array< octave_idx_type > &vec) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
#define SPARSE_SSM_BOOL_OP_DECLS(S, M, API)
SparseBoolMatrix(const boolNDArray &a)
#define SPARSE_SMSM_EQNE_OP_DECLS(M1, M2, API)
SparseMatrix squeeze(void) const
SparseMatrix diag(octave_idx_type k=0) const
Sparse< T > & operator=(const Sparse< T > &a)
SparseBoolMatrix(const SparseBoolMatrix &a, const dim_vector &dv)
bool operator==(const dim_vector &a, const dim_vector &b)
SparseBoolMatrix(const boolMatrix &a)
Matrix matrix_value(void) const
SparseBoolMatrix(const dim_vector &dv, octave_idx_type nz=0)
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
octave_value operator!(const octave_value &a)
write the output to stdout if nargout is
SparseBoolMatrix(const Sparse< bool > &a)
SparseMatrix & operator=(const SparseMatrix &a)
Vector representing the dimensions (size) of an Array.
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 transpose(void) const
SparseBoolMatrix(const SparseBoolMatrix &a)
SparseMatrix permute(const Array< octave_idx_type > &vec, bool inv=false) const
SparseBoolMatrix all(int dim=-1) const
boolMatrix dense_matrix_type