#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 566 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 298 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 437 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 419 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 400 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 376 of file sparse-xdiv.cc.
References Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::elem(), Inf, NaN, Sparse< T, Alloc >::ridx(), and Sparse< T, Alloc >::rows().
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().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 197 of file sparse-xdiv.cc.
References ComplexMatrix::hermitian(), SparseComplexMatrix::hermitian(), mx_div_conform(), SparseComplexMatrix::solve(), and MatrixType::transpose().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 177 of file sparse-xdiv.cc.
References ComplexMatrix::hermitian(), mx_div_conform(), SparseMatrix::solve(), 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 SparseComplexMatrix::hermitian(), mx_div_conform(), SparseComplexMatrix::solve(), 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 mx_div_conform(), SparseMatrix::solve(), Matrix::transpose(), SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const ComplexDiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 361 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const DiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 354 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(), 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(), SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseMatrix & | a, |
const ComplexDiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 347 of file sparse-xdiv.cc.
SparseMatrix xdiv | ( | const SparseMatrix & | a, |
const DiagMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 340 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(), 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(), SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | d, |
const SparseComplexMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 635 of file sparse-xdiv.cc.
References d.
SparseComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | d, |
const SparseMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 628 of file sparse-xdiv.cc.
References d.
SparseComplexMatrix xleftdiv | ( | const DiagMatrix & | d, |
const SparseComplexMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 621 of file sparse-xdiv.cc.
References d.
SparseMatrix xleftdiv | ( | const DiagMatrix & | d, |
const SparseMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 614 of file sparse-xdiv.cc.
References d.
ComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 529 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseComplexMatrix::solve().
ComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 517 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseComplexMatrix::solve().
SparseComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 553 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseComplexMatrix::solve().
SparseComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 541 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseComplexMatrix::solve().
ComplexMatrix xleftdiv | ( | const SparseMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 481 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseMatrix::solve().
Matrix xleftdiv | ( | const SparseMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 469 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseMatrix::solve().
SparseComplexMatrix xleftdiv | ( | const SparseMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 505 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseMatrix::solve().
SparseMatrix xleftdiv | ( | const SparseMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 493 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), and SparseMatrix::solve().