GNU Octave  9.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"

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)
 
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 566 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 298 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().

◆ xdiv() [1/12]

◆ xdiv() [2/12]

◆ xdiv() [3/12]

◆ xdiv() [4/12]

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

◆ xdiv() [5/12]

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

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

◆ xdiv() [6/12]

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

Definition at line 354 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 347 of file sparse-xdiv.cc.

◆ xdiv() [10/12]

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

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

◆ xdiv() [11/12]

◆ xdiv() [12/12]

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

◆ xleftdiv() [1/12]

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

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

References d.

◆ xleftdiv() [2/12]

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

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

References d.

◆ xleftdiv() [3/12]

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

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

References d.

◆ xleftdiv() [4/12]

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

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

References d.

◆ xleftdiv() [5/12]

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().

◆ xleftdiv() [6/12]

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().

◆ xleftdiv() [7/12]

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().

◆ xleftdiv() [8/12]

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().

◆ xleftdiv() [9/12]

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().

◆ xleftdiv() [10/12]

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().

◆ xleftdiv() [11/12]

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().

◆ xleftdiv() [12/12]

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().