26 #if defined (HAVE_CONFIG_H)
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,
296 template <
typename RT,
typename SM,
typename DM>
313 typedef typename DM::element_type DM_elt_type;
314 const DM_elt_type zero = DM_elt_type ();
320 const DM_elt_type s =
d.dgelem (j);
322 r.xcidx (j) = k_result;
326 r.xdata (k_result) = a.data (k) / s;
327 r.xridx (k_result) = a.ridx (k);
331 r.xcidx (nc) = k_result;
333 r.maybe_compress (
true);
341 return do_rightdiv_sm_dm<SparseMatrix> (a, b);
348 return do_rightdiv_sm_dm<SparseComplexMatrix> (a, b);
355 return do_rightdiv_sm_dm<SparseComplexMatrix> (a, b);
362 return do_rightdiv_sm_dm<SparseComplexMatrix> (a, b);
563 template <
typename RT,
typename DM,
typename SM>
580 typedef typename DM::element_type DM_elt_type;
581 const DM_elt_type zero = DM_elt_type ();
588 r.xcidx (j) = k_result;
594 const DM_elt_type s =
d.dgelem (i);
597 r.xdata (k_result) = a.data (k) / s;
598 r.xridx (k_result) = i;
604 r.xcidx (a_nc) = k_result;
606 r.maybe_compress (
true);
614 return do_leftdiv_dm_sm<SparseMatrix> (
d, a);
621 return do_leftdiv_dm_sm<SparseComplexMatrix> (
d, a);
628 return do_leftdiv_dm_sm<SparseComplexMatrix> (
d, a);
636 return do_leftdiv_dm_sm<SparseComplexMatrix> (
d, a);
charNDArray min(char d, const charNDArray &m)
OCTARRAY_OVERRIDABLE_FUNC_API T & elem(octave_idx_type n)
Size of the specified dimension.
ComplexMatrix hermitian(void) const
OCTAVE_API MatrixType transpose(void) const
Matrix transpose(void) const
OCTAVE_API SparseComplexMatrix hermitian(void) const
OCTAVE_API ComplexMatrix solve(MatrixType &mattype, const Matrix &b) const
SparseMatrix transpose(void) const
OCTAVE_API Matrix solve(MatrixType &typ, const Matrix &b) const
octave_idx_type rows(void) const
octave_idx_type * cidx(void)
octave_idx_type * ridx(void)
octave_idx_type cols(void) 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
class OCTAVE_API ComplexMatrix
class OCTAVE_API SparseMatrix
class OCTAVE_API SparseComplexMatrix
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)
static void solve_singularity_warning(double rcond)
#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)