GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sparse-xdiv.cc File Reference
#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"
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)
 
ComplexMatrix elem_xdiv (const Complex &a, const SparseComplexMatrix &b)
 
ComplexMatrix elem_xdiv (const Complex &a, const SparseMatrix &b)
 
ComplexMatrix elem_xdiv (double a, const SparseComplexMatrix &b)
 
Matrix elem_xdiv (double a, const SparseMatrix &b)
 
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 &)
 
template<typename T1 , typename T2 >
bool mx_div_conform (const T1 &a, const T2 &b)
 
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 &)
 
template<typename T1 , typename T2 >
bool mx_leftdiv_conform (const T1 &a, const T2 &b)
 
static void solve_singularity_warning (double rcond)
 
ComplexMatrix xdiv (const ComplexMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
 
ComplexMatrix xdiv (const ComplexMatrix &a, const SparseMatrix &b, MatrixType &typ)
 
ComplexMatrix xdiv (const Matrix &a, const SparseComplexMatrix &b, MatrixType &typ)
 
Matrix xdiv (const Matrix &a, const SparseMatrix &b, MatrixType &typ)
 
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const ComplexDiagMatrix &b, MatrixType &)
 
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const DiagMatrix &b, MatrixType &)
 
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
 
SparseComplexMatrix xdiv (const SparseComplexMatrix &a, const SparseMatrix &b, MatrixType &typ)
 
SparseComplexMatrix xdiv (const SparseMatrix &a, const ComplexDiagMatrix &b, MatrixType &)
 
SparseMatrix xdiv (const SparseMatrix &a, const DiagMatrix &b, MatrixType &)
 
SparseComplexMatrix xdiv (const SparseMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
 
SparseMatrix xdiv (const SparseMatrix &a, const SparseMatrix &b, MatrixType &typ)
 
SparseComplexMatrix xleftdiv (const ComplexDiagMatrix &d, const SparseComplexMatrix &a, MatrixType &)
 
SparseComplexMatrix xleftdiv (const ComplexDiagMatrix &d, const SparseMatrix &a, MatrixType &)
 
SparseComplexMatrix xleftdiv (const DiagMatrix &d, const SparseComplexMatrix &a, MatrixType &)
 
SparseMatrix xleftdiv (const DiagMatrix &d, const SparseMatrix &a, MatrixType &)
 
ComplexMatrix xleftdiv (const SparseComplexMatrix &a, const ComplexMatrix &b, MatrixType &typ)
 
ComplexMatrix xleftdiv (const SparseComplexMatrix &a, const Matrix &b, MatrixType &typ)
 
SparseComplexMatrix xleftdiv (const SparseComplexMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
 
SparseComplexMatrix xleftdiv (const SparseComplexMatrix &a, const SparseMatrix &b, MatrixType &typ)
 
ComplexMatrix xleftdiv (const SparseMatrix &a, const ComplexMatrix &b, MatrixType &typ)
 
Matrix xleftdiv (const SparseMatrix &a, const Matrix &b, MatrixType &typ)
 
SparseComplexMatrix xleftdiv (const SparseMatrix &a, const SparseComplexMatrix &b, MatrixType &typ)
 
SparseMatrix xleftdiv (const SparseMatrix &a, const SparseMatrix &b, MatrixType &typ)
 

Macro Definition Documentation

◆ INSTANTIATE_MX_DIV_CONFORM

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

◆ INSTANTIATE_MX_LEFTDIV_CONFORM

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

Function Documentation

◆ do_leftdiv_dm_sm()

template<typename RT , typename DM , typename SM >
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.

◆ do_rightdiv_sm_dm()

template<typename RT , typename SM , typename DM >
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.

◆ elem_xdiv() [1/4]

◆ elem_xdiv() [2/4]

◆ elem_xdiv() [3/4]

◆ elem_xdiv() [4/4]

◆ mx_div_conform() [1/13]

template bool mx_div_conform ( const ComplexMatrix ,
const SparseComplexMatrix  
)

◆ mx_div_conform() [2/13]

template bool mx_div_conform ( const ComplexMatrix ,
const SparseMatrix  
)

◆ mx_div_conform() [3/13]

template bool mx_div_conform ( const Matrix ,
const SparseComplexMatrix  
)

◆ mx_div_conform() [4/13]

template bool mx_div_conform ( const Matrix ,
const SparseMatrix  
)

◆ mx_div_conform() [5/13]

template bool mx_div_conform ( const SparseComplexMatrix ,
const ComplexDiagMatrix  
)

◆ mx_div_conform() [6/13]

template bool mx_div_conform ( const SparseComplexMatrix ,
const DiagMatrix  
)

◆ mx_div_conform() [7/13]

template bool mx_div_conform ( const SparseComplexMatrix ,
const SparseComplexMatrix  
)

◆ mx_div_conform() [8/13]

template bool mx_div_conform ( const SparseComplexMatrix ,
const SparseMatrix  
)

◆ mx_div_conform() [9/13]

template bool mx_div_conform ( const SparseMatrix ,
const ComplexDiagMatrix  
)

◆ mx_div_conform() [10/13]

template bool mx_div_conform ( const SparseMatrix ,
const DiagMatrix  
)

◆ mx_div_conform() [11/13]

template bool mx_div_conform ( const SparseMatrix ,
const SparseComplexMatrix  
)

◆ mx_div_conform() [12/13]

template bool mx_div_conform ( const SparseMatrix ,
const SparseMatrix  
)

◆ mx_div_conform() [13/13]

template<typename T1 , typename T2 >
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().

◆ mx_leftdiv_conform() [1/13]

template bool mx_leftdiv_conform ( const ComplexDiagMatrix ,
const SparseComplexMatrix  
)

◆ mx_leftdiv_conform() [2/13]

template bool mx_leftdiv_conform ( const ComplexDiagMatrix ,
const SparseMatrix  
)

◆ mx_leftdiv_conform() [3/13]

template bool mx_leftdiv_conform ( const DiagMatrix ,
const SparseComplexMatrix  
)

◆ mx_leftdiv_conform() [4/13]

template bool mx_leftdiv_conform ( const DiagMatrix ,
const SparseMatrix  
)

◆ mx_leftdiv_conform() [5/13]

template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const ComplexMatrix  
)

◆ mx_leftdiv_conform() [6/13]

template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const Matrix  
)

