GNU Octave  4.0.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
dMatrix.cc File Reference
#include <cfloat>
#include <iostream>
#include <vector>
#include "Array-util.h"
#include "byte-swap.h"
#include "boolMatrix.h"
#include "chMatrix.h"
#include "dMatrix.h"
#include "dDiagMatrix.h"
#include "CMatrix.h"
#include "dColVector.h"
#include "dRowVector.h"
#include "CColVector.h"
#include "PermMatrix.h"
#include "DET.h"
#include "dbleSCHUR.h"
#include "dbleSVD.h"
#include "dbleCHOL.h"
#include "f77-fcn.h"
#include "functor.h"
#include "lo-error.h"
#include "oct-locbuf.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-utils.h"
#include "mx-m-dm.h"
#include "mx-dm-m.h"
#include "mx-inlines.cc"
#include "mx-op-defs.h"
#include "oct-cmplx.h"
#include "oct-fftw.h"
#include "oct-norm.h"
#include "quit.h"
Include dependency graph for dMatrix.cc:

Go to the source code of this file.

Macros

#define EMPTY_RETURN_CHECK(T)
 

Functions

F77_RET_T F77_FUNC (xilaenv, XILAENV)(const octave_idx_type &
 
F77_RET_T F77_FUNC (dgebal, DGEBAL)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgebak, DGEBAK)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgemm, DGEMM)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgemv, DGEMV)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (xddot, XDDOT)(const octave_idx_type &
 
F77_RET_T const double const
octave_idx_type const double
const octave_idx_type double
&F77_RET_T 
F77_FUNC (dsyrk, DSYRK)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgetrf, DGETRF)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type double const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgetrs, DGETRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgetri, DGETRI)(const octave_idx_type &
 
F77_RET_T double const
octave_idx_type const
octave_idx_type double const
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgecon, DGECON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dgelsy, DGELSY)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type const
octave_idx_type double const
octave_idx_type double const
octave_idx_type
octave_idx_type double
octave_idx_type double const
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dgelsd, DGELSD)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type const
octave_idx_type double const
octave_idx_type double const
octave_idx_type
octave_idx_type double
octave_idx_type double const
octave_idx_type
octave_idx_type &F77_RET_T
const octave_idx_type const
octave_idx_type double const
octave_idx_type double const
octave_idx_type double double
octave_idx_type double const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (dpotrf, DPOTRF)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dpocon, DPOCON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dpotrs, DPOTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dtrtri, DTRTRI)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dtrcon, DTRCON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dtrtrs, DTRTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (dlartg, DLARTG)(const double &
 
F77_RET_T const double double
double double &F77_RET_T 
F77_FUNC (dtrsyl, DTRSYL)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (xdlange, XDLANGE)(F77_CONST_CHAR_ARG_DECL
 
static char get_blas_trans_arg (bool trans)
 
Matrix Givens (double x, double y)
 
Matrix imag (const ComplexMatrix &a)
 
Matrix linspace (const ColumnVector &x1, const ColumnVector &x2, octave_idx_type n)
 
Matrix max (double d, const Matrix &m)
 
Matrix max (const Matrix &m, double d)
 
Matrix max (const Matrix &a, const Matrix &b)
 
Matrix min (double d, const Matrix &m)
 
Matrix min (const Matrix &m, double d)
 
Matrix min (const Matrix &a, const Matrix &b)
 
boolMatrix mx_el_and (const Matrix &m, const double &s)
 
boolMatrix mx_el_and (const double &s, const Matrix &m)
 
boolMatrix mx_el_and (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_eq (const Matrix &m, const double &s)
 
boolMatrix mx_el_eq (const double &s, const Matrix &m)
 
boolMatrix mx_el_eq (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_ge (const Matrix &m, const double &s)
 
boolMatrix mx_el_ge (const double &s, const Matrix &m)
 
boolMatrix mx_el_ge (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_gt (const Matrix &m, const double &s)
 
boolMatrix mx_el_gt (const double &s, const Matrix &m)
 
boolMatrix mx_el_gt (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_le (const Matrix &m, const double &s)
 
boolMatrix mx_el_le (const double &s, const Matrix &m)
 
boolMatrix mx_el_le (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_lt (const Matrix &m, const double &s)
 
boolMatrix mx_el_lt (const double &s, const Matrix &m)
 
boolMatrix mx_el_lt (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_ne (const Matrix &m, const double &s)
 
boolMatrix mx_el_ne (const double &s, const Matrix &m)
 
boolMatrix mx_el_ne (const Matrix &m1, const Matrix &m2)
 
boolMatrix mx_el_or (const Matrix &m, const double &s)
 
boolMatrix mx_el_or (const double &s, const Matrix &m)
 
boolMatrix mx_el_or (const Matrix &m1, const Matrix &m2)
 
Matrix operator* (const ColumnVector &v, const RowVector &a)
 
Matrix operator* (const Matrix &a, const Matrix &b)
 
std::ostream & operator<< (std::ostream &os, const Matrix &a)
 
std::istream & operator>> (std::istream &is, Matrix &a)
 
Matrix real (const ComplexMatrix &a)
 
static Matrix stack_complex_matrix (const ComplexMatrix &cm)
 
Matrix Sylvester (const Matrix &a, const Matrix &b, const Matrix &c)
 
static ComplexMatrix unstack_complex_matrix (const Matrix &sm)
 
Matrix xgemm (const Matrix &a, const Matrix &b, blas_trans_type transa, blas_trans_type transb)
 

Variables

F77_RET_T const
octave_idx_type const
octave_idx_type const
octave_idx_type const
octave_idx_type
octave_idx_type
&F77_CHAR_ARG_LEN_DECL 
F77_CHAR_ARG_LEN_DECL
 
F77_RET_T F77_CONST_CHAR_ARG_DECL
 

Macro Definition Documentation

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

Definition at line 3190 of file dMatrix.cc.

Referenced by max(), and min().

Function Documentation

F77_RET_T F77_FUNC ( xilaenv  ,
XILAENV   
) const

Referenced by Givens(), Matrix::lssolve(), and xgemm().

F77_RET_T F77_FUNC ( dgebal  ,
DGEBAL   
)
F77_RET_T F77_FUNC ( dgebak  ,
DGEBAK   
)
F77_RET_T F77_FUNC ( dgemm  ,
DGEMM   
)
F77_RET_T F77_FUNC ( dgemv  ,
DGEMV   
)
F77_RET_T F77_FUNC ( xddot  ,
XDDOT   
) const
F77_RET_T const double const octave_idx_type const double const octave_idx_type double& F77_RET_T F77_FUNC ( dsyrk  ,
DSYRK   
)
F77_RET_T F77_FUNC ( dgetrf  ,
DGETRF   
) const
F77_RET_T const octave_idx_type double const octave_idx_type octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( dgetrs  ,
DGETRS   
)
F77_RET_T F77_FUNC ( dgetri  ,
DGETRI   
) const
F77_RET_T double const octave_idx_type const octave_idx_type double const octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( dgecon  ,
DGECON   
)
F77_RET_T F77_FUNC ( dgelsy  ,
DGELSY   
) const
F77_RET_T F77_FUNC ( dpocon  ,
DPOCON   
)
F77_RET_T F77_FUNC ( dpotrs  ,
DPOTRS   
)
F77_RET_T F77_FUNC ( dtrtri  ,
DTRTRI   
)
F77_RET_T F77_FUNC ( dtrcon  ,
DTRCON   
)
F77_RET_T F77_FUNC ( dtrtrs  ,
DTRTRS   
)
F77_RET_T F77_FUNC ( dlartg  ,
DLARTG   
) const
F77_RET_T const double double double double& F77_RET_T F77_FUNC ( dtrsyl  ,
DTRSYL   
)
F77_RET_T F77_FUNC ( xdlange  ,
XDLANGE   
)
static char get_blas_trans_arg ( bool  trans)
inlinestatic

Definition at line 3087 of file dMatrix.cc.

Referenced by xgemm().

Matrix Givens ( double  x,
double  y 
)

Definition at line 2995 of file dMatrix.cc.

References Array< T >::elem(), F77_FUNC(), and x.

Matrix imag ( const ComplexMatrix a)

Definition at line 614 of file dMatrix.cc.

References mx_inline_imag().

Referenced by stack_complex_matrix().

Matrix linspace ( const ColumnVector x1,
const ColumnVector x2,
octave_idx_type  n 
)

Definition at line 3328 of file dMatrix.cc.

References current_liboctave_error_handler, and Array< T >::length().

Matrix max ( double  d,
const Matrix m 
)

Definition at line 3262 of file dMatrix.cc.

References Array< T >::columns(), EMPTY_RETURN_CHECK, Array< T >::rows(), and xmax().

Matrix max ( const Matrix m,
double  d 
)

Definition at line 3282 of file dMatrix.cc.

References Array< T >::columns(), EMPTY_RETURN_CHECK, Array< T >::rows(), and xmax().

Matrix max ( const Matrix a,
const Matrix b 
)

Definition at line 3302 of file dMatrix.cc.

References Array< T >::columns(), EMPTY_RETURN_CHECK, Array< T >::rows(), and xmax().

Matrix min ( double  d,
const Matrix m 
)

Definition at line 3195 of file dMatrix.cc.

References Array< T >::columns(), EMPTY_RETURN_CHECK, Array< T >::rows(), and xmin().

Matrix min ( const Matrix m,
double  d 
)

Definition at line 3215 of file dMatrix.cc.

References Array< T >::columns(), EMPTY_RETURN_CHECK, Array< T >::rows(), and xmin().

Matrix min ( const Matrix a,
const Matrix b 
)

Definition at line 3235 of file dMatrix.cc.

References Array< T >::columns(), EMPTY_RETURN_CHECK, Array< T >::rows(), and xmin().

boolMatrix mx_el_and ( const Matrix m,
const double s 
)

Definition at line 3363 of file dMatrix.cc.

boolMatrix mx_el_and ( const double s,
const Matrix m 
)

Definition at line 3366 of file dMatrix.cc.

boolMatrix mx_el_and ( const Matrix m1,
const Matrix m2 
)

Definition at line 3369 of file dMatrix.cc.

boolMatrix mx_el_eq ( const Matrix m,
const double s 
)

Definition at line 3362 of file dMatrix.cc.

boolMatrix mx_el_eq ( const double s,
const Matrix m 
)

Definition at line 3365 of file dMatrix.cc.

boolMatrix mx_el_eq ( const Matrix m1,
const Matrix m2 
)

Definition at line 3368 of file dMatrix.cc.

boolMatrix mx_el_ge ( const Matrix m,
const double s 
)

Definition at line 3362 of file dMatrix.cc.

boolMatrix mx_el_ge ( const double s,
const Matrix m 
)

Definition at line 3365 of file dMatrix.cc.

boolMatrix mx_el_ge ( const Matrix m1,
const Matrix m2 
)

Definition at line 3368 of file dMatrix.cc.

boolMatrix mx_el_gt ( const Matrix m,
const double s 
)

Definition at line 3362 of file dMatrix.cc.

boolMatrix mx_el_gt ( const double s,
const Matrix m 
)

Definition at line 3365 of file dMatrix.cc.

boolMatrix mx_el_gt ( const Matrix m1,
const Matrix m2 
)

Definition at line 3368 of file dMatrix.cc.

boolMatrix mx_el_le ( const Matrix m,
const double s 
)

Definition at line 3362 of file dMatrix.cc.

boolMatrix mx_el_le ( const double s,
const Matrix m 
)

Definition at line 3365 of file dMatrix.cc.

boolMatrix mx_el_le ( const Matrix m1,
const Matrix m2 
)

Definition at line 3368 of file dMatrix.cc.

boolMatrix mx_el_lt ( const Matrix m,
const double s 
)

Definition at line 3362 of file dMatrix.cc.

boolMatrix mx_el_lt ( const double s,
const Matrix m 
)

Definition at line 3365 of file dMatrix.cc.

boolMatrix mx_el_lt ( const Matrix m1,
const Matrix m2 
)

Definition at line 3368 of file dMatrix.cc.

boolMatrix mx_el_ne ( const Matrix m,
const double s 
)

Definition at line 3362 of file dMatrix.cc.

boolMatrix mx_el_ne ( const double s,
const Matrix m 
)

Definition at line 3365 of file dMatrix.cc.

boolMatrix mx_el_ne ( const Matrix m1,
const Matrix m2 
)

Definition at line 3368 of file dMatrix.cc.

boolMatrix mx_el_or ( const Matrix m,
const double s 
)

Definition at line 3363 of file dMatrix.cc.

boolMatrix mx_el_or ( const double s,
const Matrix m 
)

Definition at line 3366 of file dMatrix.cc.

boolMatrix mx_el_or ( const Matrix m1,
const Matrix m2 
)

Definition at line 3369 of file dMatrix.cc.

Matrix operator* ( const ColumnVector v,
const RowVector a 
)
Matrix operator* ( const Matrix a,
const Matrix b 
)

Definition at line 3183 of file dMatrix.cc.

References xgemm().

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

Definition at line 2970 of file dMatrix.cc.

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

Matrix real ( const ComplexMatrix a)

Definition at line 608 of file dMatrix.cc.

References mx_inline_real().

Referenced by stack_complex_matrix().

static Matrix stack_complex_matrix ( const ComplexMatrix cm)
static
Matrix Sylvester ( const Matrix a,
const Matrix b,
const Matrix c 
)
static ComplexMatrix unstack_complex_matrix ( const Matrix sm)
static
Matrix xgemm ( const Matrix a,
const Matrix b,
blas_trans_type  transa,
blas_trans_type  transb 
)

Variable Documentation

F77_RET_T const octave_idx_type const octave_idx_type const double const octave_idx_type double double& F77_CHAR_ARG_LEN_DECL

Definition at line 72 of file dMatrix.cc.

F77_RET_T const double double double double& F77_RET_T F77_CONST_CHAR_ARG_DECL

Definition at line 72 of file dMatrix.cc.