GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
sparse-xdiv.cc File Reference
#include <cassert>
#include "Array-util.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"
Include dependency graph for sparse-xdiv.cc:

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

Functions

template<typename RT , typename DM , typename SM >
RT do_leftdiv_dm_sm (const DM &d, const SM &a)
template<typename RT , typename SM , typename DM >
RT do_rightdiv_sm_dm (const SM &a, const DM &d)
template<class T1 , class T2 >
bool mx_div_conform (const T1 &a, const T2 &b)
template bool mx_div_conform (const SparseMatrix &, const SparseMatrix &)
template bool mx_div_conform (const SparseMatrix &, const SparseComplexMatrix &)
template bool mx_div_conform (const SparseComplexMatrix &, const SparseMatrix &)
template bool mx_div_conform (const SparseComplexMatrix &, const SparseComplexMatrix &)
template bool mx_div_conform (const Matrix &, const SparseMatrix &)
template bool mx_div_conform (const Matrix &, const SparseComplexMatrix &)
template bool mx_div_conform (const ComplexMatrix &, const SparseMatrix &)
template bool mx_div_conform (const ComplexMatrix &, const SparseComplexMatrix &)
template bool mx_div_conform (const SparseMatrix &, const DiagMatrix &)
template bool mx_div_conform (const SparseMatrix &, const ComplexDiagMatrix &)
template bool mx_div_conform (const SparseComplexMatrix &, const DiagMatrix &)
template bool mx_div_conform (const SparseComplexMatrix &, const ComplexDiagMatrix &)
template<class T1 , class T2 >
bool mx_leftdiv_conform (const T1 &a, const T2 &b)
template bool mx_leftdiv_conform (const SparseMatrix &, const SparseMatrix &)
template bool mx_leftdiv_conform (const SparseMatrix &, const SparseComplexMatrix &)
template bool mx_leftdiv_conform (const SparseComplexMatrix &, const SparseMatrix &)
template bool mx_leftdiv_conform (const SparseComplexMatrix &, const SparseComplexMatrix &)
template bool mx_leftdiv_conform (const SparseMatrix &, const Matrix &)
template bool mx_leftdiv_conform (const SparseMatrix &, const ComplexMatrix &)
template bool mx_leftdiv_conform (const SparseComplexMatrix &, const Matrix &)
template bool mx_leftdiv_conform (const SparseComplexMatrix &, const ComplexMatrix &)
template bool mx_leftdiv_conform (const DiagMatrix &, const SparseMatrix &)
template bool mx_leftdiv_conform (const DiagMatrix &, const SparseComplexMatrix &)
template bool mx_leftdiv_conform (const ComplexDiagMatrix &, const SparseMatrix &)
template bool mx_leftdiv_conform (const ComplexDiagMatrix &, const SparseComplexMatrix &)
static void solve_singularity_warning (double rcond)
Matrix x_el_div (double a, const SparseMatrix &b)
ComplexMatrix x_el_div (double a, const SparseComplexMatrix &b)
ComplexMatrix x_el_div (const Complex a, const SparseMatrix &b)
ComplexMatrix x_el_div (const Complex a, const SparseComplexMatrix &b)
Matrix xdiv (const Matrix &a, const SparseMatrix &b, MatrixType &typ)
ComplexMatrix xdiv (const Matrix &a, const SparseComplexMatrix &b, MatrixType &typ)
ComplexMatrix xdiv (const ComplexMatrix &a, const SparseMatrix &b, MatrixType &typ)
ComplexMatrix xdiv (const ComplexMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
SparseMatrix xdiv (const SparseMatrix &a, const SparseMatrix &b, MatrixType &typ)
SparseComplexMatrix xdiv (const SparseMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const SparseMatrix &b, MatrixType &typ)
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
SparseMatrix xdiv (const SparseMatrix &a, const DiagMatrix &b, MatrixType &)
SparseComplexMatrix xdiv (const SparseMatrix &a, const ComplexDiagMatrix &b, MatrixType &)
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const DiagMatrix &b, MatrixType &)
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const ComplexDiagMatrix &b, MatrixType &)
Matrix xleftdiv (const SparseMatrix &a, const Matrix &b, MatrixType &typ)
ComplexMatrix xleftdiv (const SparseMatrix &a, const ComplexMatrix &b, MatrixType &typ)
SparseMatrix xleftdiv (const SparseMatrix &a, const SparseMatrix &b, MatrixType &typ)
SparseComplexMatrix xleftdiv (const SparseMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
ComplexMatrix xleftdiv (const SparseComplexMatrix &a, const Matrix &b, MatrixType &typ)
ComplexMatrix xleftdiv (const SparseComplexMatrix &a, const ComplexMatrix &b, MatrixType &typ)
SparseComplexMatrix xleftdiv (const SparseComplexMatrix &a, const SparseMatrix &b, MatrixType &typ)
SparseComplexMatrix xleftdiv (const SparseComplexMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
SparseMatrix xleftdiv (const DiagMatrix &d, const SparseMatrix &a, MatrixType &)
SparseComplexMatrix xleftdiv (const DiagMatrix &d, const SparseComplexMatrix &a, MatrixType &)
SparseComplexMatrix xleftdiv (const ComplexDiagMatrix &d, const SparseMatrix &a, MatrixType &)
SparseComplexMatrix xleftdiv (const ComplexDiagMatrix &d, const SparseComplexMatrix &a, MatrixType &)

Macro Definition Documentation

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

Definition at line 104 of file sparse-xdiv.cc.

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

Definition at line 69 of file sparse-xdiv.cc.

Function Documentation

template<typename RT , typename DM , typename SM >
RT do_leftdiv_dm_sm ( const DM &  d,
const SM &  a 
)

Definition at line 562 of file sparse-xdiv.cc.

References min(), and mx_leftdiv_conform().

template<typename RT , typename SM , typename DM >
RT do_rightdiv_sm_dm ( const SM &  a,
const DM &  d 
)

Definition at line 295 of file sparse-xdiv.cc.

References min(), and mx_div_conform().

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

Definition at line 87 of file sparse-xdiv.cc.

References gripe_nonconformant().

Referenced by dmdm_div_impl(), do_rightdiv_sm_dm(), mdm_div_impl(), and xdiv().

template bool mx_div_conform ( const SparseMatrix ,
const SparseMatrix  
)
template bool mx_div_conform ( const SparseMatrix ,
const SparseComplexMatrix  
)
template bool mx_div_conform ( const SparseComplexMatrix ,
const SparseMatrix  
)
template bool mx_div_conform ( const SparseComplexMatrix ,
const SparseComplexMatrix  
)
template bool mx_div_conform ( const Matrix ,
const SparseMatrix  
)
template bool mx_div_conform ( const Matrix ,
const SparseComplexMatrix  
)
template bool mx_div_conform ( const ComplexMatrix ,
const SparseMatrix  
)
template bool mx_div_conform ( const ComplexMatrix ,
const SparseComplexMatrix  
)
template bool mx_div_conform ( const SparseMatrix ,
const DiagMatrix  
)
template bool mx_div_conform ( const SparseMatrix ,
const ComplexDiagMatrix  
)
template bool mx_div_conform ( const SparseComplexMatrix ,
const DiagMatrix  
)
template bool mx_div_conform ( const SparseComplexMatrix ,
const ComplexDiagMatrix  
)
template<class T1 , class T2 >
bool mx_leftdiv_conform ( const T1 &  a,
const T2 &  b 
)

Definition at line 52 of file sparse-xdiv.cc.

References gripe_nonconformant().

Referenced by dmdm_leftdiv_impl(), dmm_leftdiv_impl(), do_leftdiv_dm_sm(), and xleftdiv().

template bool mx_leftdiv_conform ( const SparseMatrix ,
const SparseMatrix  
)
template bool mx_leftdiv_conform ( const SparseMatrix ,
const SparseComplexMatrix  
)
template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const SparseMatrix  
)
template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const SparseComplexMatrix  
)
template bool mx_leftdiv_conform ( const SparseMatrix ,
const Matrix  
)
template bool mx_leftdiv_conform ( const SparseMatrix ,
const ComplexMatrix  
)
template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const Matrix  
)
template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const ComplexMatrix  
)
template bool mx_leftdiv_conform ( const DiagMatrix ,
const SparseMatrix  
)
template bool mx_leftdiv_conform ( const DiagMatrix ,
const SparseComplexMatrix  
)
template bool mx_leftdiv_conform ( const ComplexDiagMatrix ,
const SparseMatrix  
)
template bool mx_leftdiv_conform ( const ComplexDiagMatrix ,
const SparseComplexMatrix  
)
static void solve_singularity_warning ( double  rcond)
static

