26 #if ! defined (octave_dSparse_h)
27 #define octave_dSparse_h 1
29 #include "octave-config.h"
51 typedef void (*solve_singularity_handler) (
double rcond);
83 :
MSparse<double> (a,
r, c, nr, nc, sum_terms, nzm) { }
141 const bool force =
false,
const bool calccond =
true)
const;
145 const bool force =
false,
const bool calccond =
true)
const;
154 bool force =
false,
bool calc_cond =
true)
const;
159 bool calc_cond =
true)
const;
165 double& rcond, solve_singularity_handler sing_handler,
166 bool calc_cond =
false)
const;
170 double& rcond, solve_singularity_handler sing_handler,
171 bool calc_cond =
false)
const;
175 double& rcond, solve_singularity_handler sing_handler,
176 bool calc_cond =
false)
const;
180 double& rcond, solve_singularity_handler sing_handler,
181 bool calc_cond =
false)
const;
186 double& rcond, solve_singularity_handler sing_handler,
187 bool calc_cond =
false)
const;
191 double& rcond, solve_singularity_handler sing_handler,
192 bool calc_cond =
false)
const;
196 double& rcond, solve_singularity_handler sing_handler,
197 bool calc_cond =
false)
const;
201 double& rcond, solve_singularity_handler sing_handler,
202 bool calc_cond =
false)
const;
207 double& rcond, solve_singularity_handler sing_handler,
208 bool calc_cond =
false)
const;
212 double& rcond, solve_singularity_handler sing_handler,
213 bool calc_cond =
false)
const;
217 double& rcond, solve_singularity_handler sing_handler,
218 bool calc_cond =
false)
const;
222 double& rcond, solve_singularity_handler sing_handler,
223 bool calc_cond =
false)
const;
228 double& rcond, solve_singularity_handler sing_handler,
229 bool calc_cond =
false)
const;
233 double& rcond, solve_singularity_handler sing_handler,
234 bool calc_cond =
false)
const;
238 double& rcond, solve_singularity_handler sing_handler,
239 bool calc_cond =
false)
const;
243 double& rcond, solve_singularity_handler sing_handler,
244 bool calc_cond =
false)
const;
249 double& rcond, solve_singularity_handler sing_handler,
250 bool calc_cond =
false)
const;
254 double& rcond, solve_singularity_handler sing_handler,
255 bool calc_cond =
false)
const;
259 double& rcond, solve_singularity_handler sing_handler,
260 bool calc_cond =
false)
const;
264 double& rcond, solve_singularity_handler sing_handler,
265 bool calc_cond =
false)
const;
270 Matrix& Info, solve_singularity_handler sing_handler,
271 bool calc_cond =
false)
const;
275 double& rcond, solve_singularity_handler sing_handler,
276 bool calc_cond =
false)
const;
280 double& rcond, solve_singularity_handler sing_handler,
281 bool calc_cond =
false)
const;
285 double& rcond, solve_singularity_handler sing_handler,
286 bool calc_cond =
false)
const;
290 double& rcond, solve_singularity_handler sing_handler,
291 bool calc_cond =
false)
const;
300 double& rcond)
const;
303 double& rcond, solve_singularity_handler sing_handler,
304 bool singular_fallback =
true)
const;
312 double& rcond)
const;
315 double& rcond, solve_singularity_handler sing_handler,
316 bool singular_fallback =
true)
const;
323 double& rcond)
const;
326 double& rcond, solve_singularity_handler sing_handler,
327 bool singular_fallback =
true)
const;
340 solve_singularity_handler sing_handler,
341 bool singular_fallabck =
true)
const;
348 double& rcond)
const;
351 double& rcond, solve_singularity_handler sing_handler)
const;
364 solve_singularity_handler sing_handler)
const;
373 solve_singularity_handler sing_handler)
const;
382 solve_singularity_handler sing_handler)
const;
391 solve_singularity_handler sing_handler)
const;
398 double& rcond)
const;
401 double& rcond, solve_singularity_handler sing_handler)
const;
410 solve_singularity_handler sing_handler)
const;
417 double& rcond)
const;
420 double& rcond, solve_singularity_handler sing_handler)
const;
424 OCTAVE_API bool any_element_is_negative (
bool =
false)
const;
426 OCTAVE_API bool any_element_is_inf_or_nan ()
const;
427 OCTAVE_API bool any_element_not_one_or_zero ()
const;
428 OCTAVE_API bool all_elements_are_zero ()
const;
429 OCTAVE_API bool all_elements_are_int_or_inf_or_nan ()
const;
430 OCTAVE_API bool all_integers (
double& max_val,
double& min_val)
const;
template std::ostream & operator<<(std::ostream &, const Array< bool > &)
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
#define SPARSE_FORWARD_DEFS(B, R, F, T)
#define SPARSE_SMSM_CMP_OP_DECLS(M1, M2, API)
#define SPARSE_SMSM_BOOL_OP_DECLS(M1, M2, API)
#define SPARSE_SSM_CMP_OP_DECLS(S, M, API)
#define SPARSE_SMS_BOOL_OP_DECLS(M, S, API)
#define SPARSE_SSM_BOOL_OP_DECLS(S, M, API)
#define SPARSE_SMS_CMP_OP_DECLS(M, S, API)
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
MSparse< T > transpose() const
MSparse< T > & operator=(const MSparse< T > &a)
SparseMatrix transpose() const
SparseMatrix(const Sparse< double > &a)
ComplexMatrix solve(const ComplexMatrix &b) const
SparseMatrix(const SparseMatrix &a, const dim_vector &dv)
SparseMatrix(const SparseMatrix &a)
SparseMatrix(octave_idx_type r, octave_idx_type c)
SparseMatrix(const MSparse< double > &a)
SparseMatrix(const Array< double > &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)
SparseMatrix hermitian() const
SparseMatrix(octave_idx_type r, octave_idx_type c, octave_idx_type num_nz)
SparseMatrix(const NDArray &a)
SparseMatrix(const PermMatrix &a)
SparseMatrix(const Matrix &a)
SparseMatrix(const dim_vector &dv, octave_idx_type nz=0)
SparseMatrix(octave_idx_type r, octave_idx_type c, double val)
Vector representing the dimensions (size) of an Array.
SparseMatrix operator+(const DiagMatrix &, const SparseMatrix &)
Matrix trans_mul(const SparseMatrix &a, const Matrix &b)
SparseMatrix operator*(const SparseMatrix &a, const SparseMatrix &b)
SparseMatrix real(const SparseComplexMatrix &a)
SparseMatrix min(double d, const SparseMatrix &m)
SparseMatrix operator-(const DiagMatrix &, const SparseMatrix &)
SparseMatrix max(double d, const SparseMatrix &m)
Matrix mul_trans(const Matrix &a, const SparseMatrix &b)
SparseMatrix imag(const SparseComplexMatrix &a)
bool operator!=(const dim_vector &a, const dim_vector &b)
bool operator==(const dim_vector &a, const dim_vector &b)
octave::idx_vector idx_vector
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
bool too_large_for_float(double x)
const octave_base_value const Array< octave_idx_type > & ra_idx
octave_value operator!(const octave_value &a)
template int8_t abs(int8_t)