#include <cassert>
#include "Array-util.h"
#include "lo-array-errwarn.h"
#include "oct-cmplx.h"
#include "quit.h"
#include "error.h"
#include "lo-ieee.h"
#include "dSparse.h"
#include "dDiagMatrix.h"
#include "CSparse.h"
#include "CDiagMatrix.h"
#include "oct-spparms.h"
#include "sparse-xdiv.h"
Go to the source code of this file.
Macros | |
#define | INSTANTIATE_MX_DIV_CONFORM(T1, T2) template bool mx_div_conform (const T1&, const T2&) |
#define | INSTANTIATE_MX_LEFTDIV_CONFORM(T1, T2) template bool mx_leftdiv_conform (const T1&, const T2&) |
#define INSTANTIATE_MX_DIV_CONFORM | ( | T1, | |
T2 | |||
) | template bool mx_div_conform (const T1&, const T2&) |
Definition at line 106 of file sparse-xdiv.cc.
#define INSTANTIATE_MX_LEFTDIV_CONFORM | ( | T1, | |
T2 | |||
) | template bool mx_leftdiv_conform (const T1&, const T2&) |
Definition at line 72 of file sparse-xdiv.cc.
RT do_leftdiv_dm_sm | ( | const DM & | d, |
const SM & | a | ||
) |
Definition at line 564 of file sparse-xdiv.cc.
References d, min(), mx_leftdiv_conform(), and r.
RT do_rightdiv_sm_dm | ( | const SM & | a, |
const DM & | d | ||
) |
Definition at line 297 of file sparse-xdiv.cc.
References d, min(), mx_div_conform(), and r.
ComplexMatrix elem_xdiv | ( | const Complex & | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 436 of file sparse-xdiv.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
ComplexMatrix elem_xdiv | ( | const Complex & | a, |
const SparseMatrix & | b | ||
) |
Definition at line 418 of file sparse-xdiv.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
ComplexMatrix elem_xdiv | ( | double | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 399 of file sparse-xdiv.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), NaN, Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Matrix elem_xdiv | ( | double | a, |
const SparseMatrix & | b | ||
) |
Definition at line 375 of file sparse-xdiv.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), Inf, Matrix, NaN, Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
Referenced by oct_binop_el_ldiv().
template bool mx_div_conform | ( | const ComplexMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const ComplexMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const Matrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const Matrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const ComplexDiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const DiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const ComplexDiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const DiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const SparseMatrix & | |||
) |
bool mx_div_conform | ( | const T1 & | a, |
const T2 & | b | ||
) |
Definition at line 90 of file sparse-xdiv.cc.
References err_nonconformant().
Referenced by do_rightdiv_sm_dm(), and xdiv().
template bool mx_leftdiv_conform | ( | const ComplexDiagMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const ComplexDiagMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const DiagMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const DiagMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const ComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const Matrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const ComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const Matrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const SparseMatrix & | |||
) |
bool mx_leftdiv_conform | ( | const T1 & | a, |
const T2 & | b | ||
) |
Definition at line 56 of file sparse-xdiv.cc.
References err_nonconformant().
Referenced by do_leftdiv_dm_sm(), and xleftdiv().
|
static |
Definition at line 49 of file sparse-xdiv.cc.
References warn_singular_matrix().
Referenced by xdiv(), and xleftdiv().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 197 of file sparse-xdiv.cc.
References ComplexMatrix, ComplexMatrix::hermitian(), SparseComplexMatrix::hermitian(), mx_div_conform(), SparseComplexMatrix::solve(), solve_singularity_warning(), and MatrixType::transpose().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 177 of file sparse-xdiv.cc.
References ComplexMatrix, ComplexMatrix::hermitian(), mx_div_conform(), SparseMatrix::solve(), solve_singularity_warning(), SparseMatrix::transpose(), and MatrixType::transpose().
ComplexMatrix xdiv | ( | const Matrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 157 of file sparse-xdiv.cc.
References ComplexMatrix, ComplexMatrix::hermitian(), SparseComplexMatrix::hermitian(), mx_div_conform(), SparseComplexMatrix::solve(), solve_singularity_warning(), Matrix::transpose(), and MatrixType::transpose().
Matrix xdiv | ( | const Matrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 137 of file sparse-xdiv.cc.
References Matrix, mx_div_conform(), SparseMatrix::solve(), solve_singularity_warning(), Matrix::transpose(), SparseMatrix::transpose(), and MatrixType::transpose().
Referenced by oct_binop_div(), oct_binop_div_scm_cdm(), oct_binop_div_scm_dm(), oct_binop_div_sm_cdm(), and oct_binop_div_sm_dm().
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const ComplexDiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 360 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const DiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 353 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 277 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), mx_div_conform(), SparseComplexMatrix::solve(), solve_singularity_warning(), SparseComplexMatrix, and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 257 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), mx_div_conform(), SparseMatrix::solve(), solve_singularity_warning(), SparseComplexMatrix, SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseMatrix & | a, |
const ComplexDiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 346 of file sparse-xdiv.cc.
SparseMatrix xdiv | ( | const SparseMatrix & | a, |
const DiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 339 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 237 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), mx_div_conform(), SparseComplexMatrix::solve(), solve_singularity_warning(), SparseComplexMatrix, SparseMatrix::transpose(), and MatrixType::transpose().
SparseMatrix xdiv | ( | const SparseMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 217 of file sparse-xdiv.cc.
References mx_div_conform(), SparseMatrix::solve(), solve_singularity_warning(), SparseMatrix, SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | d, |
const SparseComplexMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 633 of file sparse-xdiv.cc.
References d.
SparseComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | d, |
const SparseMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 626 of file sparse-xdiv.cc.
References d.
SparseComplexMatrix xleftdiv | ( | const DiagMatrix & | d, |
const SparseComplexMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 619 of file sparse-xdiv.cc.
References d.
SparseMatrix xleftdiv | ( | const DiagMatrix & | d, |
const SparseMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 612 of file sparse-xdiv.cc.
References d.
ComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 528 of file sparse-xdiv.cc.
References ComplexMatrix, mx_leftdiv_conform(), SparseComplexMatrix::solve(), and solve_singularity_warning().
ComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 516 of file sparse-xdiv.cc.
References ComplexMatrix, mx_leftdiv_conform(), SparseComplexMatrix::solve(), and solve_singularity_warning().
SparseComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 552 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseComplexMatrix::solve(), solve_singularity_warning(), and SparseComplexMatrix.
SparseComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 540 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseComplexMatrix::solve(), solve_singularity_warning(), and SparseComplexMatrix.
ComplexMatrix xleftdiv | ( | const SparseMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 480 of file sparse-xdiv.cc.
References ComplexMatrix, mx_leftdiv_conform(), SparseMatrix::solve(), and solve_singularity_warning().
Matrix xleftdiv | ( | const SparseMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 468 of file sparse-xdiv.cc.
References Matrix, mx_leftdiv_conform(), SparseMatrix::solve(), and solve_singularity_warning().
Referenced by oct_binop_herm_ldiv(), oct_binop_ldiv(), oct_binop_ldiv_cdm_scm(), oct_binop_ldiv_cdm_sm(), oct_binop_ldiv_dm_scm(), oct_binop_ldiv_dm_sm(), and oct_binop_trans_ldiv().
SparseComplexMatrix xleftdiv | ( | const SparseMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 504 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseMatrix::solve(), solve_singularity_warning(), and SparseComplexMatrix.
SparseMatrix xleftdiv | ( | const SparseMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 492 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseMatrix::solve(), solve_singularity_warning(), and SparseMatrix.