GNU Octave  4.2.1
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
Functions
sparse-dmsolve.cc File Reference
#include <vector>
#include "MArray.h"
#include "MSparse.h"
#include "MatrixType.h"
#include "oct-inttypes.h"
#include "oct-locbuf.h"
#include "oct-sort.h"
#include "oct-sparse.h"
#include "sparse-qr.h"
Include dependency graph for sparse-dmsolve.cc:

Go to the source code of this file.

Functions

template<typename RT , typename ST , typename T >
RT dmsolve (const ST &a, const T &b, octave_idx_type &info)
 
template ComplexMatrix dmsolve< ComplexMatrix, SparseComplexMatrix, ComplexMatrix > (const SparseComplexMatrix &, const ComplexMatrix &, octave_idx_type &)
 
template ComplexMatrix dmsolve< ComplexMatrix, SparseComplexMatrix, Matrix > (const SparseComplexMatrix &, const Matrix &, octave_idx_type &)
 
template ComplexMatrix dmsolve< ComplexMatrix, SparseMatrix, ComplexMatrix > (const SparseMatrix &, const ComplexMatrix &, octave_idx_type &)
 
template Matrix dmsolve< Matrix, SparseMatrix, Matrix > (const SparseMatrix &, const Matrix &, octave_idx_type &)
 
template SparseComplexMatrix dmsolve< SparseComplexMatrix, SparseComplexMatrix, SparseComplexMatrix > (const SparseComplexMatrix &, const SparseComplexMatrix &, octave_idx_type &)
 
template SparseComplexMatrix dmsolve< SparseComplexMatrix, SparseComplexMatrix, SparseMatrix > (const SparseComplexMatrix &, const SparseMatrix &, octave_idx_type &)
 
template SparseComplexMatrix dmsolve< SparseComplexMatrix, SparseMatrix, SparseComplexMatrix > (const SparseMatrix &, const SparseComplexMatrix &, octave_idx_type &)
 
template SparseMatrix dmsolve< SparseMatrix, SparseMatrix, SparseMatrix > (const SparseMatrix &, const SparseMatrix &, octave_idx_type &)
 
template<typename T >
static MSparse< T > dmsolve_extract (const MSparse< T > &A, const octave_idx_type *Pinv, const octave_idx_type *Q, octave_idx_type rst, octave_idx_type rend, octave_idx_type cst, octave_idx_type cend, octave_idx_type maxnz=-1, bool lazy=false)
 
template<typename T >
static MArray< T > dmsolve_extract (const MArray< T > &m, const octave_idx_type *, const octave_idx_type *, octave_idx_type r1, octave_idx_type r2, octave_idx_type c1, octave_idx_type c2)
 
template<typename T >
static void dmsolve_insert (MArray< T > &a, const MArray< T > &b, const octave_idx_type *Q, octave_idx_type r, octave_idx_type c)
 
template<typename T >
static void dmsolve_insert (MSparse< T > &a, const MSparse< T > &b, const octave_idx_type *Q, octave_idx_type r, octave_idx_type c)
 
template<typename T , typename RT >
static void dmsolve_permute (MArray< RT > &a, const MArray< T > &b, const octave_idx_type *p)
 
template<typename T , typename RT >
static void dmsolve_permute (MSparse< RT > &a, const MSparse< T > &b, const octave_idx_type *p)
 
static void solve_singularity_warning (double)
 

Function Documentation

template<typename RT , typename ST , typename T >
RT dmsolve ( const ST &  a,
const T &  b,
octave_idx_type info 
)

Referenced by SparseMatrix::solve().

template Matrix dmsolve< Matrix, SparseMatrix, Matrix > ( const SparseMatrix ,
const Matrix ,
octave_idx_type  
)

Referenced by SparseMatrix::solve().

Referenced by SparseMatrix::solve().

Referenced by SparseMatrix::solve().

template<typename T >
static MSparse<T> dmsolve_extract ( const MSparse< T > &  A,
const octave_idx_type Pinv,
const octave_idx_type Q,
octave_idx_type  rst,
octave_idx_type  rend,
octave_idx_type  cst,
octave_idx_type  cend,
octave_idx_type  maxnz = -1,
bool  lazy = false 
)
static
template<typename T >
static MArray<T> dmsolve_extract ( const MArray< T > &  m,
const octave_idx_type ,
const octave_idx_type ,
octave_idx_type  r1,
octave_idx_type  r2,
octave_idx_type  c1,
octave_idx_type  c2 
)
static

Definition at line 135 of file sparse-dmsolve.cc.

References Array< T >::elem(), result, swap, and Array< T >::xelem().

template<typename T >
static void dmsolve_insert ( MArray< T > &  a,
const MArray< T > &  b,
const octave_idx_type Q,
octave_idx_type  r,
octave_idx_type  c 
)
static

Definition at line 165 of file sparse-dmsolve.cc.

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

Referenced by dmsolve().

template<typename T >
static void dmsolve_insert ( MSparse< T > &  a,
const MSparse< T > &  b,
const octave_idx_type Q,
octave_idx_type  r,
octave_idx_type  c 
)
static
template<typename T , typename RT >
static void dmsolve_permute ( MArray< RT > &  a,
const MArray< T > &  b,
const octave_idx_type p 
)
static
template<typename T , typename RT >
static void dmsolve_permute ( MSparse< RT > &  a,
const MSparse< T > &  b,
const octave_idx_type p 
)
static
static void solve_singularity_warning ( double  )
static

Definition at line 350 of file sparse-dmsolve.cc.

Referenced by dmsolve().