Definition at line 44 of file sparse-xdiv.cc.

References warning().

Referenced by xdiv(), and xleftdiv().

Matrix x_el_div ( double  a,
const SparseMatrix b 
)
ComplexMatrix x_el_div ( double  a,
const SparseComplexMatrix b 
)
ComplexMatrix x_el_div ( const Complex  a,
const SparseMatrix b 
)
ComplexMatrix x_el_div ( const Complex  a,
const SparseComplexMatrix b 
)
Matrix xdiv ( const Matrix a,
const SparseMatrix b,
MatrixType typ 
)
ComplexMatrix xdiv ( const Matrix a,
const SparseComplexMatrix b,
MatrixType typ 
)
ComplexMatrix xdiv ( const ComplexMatrix a,
const SparseMatrix b,
MatrixType typ 
)
ComplexMatrix xdiv ( const ComplexMatrix a,
const SparseComplexMatrix b,
MatrixType typ 
)
SparseMatrix xdiv ( const SparseMatrix a,
const SparseMatrix b,
MatrixType typ 
)
SparseComplexMatrix xdiv ( const SparseMatrix a,
const SparseComplexMatrix b,
MatrixType typ 
)
SparseComplexMatrix xdiv ( const SparseComplexMatrix a,
const SparseMatrix b,
MatrixType typ 
)
SparseComplexMatrix xdiv ( const SparseComplexMatrix a,
const SparseComplexMatrix b,
MatrixType typ 
)
SparseMatrix xdiv ( const SparseMatrix a,
const DiagMatrix b,
MatrixType  
)

