Defines | Functions

xdiv.cc File Reference

#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 "quit.h"
#include "error.h"
#include "xdiv.h"
Include dependency graph for xdiv.cc:

Go to the source code of this file.

Defines

#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)

Functions

template<class MT , class DMT >
MT dmdm_div_impl (const MT &a, const DMT &d)
template<class MT , class DMT >
MT dmdm_leftdiv_impl (const DMT &d, const MT &a)
template<class MT , class DMT >
MT dmm_leftdiv_impl (const DMT &d, const MT &a)
 INSTANTIATE_MX_DIV_CONFORM (FloatMatrix, FloatMatrix)
 INSTANTIATE_MX_DIV_CONFORM (FloatMatrix, FloatComplexMatrix)
 INSTANTIATE_MX_DIV_CONFORM (Matrix, ComplexMatrix)
 INSTANTIATE_MX_DIV_CONFORM (FloatComplexMatrix, FloatMatrix)
 INSTANTIATE_MX_DIV_CONFORM (FloatComplexMatrix, FloatComplexMatrix)
 INSTANTIATE_MX_DIV_CONFORM (ComplexMatrix, Matrix)
 INSTANTIATE_MX_DIV_CONFORM (Matrix, Matrix)
 INSTANTIATE_MX_DIV_CONFORM (ComplexMatrix, ComplexMatrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (FloatComplexMatrix, FloatComplexMatrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (Matrix, ComplexMatrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (FloatComplexMatrix, FloatMatrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (Matrix, Matrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (ComplexMatrix, Matrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (ComplexMatrix, ComplexMatrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (FloatMatrix, FloatMatrix)
 INSTANTIATE_MX_LEFTDIV_CONFORM (FloatMatrix, FloatComplexMatrix)
template<class MT , class DMT >
MT mdm_div_impl (const MT &a, const DMT &d)
template<class T1 , class T2 >
bool mx_div_conform (const T1 &a, const T2 &b)
template<class T1 , class T2 >
bool mx_leftdiv_conform (const T1 &a, const T2 &b, blas_trans_type blas_trans)
static bool result_ok (octave_idx_type info)
static void solve_singularity_warning (double rcond)
static void solve_singularity_warning (float rcond)
Matrix x_el_div (double a, const Matrix &b)
ComplexMatrix x_el_div (double a, const ComplexMatrix &b)
ComplexMatrix x_el_div (const Complex a, const Matrix &b)
ComplexMatrix x_el_div (const Complex a, const ComplexMatrix &b)
NDArray x_el_div (double a, const NDArray &b)
FloatMatrix x_el_div (float a, const FloatMatrix &b)
FloatComplexMatrix x_el_div (float a, const FloatComplexMatrix &b)
ComplexNDArray x_el_div (double a, const ComplexNDArray &b)
FloatComplexMatrix x_el_div (const FloatComplex a, const FloatMatrix &b)
FloatComplexMatrix x_el_div (const FloatComplex a, const FloatComplexMatrix &b)
ComplexNDArray x_el_div (const Complex a, const NDArray &b)
FloatNDArray x_el_div (float a, const FloatNDArray &b)
FloatComplexNDArray x_el_div (float a, const FloatComplexNDArray &b)
ComplexNDArray x_el_div (const Complex a, const ComplexNDArray &b)
FloatComplexNDArray x_el_div (const FloatComplex a, const FloatNDArray &b)
FloatComplexNDArray x_el_div (const FloatComplex a, const FloatComplexNDArray &b)
ComplexMatrix xdiv (const ComplexMatrix &a, const Matrix &b, MatrixType &typ)
ComplexDiagMatrix xdiv (const ComplexDiagMatrix &a, const ComplexDiagMatrix &b)
FloatComplexMatrix xdiv (const FloatMatrix &a, const FloatComplexMatrix &b, MatrixType &typ)
FloatMatrix xdiv (const FloatMatrix &a, const FloatMatrix &b, MatrixType &typ)
ComplexMatrix xdiv (const ComplexMatrix &a, const ComplexMatrix &b, MatrixType &typ)
DiagMatrix xdiv (const DiagMatrix &a, const DiagMatrix &b)
ComplexDiagMatrix xdiv (const ComplexDiagMatrix &a, const DiagMatrix &b)
FloatDiagMatrix xdiv (const FloatDiagMatrix &a, const FloatDiagMatrix &b)
FloatComplexDiagMatrix xdiv (const FloatComplexDiagMatrix &a, const FloatComplexDiagMatrix &b)
FloatComplexMatrix xdiv (const FloatComplexMatrix &a, const FloatDiagMatrix &b)
FloatComplexMatrix xdiv (const FloatComplexMatrix &a, const FloatMatrix &b, MatrixType &typ)
FloatComplexMatrix xdiv (const FloatComplexMatrix &a, const FloatComplexDiagMatrix &b)
ComplexMatrix xdiv (const Matrix &a, const ComplexMatrix &b, MatrixType &typ)
FloatComplexMatrix xdiv (const FloatComplexMatrix &a, const FloatComplexMatrix &b, MatrixType &typ)
FloatMatrix xdiv (const FloatMatrix &a, const FloatDiagMatrix &b)
Matrix xdiv (const Matrix &a, const Matrix &b, MatrixType &typ)
Matrix xdiv (const Matrix &a, const DiagMatrix &b)
ComplexMatrix xdiv (const ComplexMatrix &a, const DiagMatrix &b)
ComplexMatrix xdiv (const ComplexMatrix &a, const ComplexDiagMatrix &b)
FloatComplexDiagMatrix xdiv (const FloatComplexDiagMatrix &a, const FloatDiagMatrix &b)
ComplexMatrix xleftdiv (const ComplexMatrix &a, const Matrix &b, MatrixType &typ, blas_trans_type transt)
FloatMatrix xleftdiv (const FloatMatrix &a, const FloatMatrix &b, MatrixType &typ, blas_trans_type transt)
FloatComplexMatrix xleftdiv (const FloatComplexMatrix &a, const FloatComplexMatrix &b, MatrixType &typ, blas_trans_type transt)
DiagMatrix xleftdiv (const DiagMatrix &a, const DiagMatrix &b)
ComplexDiagMatrix xleftdiv (const ComplexDiagMatrix &a, const ComplexDiagMatrix &b)
FloatComplexMatrix xleftdiv (const FloatComplexMatrix &a, const FloatMatrix &b, MatrixType &typ, blas_trans_type transt)
FloatDiagMatrix xleftdiv (const FloatDiagMatrix &a, const FloatDiagMatrix &b)
Matrix xleftdiv (const Matrix &a, const Matrix &b, MatrixType &typ, blas_trans_type transt)
Matrix xleftdiv (const DiagMatrix &a, const Matrix &b)
ComplexDiagMatrix xleftdiv (const DiagMatrix &a, const ComplexDiagMatrix &b)
ComplexMatrix xleftdiv (const DiagMatrix &a, const ComplexMatrix &b)
ComplexMatrix xleftdiv (const ComplexMatrix &a, const ComplexMatrix &b, MatrixType &typ, blas_trans_type transt)
FloatComplexDiagMatrix xleftdiv (const FloatComplexDiagMatrix &a, const FloatComplexDiagMatrix &b)
FloatMatrix xleftdiv (const FloatDiagMatrix &a, const FloatMatrix &b)
ComplexMatrix xleftdiv (const ComplexDiagMatrix &a, const ComplexMatrix &b)
ComplexMatrix xleftdiv (const Matrix &a, const ComplexMatrix &b, MatrixType &typ, blas_trans_type transt)
FloatComplexMatrix xleftdiv (const FloatComplexDiagMatrix &a, const FloatComplexMatrix &b)
FloatComplexDiagMatrix xleftdiv (const FloatDiagMatrix &a, const FloatComplexDiagMatrix &b)
FloatComplexMatrix xleftdiv (const FloatMatrix &a, const FloatComplexMatrix &b, MatrixType &typ, blas_trans_type transt)
FloatComplexMatrix xleftdiv (const FloatDiagMatrix &a, const FloatComplexMatrix &b)

Define Documentation

#define INSTANTIATE_MX_DIV_CONFORM (   T1,
  T2 
)    template bool mx_div_conform (const T1&, const T2&)

Definition at line 111 of file xdiv.cc.

#define INSTANTIATE_MX_LEFTDIV_CONFORM (   T1,
  T2 
)    template bool mx_leftdiv_conform (const T1&, const T2&, blas_trans_type)

Definition at line 84 of file xdiv.cc.


Function Documentation

template<class MT , class DMT >
MT dmdm_div_impl ( const MT &  a,
const DMT &  d 
)

Definition at line 860 of file xdiv.cc.

References min(), mx_div_conform(), and x.

Referenced by xdiv().

template<class MT , class DMT >
MT dmdm_leftdiv_impl ( const DMT &  d,
const MT &  a 
)

Definition at line 932 of file xdiv.cc.

References blas_no_trans, min(), mx_leftdiv_conform(), and x.

Referenced by xleftdiv().

template<class MT , class DMT >
MT dmm_leftdiv_impl ( const DMT &  d,
const MT &  a 
)

Definition at line 783 of file xdiv.cc.

References blas_no_trans, mx_leftdiv_conform(), and x.

Referenced by xleftdiv().

INSTANTIATE_MX_DIV_CONFORM ( FloatMatrix  ,
FloatMatrix   
)
INSTANTIATE_MX_DIV_CONFORM ( FloatMatrix  ,
FloatComplexMatrix   
)
INSTANTIATE_MX_DIV_CONFORM ( Matrix  ,
ComplexMatrix   
)
INSTANTIATE_MX_DIV_CONFORM ( FloatComplexMatrix  ,
FloatMatrix   
)
INSTANTIATE_MX_DIV_CONFORM ( FloatComplexMatrix  ,
FloatComplexMatrix   
)
INSTANTIATE_MX_DIV_CONFORM ( ComplexMatrix  ,
Matrix   
)
INSTANTIATE_MX_DIV_CONFORM ( Matrix  ,
Matrix   
)
INSTANTIATE_MX_DIV_CONFORM ( ComplexMatrix  ,
ComplexMatrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( FloatComplexMatrix  ,
FloatComplexMatrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( Matrix  ,
ComplexMatrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( FloatComplexMatrix  ,
FloatMatrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( Matrix  ,
Matrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( ComplexMatrix  ,
Matrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( ComplexMatrix  ,
ComplexMatrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( FloatMatrix  ,
FloatMatrix   
)
INSTANTIATE_MX_LEFTDIV_CONFORM ( FloatMatrix  ,
FloatComplexMatrix   
)
template<class MT , class DMT >
MT mdm_div_impl ( const MT &  a,
const DMT &  d 
)

Definition at line 702 of file xdiv.cc.

References mx_div_conform(), and x.

Referenced by xdiv().

template<class T1 , class T2 >
bool mx_div_conform ( const T1 &  a,
const T2 &  b 
)

Definition at line 94 of file xdiv.cc.

References gripe_nonconformant().

template<class T1 , class T2 >
bool mx_leftdiv_conform ( const T1 &  a,
const T2 &  b,
blas_trans_type  blas_trans 
)

Definition at line 67 of file xdiv.cc.

References blas_no_trans, and gripe_nonconformant().

static bool result_ok ( octave_idx_type  info  )  [inline, static]

Definition at line 51 of file xdiv.cc.

static void solve_singularity_warning ( double  rcond  )  [static]

Definition at line 59 of file xdiv.cc.

References warning_with_id().

static void solve_singularity_warning ( float  rcond  )  [static]

Definition at line 401 of file xdiv.cc.

References warning().

Matrix x_el_div ( double  a,
const Matrix b 
)

Definition at line 206 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

ComplexMatrix x_el_div ( double  a,
const ComplexMatrix b 
)

Definition at line 224 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

ComplexMatrix x_el_div ( const Complex  a,
const Matrix b 
)

Definition at line 242 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

ComplexMatrix x_el_div ( const Complex  a,
const ComplexMatrix b 
)

Definition at line 260 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

NDArray x_el_div ( double  a,
const NDArray b 
)

Definition at line 287 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

FloatMatrix x_el_div ( float  a,
const FloatMatrix b 
)

Definition at line 504 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

FloatComplexMatrix x_el_div ( float  a,
const FloatComplexMatrix b 
)

Definition at line 522 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

ComplexNDArray x_el_div ( double  a,
const ComplexNDArray b 
)

Definition at line 301 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

FloatComplexMatrix x_el_div ( const FloatComplex  a,
const FloatMatrix b 
)

Definition at line 540 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

FloatComplexMatrix x_el_div ( const FloatComplex  a,
const FloatComplexMatrix b 
)

Definition at line 558 of file xdiv.cc.

References Array< T >::columns(), and Array< T >::rows().

ComplexNDArray x_el_div ( const Complex  a,
const NDArray b 
)

Definition at line 315 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

FloatNDArray x_el_div ( float  a,
const FloatNDArray b 
)

Definition at line 585 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

FloatComplexNDArray x_el_div ( float  a,
const FloatComplexNDArray b 
)

Definition at line 599 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

ComplexNDArray x_el_div ( const Complex  a,
const ComplexNDArray b 
)

Definition at line 329 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

FloatComplexNDArray x_el_div ( const FloatComplex  a,
const FloatNDArray b 
)

Definition at line 613 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

FloatComplexNDArray x_el_div ( const FloatComplex  a,
const FloatComplexNDArray b 
)

Definition at line 627 of file xdiv.cc.

References Array< T >::dims(), and Array< T >::length().

ComplexMatrix xdiv ( const ComplexMatrix a,
const Matrix b,
MatrixType typ 
)

Definition at line 164 of file xdiv.cc.

References mx_div_conform(), Matrix::solve(), and ComplexMatrix::transpose().

ComplexDiagMatrix xdiv ( const ComplexDiagMatrix a,
const ComplexDiagMatrix b 
)

Definition at line 903 of file xdiv.cc.

References dmdm_div_impl().

FloatComplexMatrix xdiv ( const FloatMatrix a,
const FloatComplexMatrix b,
MatrixType typ 
)
FloatMatrix xdiv ( const FloatMatrix a,
const FloatMatrix b,
MatrixType typ 
)

Definition at line 428 of file xdiv.cc.

References mx_div_conform(), FloatMatrix::solve(), and FloatMatrix::transpose().

ComplexMatrix xdiv ( const ComplexMatrix a,
const ComplexMatrix b,
MatrixType typ 
)

Definition at line 181 of file xdiv.cc.

References mx_div_conform(), ComplexMatrix::solve(), and ComplexMatrix::transpose().

DiagMatrix xdiv ( const DiagMatrix a,
const DiagMatrix b 
)

Definition at line 893 of file xdiv.cc.

References dmdm_div_impl().

ComplexDiagMatrix xdiv ( const ComplexDiagMatrix a,
const DiagMatrix b 
)

Definition at line 898 of file xdiv.cc.

References dmdm_div_impl().

FloatDiagMatrix xdiv ( const FloatDiagMatrix a,
const FloatDiagMatrix b 
)

Definition at line 917 of file xdiv.cc.

References dmdm_div_impl().

Definition at line 927 of file xdiv.cc.

References dmdm_div_impl().

FloatComplexMatrix xdiv ( const FloatComplexMatrix a,
const FloatDiagMatrix b 
)

Definition at line 773 of file xdiv.cc.

References mdm_div_impl().

FloatComplexMatrix xdiv ( const FloatComplexMatrix a,
const FloatMatrix b,
MatrixType typ 
)

Definition at line 462 of file xdiv.cc.

References mx_div_conform(), FloatMatrix::solve(), and FloatComplexMatrix::transpose().

FloatComplexMatrix xdiv ( const FloatComplexMatrix a,
const FloatComplexDiagMatrix b 
)

Definition at line 778 of file xdiv.cc.

References mdm_div_impl().

ComplexMatrix xdiv ( const Matrix a,
const ComplexMatrix b,
MatrixType typ 
)
FloatComplexMatrix xdiv ( const FloatComplexMatrix a,
const FloatComplexMatrix b,
MatrixType typ 
)
FloatMatrix xdiv ( const FloatMatrix a,
const FloatDiagMatrix b 
)

Definition at line 768 of file xdiv.cc.

References mdm_div_impl().

Matrix xdiv ( const Matrix a,
const Matrix b,
MatrixType typ 
)

Definition at line 130 of file xdiv.cc.

References mx_div_conform(), Matrix::solve(), and Matrix::transpose().

Matrix xdiv ( const Matrix a,
const DiagMatrix b 
)

Definition at line 744 of file xdiv.cc.

References mdm_div_impl().

ComplexMatrix xdiv ( const ComplexMatrix a,
const DiagMatrix b 
)

Definition at line 749 of file xdiv.cc.

References mdm_div_impl().

ComplexMatrix xdiv ( const ComplexMatrix a,
const ComplexDiagMatrix b 
)

Definition at line 754 of file xdiv.cc.

References mdm_div_impl().

FloatComplexDiagMatrix xdiv ( const FloatComplexDiagMatrix a,
const FloatDiagMatrix b 
)

Definition at line 922 of file xdiv.cc.

References dmdm_div_impl().

ComplexMatrix xleftdiv ( const ComplexMatrix a,
const Matrix b,
MatrixType typ,
blas_trans_type  transt 
)
FloatMatrix xleftdiv ( const FloatMatrix a,
const FloatMatrix b,
MatrixType typ,
blas_trans_type  transt 
)

Definition at line 651 of file xdiv.cc.

References mx_leftdiv_conform(), FloatMatrix::solve(), and solve_singularity_warning().

FloatComplexMatrix xleftdiv ( const FloatComplexMatrix a,
const FloatComplexMatrix b,
MatrixType typ,
blas_trans_type  transt 
)
DiagMatrix xleftdiv ( const DiagMatrix a,
const DiagMatrix b 
)

Definition at line 965 of file xdiv.cc.

References dmdm_leftdiv_impl().

ComplexDiagMatrix xleftdiv ( const ComplexDiagMatrix a,
const ComplexDiagMatrix b 
)

Definition at line 975 of file xdiv.cc.

References dmdm_leftdiv_impl().

FloatComplexMatrix xleftdiv ( const FloatComplexMatrix a,
const FloatMatrix b,
MatrixType typ,
blas_trans_type  transt 
)
FloatDiagMatrix xleftdiv ( const FloatDiagMatrix a,
const FloatDiagMatrix b 
)

Definition at line 989 of file xdiv.cc.

References dmdm_leftdiv_impl().

Matrix xleftdiv ( const Matrix a,
const Matrix b,
MatrixType typ,
blas_trans_type  transt 
)

Definition at line 353 of file xdiv.cc.

References mx_leftdiv_conform(), Matrix::solve(), and solve_singularity_warning().

Matrix xleftdiv ( const DiagMatrix a,
const Matrix b 
)

Definition at line 819 of file xdiv.cc.

References dmm_leftdiv_impl().

ComplexDiagMatrix xleftdiv ( const DiagMatrix a,
const ComplexDiagMatrix b 
)

Definition at line 970 of file xdiv.cc.

References dmdm_leftdiv_impl().

ComplexMatrix xleftdiv ( const DiagMatrix a,
const ComplexMatrix b 
)

Definition at line 824 of file xdiv.cc.

References dmm_leftdiv_impl().

ComplexMatrix xleftdiv ( const ComplexMatrix a,
const ComplexMatrix b,
MatrixType typ,
blas_trans_type  transt 
)
FloatComplexDiagMatrix xleftdiv ( const FloatComplexDiagMatrix a,
const FloatComplexDiagMatrix b 
)

Definition at line 999 of file xdiv.cc.

References dmdm_leftdiv_impl().

FloatMatrix xleftdiv ( const FloatDiagMatrix a,
const FloatMatrix b 
)

Definition at line 843 of file xdiv.cc.

References dmm_leftdiv_impl().

ComplexMatrix xleftdiv ( const ComplexDiagMatrix a,
const ComplexMatrix b 
)

Definition at line 829 of file xdiv.cc.

References dmm_leftdiv_impl().

ComplexMatrix xleftdiv ( const Matrix a,
const ComplexMatrix b,
MatrixType typ,
blas_trans_type  transt 
)

Definition at line 365 of file xdiv.cc.

References mx_leftdiv_conform(), Matrix::solve(), and solve_singularity_warning().

FloatComplexMatrix xleftdiv ( const FloatComplexDiagMatrix a,
const FloatComplexMatrix b 
)

Definition at line 853 of file xdiv.cc.

References dmm_leftdiv_impl().

FloatComplexDiagMatrix xleftdiv ( const FloatDiagMatrix a,
const FloatComplexDiagMatrix b 
)

Definition at line 994 of file xdiv.cc.

References dmdm_leftdiv_impl().

FloatComplexMatrix xleftdiv ( const FloatMatrix a,
const FloatComplexMatrix b,
MatrixType typ,
blas_trans_type  transt 
)

Definition at line 663 of file xdiv.cc.

References mx_leftdiv_conform(), FloatMatrix::solve(), and solve_singularity_warning().

FloatComplexMatrix xleftdiv ( const FloatDiagMatrix a,
const FloatComplexMatrix b 
)

Definition at line 848 of file xdiv.cc.

References dmm_leftdiv_impl().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines