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

Macros

#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 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 F77_FUNC (zgbcon, ZGBCON)(F77_CONST_CHAR_ARG_DECL
F77_RET_T F77_FUNC (zpbtrf, ZPBTRF)(F77_CONST_CHAR_ARG_DECL
F77_RET_T F77_FUNC (zpbtrs, ZPBTRS)(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 &
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 double Complex
Complex const octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (zgtsv, ZGTSV)(const octave_idx_type &
ComplexMatrix herm_mul (const SparseComplexMatrix &m, const ComplexMatrix &a)
SparseComplexMatrix max (const Complex &c, const SparseComplexMatrix &m)
SparseComplexMatrix max (const SparseComplexMatrix &m, const Complex &c)
SparseComplexMatrix max (const SparseComplexMatrix &a, const SparseComplexMatrix &b)
SparseComplexMatrix min (const Complex &c, const SparseComplexMatrix &m)
SparseComplexMatrix min (const SparseComplexMatrix &m, const Complex &c)
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 &m, const SparseMatrix &a)
SparseComplexMatrix operator* (const SparseMatrix &m, const SparseComplexMatrix &a)
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 Matrix &a)
ComplexMatrix operator* (const SparseMatrix &m, const ComplexMatrix &a)
ComplexMatrix operator* (const SparseComplexMatrix &m, const ComplexMatrix &a)
SparseComplexMatrix operator* (const DiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const SparseComplexMatrix &a, const DiagMatrix &d)
SparseComplexMatrix operator* (const ComplexDiagMatrix &d, const SparseMatrix &a)
SparseComplexMatrix operator* (const SparseMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator* (const ComplexDiagMatrix &d, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const SparseComplexMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator* (const PermMatrix &p, const SparseComplexMatrix &a)
SparseComplexMatrix operator* (const SparseComplexMatrix &a, const PermMatrix &p)
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 SparseMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator+ (const SparseComplexMatrix &a, const DiagMatrix &d)
SparseComplexMatrix operator+ (const SparseComplexMatrix &a, const ComplexDiagMatrix &d)
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 SparseMatrix &a, const ComplexDiagMatrix &d)
SparseComplexMatrix operator- (const SparseComplexMatrix &a, const DiagMatrix &d)
SparseComplexMatrix operator- (const SparseComplexMatrix &a, const ComplexDiagMatrix &d)
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

Macro Definition 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 7646 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
F77_RET_T F77_FUNC ( zgbtrf  ,
ZGBTRF   
) const
F77_RET_T F77_FUNC ( zgbcon  ,
ZGBCON   
)
F77_RET_T F77_FUNC ( zpbtrf  ,
ZPBTRF   
)
F77_RET_T F77_FUNC ( zpbtrs  ,
ZPBTRS   
)
F77_RET_T F77_FUNC ( zpbcon  ,
ZPBCON   
)
F77_RET_T F77_FUNC ( zgttrf  ,
ZGTTRF   
) const
F77_RET_T F77_FUNC ( zptsv  ,
ZPTSV   
) const
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
ComplexMatrix herm_mul ( const SparseComplexMatrix m,
const ComplexMatrix a 
)

Definition at line 7529 of file CSparse.cc.

References conj(), and SPARSE_FULL_TRANS_MUL.

Referenced by install_cm_cm_ops(), install_fcm_fcm_ops(), and install_scm_cm_ops().

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

Definition at line 7795 of file CSparse.cc.

References max().

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

Definition at line 7675 of file CSparse.cc.

References min().

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

Definition at line 7499 of file CSparse.cc.

References conj(), and FULL_SPARSE_MUL_TRANS.

Referenced by install_cm_cm_ops(), install_cm_scm_ops(), and install_fcm_fcm_ops().

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

Definition at line 7457 of file CSparse.cc.

References SPARSE_SPARSE_MUL.

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

Definition at line 7463 of file CSparse.cc.

References SPARSE_SPARSE_MUL.

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

Definition at line 7469 of file CSparse.cc.

References SPARSE_SPARSE_MUL.

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

Definition at line 7475 of file CSparse.cc.

References FULL_SPARSE_MUL.

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

Definition at line 7481 of file CSparse.cc.

References FULL_SPARSE_MUL.

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

Definition at line 7487 of file CSparse.cc.

References FULL_SPARSE_MUL.

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

Definition at line 7505 of file CSparse.cc.

References SPARSE_FULL_MUL.

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

Definition at line 7511 of file CSparse.cc.

References SPARSE_FULL_MUL.

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

Definition at line 7517 of file CSparse.cc.

References SPARSE_FULL_MUL.

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

Definition at line 7536 of file CSparse.cc.

References d.

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

Definition at line 7541 of file CSparse.cc.

References d.

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

Definition at line 7547 of file CSparse.cc.

References d.

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

Definition at line 7552 of file CSparse.cc.

References d.

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

Definition at line 7558 of file CSparse.cc.

References d.

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

Definition at line 7563 of file CSparse.cc.

References d.

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

Definition at line 7633 of file CSparse.cc.

References octinternal_do_mul_pm_sm().

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

Definition at line 7639 of file CSparse.cc.

References octinternal_do_mul_sm_pm().

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

Definition at line 7569 of file CSparse.cc.

References d.

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

Definition at line 7574 of file CSparse.cc.

References d.

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

Definition at line 7579 of file CSparse.cc.

References d.

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

Definition at line 7584 of file CSparse.cc.

References d.

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

Definition at line 7589 of file CSparse.cc.

References d.

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

Definition at line 7594 of file CSparse.cc.

References d.

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

Definition at line 7600 of file CSparse.cc.

References d.

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

Definition at line 7605 of file CSparse.cc.

References d.

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

Definition at line 7610 of file CSparse.cc.

References d.

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

Definition at line 7615 of file CSparse.cc.

References d.

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

Definition at line 7620 of file CSparse.cc.

References d.

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

Definition at line 7625 of file CSparse.cc.

References d.

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

Definition at line 7449 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 7898 of file CSparse.cc.

Referenced by airy(), ComplexNDArray::all_integers(), FloatComplexNDArray::all_integers(), ComplexMatrix::all_integers(), FloatComplexMatrix::all_integers(), SparseComplexMatrix::all_integers(), octave_float_complex::any(), octave_complex::any(), octave_float_complex::array_value(), octave_complex::array_value(), octave_sparse_complex_matrix::as_mxArray(), octave_float_complex_matrix::as_mxArray(), octave_complex_matrix::as_mxArray(), octave_float_complex::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_sparse_complex_matrix::char_array_value(), octave_float_complex_matrix::char_array_value(), octave_complex_matrix::char_array_value(), ComplexMatrix::column_max(), FloatComplexMatrix::column_max(), ComplexMatrix::column_min(), FloatComplexMatrix::column_min(), 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::double_value(), octave_float_complex_matrix::double_value(), octave_complex_matrix::double_value(), octave_complex::double_value(), octave_sparse_complex_matrix::double_value(), ellipj(), ComplexMatrix::finverse(), FloatComplexMatrix::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::float_matrix_value(), octave_float_complex_matrix::float_matrix_value(), octave_complex_matrix::float_matrix_value(), octave_complex::float_matrix_value(), octave_float_complex::float_value(), octave_float_complex_matrix::float_value(), octave_complex_matrix::float_value(), octave_complex::float_value(), floor(), ignnbn(), install_mappers_fcns(), jit_typeinfo::jit_typeinfo(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), octave_float_complex_diag_matrix::map(), octave_complex_diag_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_complex_matrix::map(), octave_complex_matrix::map(), octave_float_complex::map(), octave_complex::map(), octave_float_complex::matrix_value(), octave_float_complex_matrix::matrix_value(), octave_sparse_complex_matrix::matrix_value(), octave_complex_matrix::matrix_value(), octave_complex::matrix_value(), max(), min(), mx_inline_real(), oct_binop_mul_trans(), oct_binop_trans_mul(), octave_is_NA(), octave_is_NaN_or_NA(), octave_write_complex(), octave_write_float_complex(), onecov(), operator*(), jit_typeinfo::pack_complex(), qp(), qrsolve(), real(), ComplexMatrix::row_max(), FloatComplexMatrix::row_max(), ComplexMatrix::row_min(), FloatComplexMatrix::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_sparse_complex_matrix::sparse_matrix_value(), octave_float_complex_matrix::sparse_matrix_value(), octave_complex_matrix::sparse_matrix_value(), stack_complex_matrix(), stat(), SparseComplexMatrix::trisolve(), octave_float_complex_diag_matrix::try_narrowing_conversion(), octave_complex_diag_matrix::try_narrowing_conversion(), octave_float_complex::try_narrowing_conversion(), octave_complex::try_narrowing_conversion(), octave_float_complex_matrix::try_narrowing_conversion(), octave_complex_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), jit_typeinfo::unpack_complex(), xfinite(), xisinf(), xisnan(), xpow(), xround(), xroundb(), zbesh1(), zbesh2(), and zbesk().