Definition at line 337 of file sparse-xdiv.cc.

SparseComplexMatrix xdiv ( const SparseMatrix a,
const ComplexDiagMatrix b,
MatrixType  
)

Definition at line 344 of file sparse-xdiv.cc.

SparseComplexMatrix xdiv ( const SparseComplexMatrix a,
const DiagMatrix b,
MatrixType  
)

Definition at line 351 of file sparse-xdiv.cc.

SparseComplexMatrix xdiv ( const SparseComplexMatrix a,
const ComplexDiagMatrix b,
MatrixType  
)

Definition at line 358 of file sparse-xdiv.cc.

Matrix xleftdiv ( const SparseMatrix a,
const Matrix b,
MatrixType typ 
)
ComplexMatrix xleftdiv ( const SparseMatrix a,
const ComplexMatrix b,
MatrixType typ 
)
SparseMatrix xleftdiv ( const SparseMatrix a,
const SparseMatrix b,
MatrixType typ 
)
SparseComplexMatrix xleftdiv ( const SparseMatrix a,
const SparseComplexMatrix b,
MatrixType typ 
)
ComplexMatrix xleftdiv ( const SparseComplexMatrix a,
const Matrix b,
MatrixType typ 
)
ComplexMatrix xleftdiv ( const SparseComplexMatrix a,
const ComplexMatrix b,
MatrixType typ 
)
SparseComplexMatrix xleftdiv ( const SparseComplexMatrix a,
const SparseMatrix b,
MatrixType typ 
)
SparseComplexMatrix xleftdiv ( const SparseComplexMatrix a,
const SparseComplexMatrix b,
MatrixType typ 
)
SparseMatrix xleftdiv ( const DiagMatrix d,
const SparseMatrix a,
MatrixType  
)

Definition at line 610 of file sparse-xdiv.cc.

References d.

SparseComplexMatrix xleftdiv ( const DiagMatrix d,
const SparseComplexMatrix a,
MatrixType  
)

Definition at line 617 of file sparse-xdiv.cc.

References d.

SparseComplexMatrix xleftdiv ( const ComplexDiagMatrix d,
const SparseMatrix a,
MatrixType  
)

Definition at line 624 of file sparse-xdiv.cc.

References d.

SparseComplexMatrix xleftdiv ( const ComplexDiagMatrix d,
const SparseComplexMatrix a,
MatrixType  
)

Definition at line 631 of file sparse-xdiv.cc.

References d.