#include <cassert>
#include "Array-util.h"
#include "CMatrix.h"
#include "dMatrix.h"
#include "CNDArray.h"
#include "dNDArray.h"
#include "fCMatrix.h"
#include "fMatrix.h"
#include "fCNDArray.h"
#include "fNDArray.h"
#include "oct-cmplx.h"
#include "dDiagMatrix.h"
#include "fDiagMatrix.h"
#include "CDiagMatrix.h"
#include "fCDiagMatrix.h"
#include "lo-array-errwarn.h"
#include "quit.h"
#include "error.h"
#include "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&, blas_trans_type) |
#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&, blas_trans_type) |
MT dmdm_div_impl | ( | const MT & | a, |
const DMT & | d | ||
) |
MT dmdm_leftdiv_impl | ( | const DMT & | d, |
const MT & | a | ||
) |
Definition at line 941 of file xdiv.cc.
References blas_no_trans, d, m, min(), mx_leftdiv_conform(), n, and x.
Referenced by xleftdiv().
MT dmm_leftdiv_impl | ( | const DMT & | d, |
const MT & | a | ||
) |
Definition at line 786 of file xdiv.cc.
References blas_no_trans, d, m, mx_leftdiv_conform(), n, and x.
Referenced by xleftdiv().
ComplexMatrix elem_xdiv | ( | const Complex | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 254 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
ComplexNDArray elem_xdiv | ( | const Complex | a, |
const ComplexNDArray & | b | ||
) |
Definition at line 323 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
ComplexMatrix elem_xdiv | ( | const Complex | a, |
const Matrix & | b | ||
) |
Definition at line 236 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
ComplexNDArray elem_xdiv | ( | const Complex | a, |
const NDArray & | b | ||
) |
Definition at line 309 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
FloatComplexMatrix elem_xdiv | ( | const FloatComplex | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 555 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
FloatComplexNDArray elem_xdiv | ( | const FloatComplex | a, |
const FloatComplexNDArray & | b | ||
) |
Definition at line 624 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
FloatComplexMatrix elem_xdiv | ( | const FloatComplex | a, |
const FloatMatrix & | b | ||
) |
Definition at line 537 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
FloatComplexNDArray elem_xdiv | ( | const FloatComplex | a, |
const FloatNDArray & | b | ||
) |
Definition at line 610 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
ComplexMatrix elem_xdiv | ( | double | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 218 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
ComplexNDArray elem_xdiv | ( | double | a, |
const ComplexNDArray & | b | ||
) |
Definition at line 295 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
Definition at line 200 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
Definition at line 281 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
FloatComplexMatrix elem_xdiv | ( | float | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 519 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
FloatComplexNDArray elem_xdiv | ( | float | a, |
const FloatComplexNDArray & | b | ||
) |
Definition at line 596 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
FloatMatrix elem_xdiv | ( | float | a, |
const FloatMatrix & | b | ||
) |
Definition at line 501 of file xdiv.cc.
References Array< T, Alloc >::columns(), and Array< T, Alloc >::rows().
FloatNDArray elem_xdiv | ( | float | a, |
const FloatNDArray & | b | ||
) |
Definition at line 582 of file xdiv.cc.
References Array< T, Alloc >::dims(), and Array< T, Alloc >::numel().
MT mdm_div_impl | ( | const MT & | a, |
const DMT & | d | ||
) |
template bool mx_div_conform | ( | const ComplexMatrix & | , |
const ComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const ComplexMatrix & | , |
const Matrix & | |||
) |
template bool mx_div_conform | ( | const FloatComplexMatrix & | , |
const FloatComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const FloatComplexMatrix & | , |
const FloatMatrix & | |||
) |
template bool mx_div_conform | ( | const FloatMatrix & | , |
const FloatComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const FloatMatrix & | , |
const FloatMatrix & | |||
) |
template bool mx_div_conform | ( | const Matrix & | , |
const ComplexMatrix & | |||
) |
bool mx_div_conform | ( | const T1 & | a, |
const T2 & | b | ||
) |
Definition at line 89 of file xdiv.cc.
References err_nonconformant().
Referenced by dmdm_div_impl(), mdm_div_impl(), and xdiv().
template bool mx_leftdiv_conform | ( | const ComplexMatrix & | , |
const ComplexMatrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const ComplexMatrix & | , |
const Matrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const FloatComplexMatrix & | , |
const FloatComplexMatrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const FloatComplexMatrix & | , |
const FloatMatrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const FloatMatrix & | , |
const FloatComplexMatrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const FloatMatrix & | , |
const FloatMatrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const Matrix & | , |
const ComplexMatrix & | , | ||
blas_trans_type | |||
) |
template bool mx_leftdiv_conform | ( | const Matrix & | , |
const Matrix & | , | ||
blas_trans_type | |||
) |
bool mx_leftdiv_conform | ( | const T1 & | a, |
const T2 & | b, | ||
blas_trans_type | blas_trans | ||
) |
Definition at line 62 of file xdiv.cc.
References blas_no_trans, blas_trans, and err_nonconformant().
Referenced by dmdm_leftdiv_impl(), dmm_leftdiv_impl(), and xleftdiv().
|
static |
Definition at line 55 of file xdiv.cc.
References warn_singular_matrix().
Referenced by xdiv(), and xleftdiv().
|
static |
Definition at line 399 of file xdiv.cc.
References warn_singular_matrix().
ComplexDiagMatrix xdiv | ( | const ComplexDiagMatrix & | a, |
const ComplexDiagMatrix & | b | ||
) |
Definition at line 912 of file xdiv.cc.
References dmdm_div_impl().
ComplexDiagMatrix xdiv | ( | const ComplexDiagMatrix & | a, |
const DiagMatrix & | b | ||
) |
Definition at line 907 of file xdiv.cc.
References dmdm_div_impl().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const ComplexDiagMatrix & | b | ||
) |
Definition at line 757 of file xdiv.cc.
References mdm_div_impl().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 175 of file xdiv.cc.
References blas_trans, ComplexMatrix, mx_div_conform(), ComplexMatrix::solve(), solve_singularity_warning(), and ComplexMatrix::transpose().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const DiagMatrix & | b | ||
) |
Definition at line 752 of file xdiv.cc.
References mdm_div_impl().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 158 of file xdiv.cc.
References blas_trans, ComplexMatrix, mx_div_conform(), Matrix::solve(), solve_singularity_warning(), and ComplexMatrix::transpose().
DiagMatrix xdiv | ( | const DiagMatrix & | a, |
const DiagMatrix & | b | ||
) |
Definition at line 902 of file xdiv.cc.
References dmdm_div_impl().
FloatComplexDiagMatrix xdiv | ( | const FloatComplexDiagMatrix & | a, |
const FloatComplexDiagMatrix & | b | ||
) |
Definition at line 936 of file xdiv.cc.
References dmdm_div_impl().
FloatComplexDiagMatrix xdiv | ( | const FloatComplexDiagMatrix & | a, |
const FloatDiagMatrix & | b | ||
) |
Definition at line 931 of file xdiv.cc.
References dmdm_div_impl().
FloatComplexMatrix xdiv | ( | const FloatComplexMatrix & | a, |
const FloatComplexDiagMatrix & | b | ||
) |
Definition at line 781 of file xdiv.cc.
References mdm_div_impl().
FloatComplexMatrix xdiv | ( | const FloatComplexMatrix & | a, |
const FloatComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 476 of file xdiv.cc.
References blas_trans, FloatComplexMatrix, mx_div_conform(), FloatComplexMatrix::solve(), solve_singularity_warning(), and FloatComplexMatrix::transpose().
FloatComplexMatrix xdiv | ( | const FloatComplexMatrix & | a, |
const FloatDiagMatrix & | b | ||
) |
Definition at line 776 of file xdiv.cc.
References mdm_div_impl().
FloatComplexMatrix xdiv | ( | const FloatComplexMatrix & | a, |
const FloatMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 459 of file xdiv.cc.
References blas_trans, FloatComplexMatrix, mx_div_conform(), FloatMatrix::solve(), solve_singularity_warning(), and FloatComplexMatrix::transpose().
FloatDiagMatrix xdiv | ( | const FloatDiagMatrix & | a, |
const FloatDiagMatrix & | b | ||
) |
Definition at line 926 of file xdiv.cc.
References dmdm_div_impl().
FloatComplexMatrix xdiv | ( | const FloatMatrix & | a, |
const FloatComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 442 of file xdiv.cc.
References blas_trans, FloatComplexMatrix, mx_div_conform(), FloatComplexMatrix::solve(), solve_singularity_warning(), FloatComplexMatrix::transpose(), and FloatMatrix::transpose().
FloatMatrix xdiv | ( | const FloatMatrix & | a, |
const FloatDiagMatrix & | b | ||
) |
Definition at line 771 of file xdiv.cc.
References mdm_div_impl().
FloatMatrix xdiv | ( | const FloatMatrix & | a, |
const FloatMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 425 of file xdiv.cc.
References blas_trans, FloatMatrix, mx_div_conform(), FloatMatrix::solve(), solve_singularity_warning(), and FloatMatrix::transpose().
ComplexMatrix xdiv | ( | const Matrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 141 of file xdiv.cc.
References blas_trans, ComplexMatrix, mx_div_conform(), ComplexMatrix::solve(), solve_singularity_warning(), ComplexMatrix::transpose(), and Matrix::transpose().
Matrix xdiv | ( | const Matrix & | a, |
const DiagMatrix & | b | ||
) |
Definition at line 747 of file xdiv.cc.
References mdm_div_impl().
Matrix xdiv | ( | const Matrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 124 of file xdiv.cc.
References blas_trans, Matrix, mx_div_conform(), Matrix::solve(), solve_singularity_warning(), and Matrix::transpose().
ComplexDiagMatrix xleftdiv | ( | const ComplexDiagMatrix & | a, |
const ComplexDiagMatrix & | b | ||
) |
Definition at line 987 of file xdiv.cc.
References dmdm_leftdiv_impl().
ComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 835 of file xdiv.cc.
References dmm_leftdiv_impl().
ComplexMatrix xleftdiv | ( | const ComplexMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 387 of file xdiv.cc.
References ComplexMatrix, mx_leftdiv_conform(), ComplexMatrix::solve(), and solve_singularity_warning().
ComplexMatrix xleftdiv | ( | const ComplexMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 374 of file xdiv.cc.
References ComplexMatrix, mx_leftdiv_conform(), ComplexMatrix::solve(), and solve_singularity_warning().
ComplexDiagMatrix xleftdiv | ( | const DiagMatrix & | a, |
const ComplexDiagMatrix & | b | ||
) |
Definition at line 982 of file xdiv.cc.
References dmdm_leftdiv_impl().
ComplexMatrix xleftdiv | ( | const DiagMatrix & | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 830 of file xdiv.cc.
References dmm_leftdiv_impl().
DiagMatrix xleftdiv | ( | const DiagMatrix & | a, |
const DiagMatrix & | b | ||
) |
Definition at line 977 of file xdiv.cc.
References dmdm_leftdiv_impl().
Matrix xleftdiv | ( | const DiagMatrix & | a, |
const Matrix & | b | ||
) |
Definition at line 825 of file xdiv.cc.
References dmm_leftdiv_impl().
FloatComplexDiagMatrix xleftdiv | ( | const FloatComplexDiagMatrix & | a, |
const FloatComplexDiagMatrix & | b | ||
) |
Definition at line 1011 of file xdiv.cc.
References dmdm_leftdiv_impl().
FloatComplexMatrix xleftdiv | ( | const FloatComplexDiagMatrix & | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 859 of file xdiv.cc.
References dmm_leftdiv_impl().
FloatComplexMatrix xleftdiv | ( | const FloatComplexMatrix & | a, |
const FloatComplexMatrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 688 of file xdiv.cc.
References FloatComplexMatrix, mx_leftdiv_conform(), FloatComplexMatrix::solve(), and solve_singularity_warning().
FloatComplexMatrix xleftdiv | ( | const FloatComplexMatrix & | a, |
const FloatMatrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 675 of file xdiv.cc.
References FloatComplexMatrix, mx_leftdiv_conform(), FloatComplexMatrix::solve(), and solve_singularity_warning().
FloatComplexDiagMatrix xleftdiv | ( | const FloatDiagMatrix & | a, |
const FloatComplexDiagMatrix & | b | ||
) |
Definition at line 1006 of file xdiv.cc.
References dmdm_leftdiv_impl().
FloatComplexMatrix xleftdiv | ( | const FloatDiagMatrix & | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 854 of file xdiv.cc.
References dmm_leftdiv_impl().
FloatDiagMatrix xleftdiv | ( | const FloatDiagMatrix & | a, |
const FloatDiagMatrix & | b | ||
) |
Definition at line 1001 of file xdiv.cc.
References dmdm_leftdiv_impl().
FloatMatrix xleftdiv | ( | const FloatDiagMatrix & | a, |
const FloatMatrix & | b | ||
) |
Definition at line 849 of file xdiv.cc.
References dmm_leftdiv_impl().
FloatComplexMatrix xleftdiv | ( | const FloatMatrix & | a, |
const FloatComplexMatrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 661 of file xdiv.cc.
References FloatComplexMatrix, mx_leftdiv_conform(), FloatMatrix::solve(), and solve_singularity_warning().
FloatMatrix xleftdiv | ( | const FloatMatrix & | a, |
const FloatMatrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 648 of file xdiv.cc.
References FloatMatrix, mx_leftdiv_conform(), FloatMatrix::solve(), and solve_singularity_warning().
ComplexMatrix xleftdiv | ( | const Matrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 360 of file xdiv.cc.
References ComplexMatrix, mx_leftdiv_conform(), Matrix::solve(), and solve_singularity_warning().
Matrix xleftdiv | ( | const Matrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ, | ||
blas_trans_type | transt | ||
) |
Definition at line 347 of file xdiv.cc.
References Matrix, mx_leftdiv_conform(), Matrix::solve(), and solve_singularity_warning().