26 #if defined (HAVE_CONFIG_H)
49 solve_singularity_warning (
double rcond)
54 template <
typename T1,
typename T2>
72 #define INSTANTIATE_MX_LEFTDIV_CONFORM(T1, T2) \
73 template bool mx_leftdiv_conform (const T1&, const T2&)
88 template <
typename T1,
typename T2>
106 #define INSTANTIATE_MX_DIV_CONFORM(T1, T2) \
107 template bool mx_div_conform (const T1&, const T2&)
148 Matrix result = btmp.
solve (btyp, atmp, info, rcond,
149 solve_singularity_warning);
169 = btmp.
solve (btyp, atmp, info, rcond, solve_singularity_warning);
189 = btmp.
solve (btyp, atmp, info, rcond, solve_singularity_warning);
209 = btmp.
solve (btyp, atmp, info, rcond, solve_singularity_warning);
229 solve_singularity_warning);
249 = btmp.
solve (btyp, atmp, info, rcond, solve_singularity_warning);
269 = btmp.
solve (btyp, atmp, info, rcond, solve_singularity_warning);
290 = btmp.
solve (btyp, atmp, info, rcond, solve_singularity_warning);
296 template <
typename RT,
typename SM,
typename DM>
314 typedef typename DM::element_type DM_elt_type;
315 const DM_elt_type zero = DM_elt_type ();
321 const DM_elt_type s =
d.dgelem (j);
323 r.xcidx (j) = k_result;
327 r.xdata (k_result) = a.data (k) / s;
328 r.xridx (k_result) = a.ridx (k);
332 r.xcidx (nc) = k_result;
334 r.maybe_compress (
true);
342 return do_rightdiv_sm_dm<SparseMatrix> (a, b);
349 return do_rightdiv_sm_dm<SparseComplexMatrix> (a, b);
356 return do_rightdiv_sm_dm<SparseComplexMatrix> (a, b);
363 return do_rightdiv_sm_dm<SparseComplexMatrix> (a, b);
476 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
488 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
500 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
512 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
524 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
536 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
548 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
561 return a.
solve (typ, b, info, rcond, solve_singularity_warning);
564 template <
typename RT,
typename DM,
typename SM>
582 typedef typename DM::element_type DM_elt_type;
583 const DM_elt_type zero = DM_elt_type ();
590 r.xcidx (j) = k_result;
596 const DM_elt_type s =
d.dgelem (i);
599 r.xdata (k_result) = a.data (k) / s;
600 r.xridx (k_result) = i;
606 r.xcidx (a_nc) = k_result;
608 r.maybe_compress (
true);
616 return do_leftdiv_dm_sm<SparseMatrix> (
d, a);
623 return do_leftdiv_dm_sm<SparseComplexMatrix> (
d, a);
630 return do_leftdiv_dm_sm<SparseComplexMatrix> (
d, a);
638 return do_leftdiv_dm_sm<SparseComplexMatrix> (
d, a);
641 OCTAVE_END_NAMESPACE(
octave)
charNDArray min(char d, const charNDArray &m)
T & elem(octave_idx_type n)
Size of the specified dimension.
ComplexMatrix hermitian() const
MatrixType transpose() const
SparseComplexMatrix hermitian() const
ComplexMatrix solve(MatrixType &mattype, const Matrix &b) const
SparseMatrix transpose() const
Matrix solve(MatrixType &typ, const Matrix &b) const
octave_idx_type cols() const
octave_idx_type rows() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
void warn_singular_matrix(double rcond)
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
std::complex< double > Complex
Matrix elem_xdiv(double a, const SparseMatrix &b)
Matrix xdiv(const Matrix &a, const SparseMatrix &b, MatrixType &typ)
bool mx_leftdiv_conform(const T1 &a, const T2 &b)
bool mx_div_conform(const T1 &a, const T2 &b)
RT do_rightdiv_sm_dm(const SM &a, const DM &d)
#define INSTANTIATE_MX_LEFTDIV_CONFORM(T1, T2)
#define INSTANTIATE_MX_DIV_CONFORM(T1, T2)
Matrix xleftdiv(const SparseMatrix &a, const Matrix &b, MatrixType &typ)
RT do_leftdiv_dm_sm(const DM &d, const SM &a)