◆ mx_leftdiv_conform() [7/13]

template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const SparseComplexMatrix  
)

◆ mx_leftdiv_conform() [8/13]

template bool mx_leftdiv_conform ( const SparseComplexMatrix ,
const SparseMatrix  
)

◆ mx_leftdiv_conform() [9/13]

template bool mx_leftdiv_conform ( const SparseMatrix ,
const ComplexMatrix  
)

◆ mx_leftdiv_conform() [10/13]

template bool mx_leftdiv_conform ( const SparseMatrix ,
const Matrix  
)

◆ mx_leftdiv_conform() [11/13]

template bool mx_leftdiv_conform ( const SparseMatrix ,
const SparseComplexMatrix  
)

◆ mx_leftdiv_conform() [12/13]

template bool mx_leftdiv_conform ( const SparseMatrix ,
const SparseMatrix  
)

◆ mx_leftdiv_conform() [13/13]

template<typename T1 , typename T2 >
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().

◆ solve_singularity_warning()

static void solve_singularity_warning ( double  rcond)
static

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

References warn_singular_matrix().

Referenced by xdiv(), and xleftdiv().

◆ xdiv() [1/12]

◆ xdiv() [2/12]

◆ xdiv() [3/12]

◆ xdiv() [4/12]

◆ xdiv() [5/12]

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

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

◆ xdiv() [6/12]

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

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

◆ xdiv() [7/12]

◆ xdiv() [8/12]

◆ xdiv() [9/12]

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

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

◆ xdiv() [10/12]

SparseMatrix xdiv ( const SparseMatrix a,
const DiagMatrix b,
MatrixType typ 
)

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

◆ xdiv() [11/12]

◆ xdiv() [12/12]

◆ xleftdiv() [1/12]

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

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

References d.

◆ xleftdiv() [2/12]

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

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

References d.

◆ xleftdiv() [3/12]

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

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

References d.

◆ xleftdiv() [4/12]

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

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

References d.

◆ xleftdiv() [5/12]

ComplexMatrix xleftdiv ( const SparseComplexMatrix a,
const ComplexMatrix b,
MatrixType typ 
)

◆ xleftdiv() [6/12]

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

◆ xleftdiv() [7/12]

◆ xleftdiv() [8/12]

◆ xleftdiv() [9/12]

ComplexMatrix xleftdiv ( const SparseMatrix a,
const ComplexMatrix b,
MatrixType typ 
)

◆ xleftdiv() [10/12]

◆ xleftdiv() [11/12]

◆ xleftdiv() [12/12]

SparseMatrix xleftdiv ( const SparseMatrix a,
const SparseMatrix b,
MatrixType typ 
)