Defines | Functions | Variables

CSparse.cc File Reference

#include <cfloat>
#include <iostream>
#include <vector>
#include "quit.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "f77-fcn.h"
#include "dRowVector.h"
#include "oct-locbuf.h"
#include "dDiagMatrix.h"
#include "CDiagMatrix.h"
#include "CSparse.h"
#include "boolSparse.h"
#include "dSparse.h"
#include "functor.h"
#include "oct-spparms.h"
#include "SparseCmplxLU.h"
#include "oct-sparse.h"
#include "sparse-util.h"
#include "SparseCmplxCHOL.h"
#include "SparseCmplxQR.h"
#include "Sparse-diag-op-defs.h"
#include "Sparse-perm-op-defs.h"
#include "mx-inlines.cc"
#include "sparse-dmsolve.cc"
Include dependency graph for CSparse.cc:

Go to the source code of this file.

Defines

#define COL_EXPR
#define EMPTY_RETURN_CHECK(T)
#define ROW_EXPR

Functions

static const Complex Complex_NaN_result (octave_NaN, octave_NaN)
SparseComplexMatrix conj (const SparseComplexMatrix &a)
F77_RET_T F77_FUNC (zgbtrf, ZGBTRF)(const octave_idx_type &
F77_RET_T F77_FUNC (zpbtrf, ZPBTRF)(F77_CONST_CHAR_ARG_DECL
F77_RET_T Complex Complex
Complex Complex
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (zgttrs, ZGTTRS)(F77_CONST_CHAR_ARG_DECL
F77_RET_T F77_FUNC (zptsv, ZPTSV)(const octave_idx_type &
F77_RET_T const
octave_idx_type const
octave_idx_type const
octave_idx_type Complex const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (zgbtrs, ZGBTRS)(F77_CONST_CHAR_ARG_DECL
F77_RET_T const
octave_idx_type double Complex
Complex const octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (zgtsv, ZGTSV)(const octave_idx_type &
F77_RET_T F77_FUNC (zpbtrs, ZPBTRS)(F77_CONST_CHAR_ARG_DECL
F77_RET_T F77_FUNC (zgbcon, ZGBCON)(F77_CONST_CHAR_ARG_DECL
F77_RET_T F77_FUNC (zpbcon, ZPBCON)(F77_CONST_CHAR_ARG_DECL
F77_RET_T F77_FUNC (zgttrf, ZGTTRF)(const octave_idx_type &
ComplexMatrix herm_mul (const SparseComplexMatrix &m, const ComplexMatrix &a)
SparseComplexMatrix max (const SparseComplexMatrix &a, const SparseComplexMatrix &b)
SparseComplexMatrix max (const Complex &c, const SparseComplexMatrix &m)
SparseComplexMatrix max (const SparseComplexMatrix &m, const Complex &c)
SparseComplexMatrix min (const SparseComplexMatrix &m, const Complex &c)
SparseComplexMatrix min (const Complex &c, const SparseComplexMatrix &m)
SparseComplexMatrix min (const SparseComplexMatrix &a, const SparseComplexMatrix &b)
ComplexMatrix mul_herm (const ComplexMatrix &m, const SparseComplexMatrix &a)
ComplexMatrix mul_trans (const ComplexMatrix &m, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const SparseComplexMatrix &a, const PermMatrix &p)
SparseComplexMatrix operator* (const SparseMatrix &m, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const ComplexDiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const SparseMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator* (const ComplexDiagMatrix &d, const SparseMatrix &a)
SparseComplexMatrix operator* (const SparseComplexMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator* (const SparseComplexMatrix &m, const SparseComplexMatrix &a)
ComplexMatrix operator* (const ComplexMatrix &m, const SparseMatrix &a)
ComplexMatrix operator* (const Matrix &m, const SparseComplexMatrix &a)
ComplexMatrix operator* (const ComplexMatrix &m, const SparseComplexMatrix &a)
ComplexMatrix operator* (const SparseComplexMatrix &m, const ComplexMatrix &a)
ComplexMatrix operator* (const SparseMatrix &m, const ComplexMatrix &a)
ComplexMatrix operator* (const SparseComplexMatrix &m, const Matrix &a)
SparseComplexMatrix operator* (const PermMatrix &p, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const DiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const SparseComplexMatrix &a, const DiagMatrix &d)
SparseComplexMatrix operator* (const SparseComplexMatrix &m, const SparseMatrix &a)
SparseComplexMatrix operator+ (const ComplexDiagMatrix &d, const SparseMatrix &a)
SparseComplexMatrix operator+ (const DiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator+ (const ComplexDiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator+ (const SparseComplexMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator+ (const SparseMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator+ (const SparseComplexMatrix &a, const DiagMatrix &d)
SparseComplexMatrix operator- (const SparseComplexMatrix &a, const DiagMatrix &d)
SparseComplexMatrix operator- (const DiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator- (const ComplexDiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator- (const SparseMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator- (const SparseComplexMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator- (const ComplexDiagMatrix &d, const SparseMatrix &a)
std::ostream & operator<< (std::ostream &os, const SparseComplexMatrix &a)
std::istream & operator>> (std::istream &is, SparseComplexMatrix &a)
 SPARSE_SMS_CMP_OPS (SparseComplexMatrix, 0.0, real, Complex, 0.0, real) SPARSE_SSM_CMP_OPS(Complex
ComplexMatrix trans_mul (const SparseComplexMatrix &m, const ComplexMatrix &a)

Variables

F77_RET_T const
octave_idx_type const
octave_idx_type const
octave_idx_type Complex const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T
const octave_idx_type const
octave_idx_type const
octave_idx_type const
octave_idx_type const Complex
const octave_idx_type const
octave_idx_type Complex const
octave_idx_type
octave_idx_type
F77_CHAR_ARG_LEN_DECL
 real
 SparseComplexMatrix

Define Documentation

#define COL_EXPR
Value:
Complex d = data (i); \
  tmp [j] += d * conj (d)

Referenced by SparseMatrix::sumsq(), and SparseComplexMatrix::sumsq().

#define EMPTY_RETURN_CHECK (   T  ) 
Value:
if (nr == 0 || nc == 0) \
    return T (nr, nc);

Definition at line 7629 of file CSparse.cc.

Referenced by max(), and min().

#define ROW_EXPR
Value:
Complex d = data (i); \
  tmp [ridx(i)] += d * conj (d)

Referenced by SparseMatrix::sumsq(), and SparseComplexMatrix::sumsq().


Function Documentation

static const Complex Complex_NaN_result ( octave_NaN  ,
octave_NaN   
) [static]
SparseComplexMatrix conj ( const SparseComplexMatrix a  ) 
F77_RET_T F77_FUNC ( zgbtrf  ,
ZGBTRF   
) const
F77_RET_T F77_FUNC ( zpbtrf  ,
ZPBTRF   
)
F77_RET_T Complex Complex Complex Complex octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( zgttrs  ,
ZGTTRS   
)
F77_RET_T F77_FUNC ( zptsv  ,
ZPTSV   
) const
F77_RET_T const octave_idx_type const octave_idx_type const octave_idx_type Complex const octave_idx_type octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( zgbtrs  ,
ZGBTRS   
)
F77_RET_T const octave_idx_type double Complex Complex const octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( zgtsv  ,
ZGTSV   
) const
F77_RET_T F77_FUNC ( zpbtrs  ,
ZPBTRS   
)
F77_RET_T F77_FUNC ( zgbcon  ,
ZGBCON   
)
F77_RET_T F77_FUNC ( zpbcon  ,
ZPBCON   
)
F77_RET_T F77_FUNC ( zgttrf  ,
ZGTTRF   
) const
ComplexMatrix herm_mul ( const SparseComplexMatrix m,
const ComplexMatrix a 
)

Definition at line 7511 of file CSparse.cc.

References conj(), and SPARSE_FULL_TRANS_MUL.

Referenced by install_cm_cm_ops(), and install_scm_cm_ops().

SparseComplexMatrix max ( const SparseComplexMatrix a,
const SparseComplexMatrix b 
)
SparseComplexMatrix max ( const Complex c,
const SparseComplexMatrix m 
)
SparseComplexMatrix max ( const SparseComplexMatrix m,
const Complex c 
)

Definition at line 7778 of file CSparse.cc.

References max().

SparseComplexMatrix min ( const SparseComplexMatrix m,
const Complex c 
)

Definition at line 7658 of file CSparse.cc.

References min().

SparseComplexMatrix min ( const Complex c,
const SparseComplexMatrix m 
)
SparseComplexMatrix min ( const SparseComplexMatrix a,
const SparseComplexMatrix b 
)
ComplexMatrix mul_herm ( const ComplexMatrix m,
const SparseComplexMatrix a 
)

Definition at line 7481 of file CSparse.cc.

References conj(), and FULL_SPARSE_MUL_TRANS.

Referenced by DEFNDASSIGNOP_FN(), and install_cm_cm_ops().

ComplexMatrix mul_trans ( const ComplexMatrix m,
const SparseComplexMatrix a 
)
SparseComplexMatrix operator* ( const SparseComplexMatrix a,
const PermMatrix p 
)

Definition at line 7621 of file CSparse.cc.

References octinternal_do_mul_sm_pm().

SparseComplexMatrix operator* ( const SparseMatrix m,
const SparseComplexMatrix a 
)

Definition at line 7445 of file CSparse.cc.

References SPARSE_SPARSE_MUL.

SparseComplexMatrix operator* ( const ComplexDiagMatrix d,
const SparseComplexMatrix a 
)

Definition at line 7540 of file CSparse.cc.

SparseComplexMatrix operator* ( const SparseMatrix a,
const ComplexDiagMatrix d 
)

Definition at line 7534 of file CSparse.cc.

SparseComplexMatrix operator* ( const ComplexDiagMatrix d,
const SparseMatrix a 
)

Definition at line 7529 of file CSparse.cc.

SparseComplexMatrix operator* ( const SparseComplexMatrix a,
const ComplexDiagMatrix d 
)

Definition at line 7545 of file CSparse.cc.

SparseComplexMatrix operator* ( const SparseComplexMatrix m,
const SparseComplexMatrix a 
)

Definition at line 7451 of file CSparse.cc.

References SPARSE_SPARSE_MUL.

ComplexMatrix operator* ( const ComplexMatrix m,
const SparseMatrix a 
)

Definition at line 7457 of file CSparse.cc.

References FULL_SPARSE_MUL.

ComplexMatrix operator* ( const Matrix m,
const SparseComplexMatrix a 
)

Definition at line 7463 of file CSparse.cc.

References FULL_SPARSE_MUL.

ComplexMatrix operator* ( const ComplexMatrix m,
const SparseComplexMatrix a 
)

Definition at line 7469 of file CSparse.cc.

References FULL_SPARSE_MUL.

ComplexMatrix operator* ( const SparseComplexMatrix m,
const ComplexMatrix a 
)

Definition at line 7499 of file CSparse.cc.

References SPARSE_FULL_MUL.

ComplexMatrix operator* ( const SparseMatrix m,
const ComplexMatrix a 
)

Definition at line 7493 of file CSparse.cc.

References SPARSE_FULL_MUL.

ComplexMatrix operator* ( const SparseComplexMatrix m,
const Matrix a 
)

Definition at line 7487 of file CSparse.cc.

References SPARSE_FULL_MUL.

SparseComplexMatrix operator* ( const PermMatrix p,
const SparseComplexMatrix a 
)

Definition at line 7615 of file CSparse.cc.

References octinternal_do_mul_pm_sm().

SparseComplexMatrix operator* ( const DiagMatrix d,
const SparseComplexMatrix a 
)

Definition at line 7518 of file CSparse.cc.

SparseComplexMatrix operator* ( const SparseComplexMatrix a,
const DiagMatrix d 
)

Definition at line 7523 of file CSparse.cc.

SparseComplexMatrix operator* ( const SparseComplexMatrix m,
const SparseMatrix a 
)

Definition at line 7439 of file CSparse.cc.

References SPARSE_SPARSE_MUL.

SparseComplexMatrix operator+ ( const ComplexDiagMatrix d,
const SparseMatrix a 
)

Definition at line 7551 of file CSparse.cc.

SparseComplexMatrix operator+ ( const DiagMatrix d,
const SparseComplexMatrix a 
)

Definition at line 7556 of file CSparse.cc.

SparseComplexMatrix operator+ ( const ComplexDiagMatrix d,
const SparseComplexMatrix a 
)

Definition at line 7561 of file CSparse.cc.

SparseComplexMatrix operator+ ( const SparseComplexMatrix a,
const ComplexDiagMatrix d 
)

Definition at line 7576 of file CSparse.cc.

SparseComplexMatrix operator+ ( const SparseMatrix a,
const ComplexDiagMatrix d 
)

Definition at line 7566 of file CSparse.cc.

SparseComplexMatrix operator+ ( const SparseComplexMatrix a,
const DiagMatrix d 
)

Definition at line 7571 of file CSparse.cc.

SparseComplexMatrix operator- ( const SparseComplexMatrix a,
const DiagMatrix d 
)

Definition at line 7602 of file CSparse.cc.

SparseComplexMatrix operator- ( const DiagMatrix d,
const SparseComplexMatrix a 
)

Definition at line 7587 of file CSparse.cc.

SparseComplexMatrix operator- ( const ComplexDiagMatrix d,
const SparseComplexMatrix a 
)

Definition at line 7592 of file CSparse.cc.

SparseComplexMatrix operator- ( const SparseMatrix a,
const ComplexDiagMatrix d 
)

Definition at line 7597 of file CSparse.cc.

SparseComplexMatrix operator- ( const SparseComplexMatrix a,
const ComplexDiagMatrix d 
)

Definition at line 7607 of file CSparse.cc.

SparseComplexMatrix operator- ( const ComplexDiagMatrix d,
const SparseMatrix a 
)

Definition at line 7582 of file CSparse.cc.

std::ostream& operator<< ( std::ostream &  os,
const SparseComplexMatrix a 
)
std::istream& operator>> ( std::istream &  is,
SparseComplexMatrix a 
)

Definition at line 7431 of file CSparse.cc.

SPARSE_SMS_CMP_OPS ( SparseComplexMatrix  ,
0.  0,
real  ,
Complex  ,
0.  0,
real   
)
ComplexMatrix trans_mul ( const SparseComplexMatrix m,
const ComplexMatrix a 
)

Variable Documentation

Definition at line 77 of file CSparse.cc.

real

Definition at line 7881 of file CSparse.cc.

Referenced by airy(), FloatComplexNDArray::all_integers(), FloatComplexMatrix::all_integers(), SparseComplexMatrix::all_integers(), ComplexNDArray::all_integers(), ComplexMatrix::all_integers(), octave_float_complex::any(), octave_complex::any(), octave_float_complex::array_value(), octave_complex::array_value(), octave_float_complex_matrix::as_mxArray(), octave_float_complex::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_complex_matrix::as_mxArray(), octave_complex::as_mxArray(), biry(), octave_float_complex_matrix::bool_array_value(), octave_complex_matrix::bool_array_value(), cbesh1(), cbesh2(), cbesi(), cbesj(), cbesk(), cbesy(), ceil(), octave_float_complex_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_complex_matrix::char_array_value(), FloatComplexMatrix::column_max(), ComplexMatrix::column_max(), FloatComplexMatrix::column_min(), ComplexMatrix::column_min(), DEFBINOP(), DEFUN_DLD(), dgenexp(), octave_float_complex_diag_matrix::diag_matrix_value(), octave_complex_diag_matrix::diag_matrix_value(), dignpoi(), divide(), do_mgorth(), do_sqrtm(), octave_float_complex_matrix::double_value(), octave_float_complex::double_value(), octave_sparse_complex_matrix::double_value(), octave_complex_matrix::double_value(), octave_complex::double_value(), FloatComplexMatrix::finverse(), ComplexMatrix::finverse(), fix(), octave_float_complex::float_array_value(), octave_complex::float_array_value(), octave_float_complex_diag_matrix::float_diag_matrix_value(), octave_complex_diag_matrix::float_diag_matrix_value(), octave_float_complex_matrix::float_matrix_value(), octave_float_complex::float_matrix_value(), octave_complex_matrix::float_matrix_value(), octave_complex::float_matrix_value(), octave_float_complex_matrix::float_value(), octave_float_complex::float_value(), octave_complex_matrix::float_value(), octave_complex::float_value(), floor(), ignnbn(), FloatComplexMatrix::lssolve(), ComplexMatrix::lssolve(), octave_float_complex_matrix::map(), octave_float_complex_diag_matrix::map(), octave_float_complex::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex_diag_matrix::map(), octave_complex::map(), octave_float_complex_matrix::matrix_value(), octave_float_complex::matrix_value(), octave_sparse_complex_matrix::matrix_value(), octave_complex_matrix::matrix_value(), octave_complex::matrix_value(), max(), min(), mx_inline_real(), octave_is_NA(), octave_is_NaN_or_NA(), octave_write_complex(), octave_write_float_complex(), operator*(), qp(), qrsolve(), real(), FloatComplexMatrix::row_max(), ComplexMatrix::row_max(), FloatComplexMatrix::row_min(), ComplexMatrix::row_min(), save_mat5_array_length(), save_mat5_binary_element(), save_mat_binary_data(), set_format(), octave_sparse_complex_matrix::sparse_bool_matrix_value(), octave_float_complex_matrix::sparse_matrix_value(), octave_sparse_complex_matrix::sparse_matrix_value(), octave_complex_matrix::sparse_matrix_value(), stack_complex_matrix(), FloatComplexNDArray::too_large_for_float(), FloatComplexMatrix::too_large_for_float(), SparseComplexMatrix::too_large_for_float(), ComplexNDArray::too_large_for_float(), ComplexMatrix::too_large_for_float(), SparseComplexMatrix::trisolve(), octave_float_complex_matrix::try_narrowing_conversion(), octave_float_complex_diag_matrix::try_narrowing_conversion(), octave_float_complex::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), octave_complex_matrix::try_narrowing_conversion(), octave_complex_diag_matrix::try_narrowing_conversion(), octave_complex::try_narrowing_conversion(), xfinite(), xisinf(), xisnan(), xpow(), xround(), xroundb(), zbesh1(), zbesh2(), and zbesk().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines