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
fMatrix.cc File Reference
#include <cfloat>
#include <iostream>
#include <vector>
#include "fNDArray.h"
#include "Array-util.h"
#include "boolMatrix.h"
#include "chMatrix.h"
#include "fMatrix.h"
#include "fDiagMatrix.h"
#include "fCMatrix.h"
#include "fColVector.h"
#include "fRowVector.h"
#include "fCColVector.h"
#include "PermMatrix.h"
#include "DET.h"
#include "byte-swap.h"
#include "f77-fcn.h"
#include "floatCHOL.h"
#include "floatSCHUR.h"
#include "floatSVD.h"
#include "functor.h"
#include "lo-error.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-utils.h"
#include "mx-fdm-fm.h"
#include "mx-fm-fdm.h"
#include "mx-inlines.cc"
#include "mx-op-defs.h"
#include "oct-cmplx.h"
#include "oct-fftw.h"
#include "oct-locbuf.h"
#include "oct-norm.h"
#include "quit.h"
Include dependency graph for fMatrix.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 (sgebal, SGEBAL)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (sgebak, SGEBAK)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (sgemm, SGEMM)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (sgemv, SGEMV)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (xsdot, XSDOT)(const octave_idx_type &
 
F77_RET_T const float const
octave_idx_type const float
const octave_idx_type float
&F77_RET_T 
F77_FUNC (ssyrk, SSYRK)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (sgetrf, SGETRF)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type float const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (sgetrs, SGETRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (sgetri, SGETRI)(const octave_idx_type &
 
F77_RET_T float const
octave_idx_type const
octave_idx_type float const
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (sgecon, SGECON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (sgelsy, SGELSY)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type const
octave_idx_type float const
octave_idx_type float const
octave_idx_type
octave_idx_type float
octave_idx_type float const
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (sgelsd, SGELSD)(const octave_idx_type &
 
F77_RET_T const
octave_idx_type const
octave_idx_type float const
octave_idx_type float const
octave_idx_type
octave_idx_type float
octave_idx_type float const
octave_idx_type
octave_idx_type &F77_RET_T
const octave_idx_type const
octave_idx_type float const
octave_idx_type float const
octave_idx_type float float
octave_idx_type float const
octave_idx_type
octave_idx_type
octave_idx_type &F77_RET_T 
F77_FUNC (spotrf, SPOTRF)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (spocon, SPOCON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (spotrs, SPOTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (strtri, STRTRI)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (strcon, STRCON)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (strtrs, STRTRS)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (slartg, SLARTG)(const float &
 
F77_RET_T const float float
float float &F77_RET_T 
F77_FUNC (strsyl, STRSYL)(F77_CONST_CHAR_ARG_DECL
 
F77_RET_T F77_FUNC (xslange, XSLANGE)(F77_CONST_CHAR_ARG_DECL
 
static char get_blas_trans_arg (bool trans)
 
FloatMatrix Givens (float x, float y)
 
FloatMatrix imag (const FloatComplexMatrix &a)
 
FloatMatrix linspace (const FloatColumnVector &x1, const FloatColumnVector &x2, octave_idx_type n)
 
FloatMatrix max (float d, const FloatMatrix &m)
 
FloatMatrix max (const FloatMatrix &m, float d)
 
FloatMatrix max (const FloatMatrix &a, const FloatMatrix &b)
 
FloatMatrix min (float d, const FloatMatrix &m)
 
FloatMatrix min (const FloatMatrix &m, float d)
 
FloatMatrix min (const FloatMatrix &a, const FloatMatrix &b)
 
boolMatrix mx_el_and (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_and (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_and (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_eq (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_eq (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_eq (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_ge (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_ge (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_ge (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_gt (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_gt (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_gt (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_le (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_le (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_le (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_lt (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_lt (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_lt (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_ne (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_ne (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_ne (const FloatMatrix &m1, const FloatMatrix &m2)
 
boolMatrix mx_el_or (const FloatMatrix &m, const float &s)
 
boolMatrix mx_el_or (const float &s, const FloatMatrix &m)
 
boolMatrix mx_el_or (const FloatMatrix &m1, const FloatMatrix &m2)
 
FloatMatrix operator* (const FloatColumnVector &v, const FloatRowVector &a)
 
FloatMatrix operator* (const FloatMatrix &a, const FloatMatrix &b)
 
std::ostream & operator<< (std::ostream &os, const FloatMatrix &a)
 
std::istream & operator>> (std::istream &is, FloatMatrix &a)
 
FloatMatrix real (const FloatComplexMatrix &a)
 
static FloatMatrix stack_complex_matrix (const FloatComplexMatrix &cm)
 
FloatMatrix Sylvester (const FloatMatrix &a, const FloatMatrix &b, const FloatMatrix &c)
 
static FloatComplexMatrix unstack_complex_matrix (const FloatMatrix &sm)
 
FloatMatrix xgemm (const FloatMatrix &a, const FloatMatrix &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 3195 of file fMatrix.cc.

Referenced by max(), and min().

Function Documentation

F77_RET_T F77_FUNC ( xilaenv  ,
XILAENV   
) const

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

F77_RET_T F77_FUNC ( sgebal  ,
SGEBAL   
)
F77_RET_T F77_FUNC ( sgebak  ,
SGEBAK   
)
F77_RET_T F77_FUNC ( sgemm  ,
SGEMM   
)
F77_RET_T F77_FUNC ( sgemv  ,
SGEMV   
)
F77_RET_T F77_FUNC ( xsdot  ,
XSDOT   
) const
F77_RET_T const float const octave_idx_type const float const octave_idx_type float& F77_RET_T F77_FUNC ( ssyrk  ,
SSYRK   
)
F77_RET_T F77_FUNC ( sgetrf  ,
SGETRF   
) const
F77_RET_T const octave_idx_type float const octave_idx_type octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( sgetrs  ,
SGETRS   
)
F77_RET_T F77_FUNC ( sgetri  ,
SGETRI   
) const
F77_RET_T float const octave_idx_type const octave_idx_type float const octave_idx_type octave_idx_type& F77_RET_T F77_FUNC ( sgecon  ,
SGECON   
)
F77_RET_T F77_FUNC ( sgelsy  ,
SGELSY   
) const
F77_RET_T F77_FUNC ( spocon  ,
SPOCON   
)
F77_RET_T F77_FUNC ( spotrs  ,
SPOTRS   
)
F77_RET_T F77_FUNC ( strtri  ,
STRTRI   
)
F77_RET_T F77_FUNC ( strcon  ,
STRCON   
)
F77_RET_T F77_FUNC ( strtrs  ,
STRTRS   
)
F77_RET_T F77_FUNC ( slartg  ,
SLARTG   
) const
F77_RET_T const float float float float& F77_RET_T F77_FUNC ( strsyl  ,
STRSYL   
)
F77_RET_T F77_FUNC ( xslange  ,
XSLANGE   
)
static char get_blas_trans_arg ( bool  trans)
static

Definition at line 3092 of file fMatrix.cc.

Referenced by xgemm().

FloatMatrix Givens ( float  x,
float  y 
)

Definition at line 3004 of file fMatrix.cc.

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

FloatMatrix imag ( const FloatComplexMatrix a)

Definition at line 621 of file fMatrix.cc.

References mx_inline_imag().

Referenced by stack_complex_matrix().

FloatMatrix linspace ( const FloatColumnVector x1,
const FloatColumnVector x2,
octave_idx_type  n 
)

Definition at line 3333 of file fMatrix.cc.

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

FloatMatrix max ( float  d,
const FloatMatrix m 
)

Definition at line 3267 of file fMatrix.cc.

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

FloatMatrix max ( const FloatMatrix m,
float  d 
)

Definition at line 3287 of file fMatrix.cc.

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

FloatMatrix max ( const FloatMatrix a,
const FloatMatrix b 
)

Definition at line 3307 of file fMatrix.cc.

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

FloatMatrix min ( float  d,
const FloatMatrix m 
)

Definition at line 3200 of file fMatrix.cc.

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

FloatMatrix min ( const FloatMatrix m,
float  d 
)

Definition at line 3220 of file fMatrix.cc.

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

FloatMatrix min ( const FloatMatrix a,
const FloatMatrix b 
)

Definition at line 3240 of file fMatrix.cc.

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

boolMatrix mx_el_and ( const FloatMatrix m,
const float s 
)

Definition at line 3368 of file fMatrix.cc.

boolMatrix mx_el_and ( const float s,
const FloatMatrix m 
)

Definition at line 3371 of file fMatrix.cc.

boolMatrix mx_el_and ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3374 of file fMatrix.cc.

boolMatrix mx_el_eq ( const FloatMatrix m,
const float s 
)

Definition at line 3367 of file fMatrix.cc.

boolMatrix mx_el_eq ( const float s,
const FloatMatrix m 
)

Definition at line 3370 of file fMatrix.cc.

boolMatrix mx_el_eq ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3373 of file fMatrix.cc.

boolMatrix mx_el_ge ( const FloatMatrix m,
const float s 
)

Definition at line 3367 of file fMatrix.cc.

boolMatrix mx_el_ge ( const float s,
const FloatMatrix m 
)

Definition at line 3370 of file fMatrix.cc.

boolMatrix mx_el_ge ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3373 of file fMatrix.cc.

boolMatrix mx_el_gt ( const FloatMatrix m,
const float s 
)

Definition at line 3367 of file fMatrix.cc.

boolMatrix mx_el_gt ( const float s,
const FloatMatrix m 
)

Definition at line 3370 of file fMatrix.cc.

boolMatrix mx_el_gt ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3373 of file fMatrix.cc.

boolMatrix mx_el_le ( const FloatMatrix m,
const float s 
)

Definition at line 3367 of file fMatrix.cc.

boolMatrix mx_el_le ( const float s,
const FloatMatrix m 
)

Definition at line 3370 of file fMatrix.cc.

boolMatrix mx_el_le ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3373 of file fMatrix.cc.

boolMatrix mx_el_lt ( const FloatMatrix m,
const float s 
)

Definition at line 3367 of file fMatrix.cc.

boolMatrix mx_el_lt ( const float s,
const FloatMatrix m 
)

Definition at line 3370 of file fMatrix.cc.

boolMatrix mx_el_lt ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3373 of file fMatrix.cc.

boolMatrix mx_el_ne ( const FloatMatrix m,
const float s 
)

Definition at line 3367 of file fMatrix.cc.

boolMatrix mx_el_ne ( const float s,
const FloatMatrix m 
)

Definition at line 3370 of file fMatrix.cc.

boolMatrix mx_el_ne ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3373 of file fMatrix.cc.

boolMatrix mx_el_or ( const FloatMatrix m,
const float s 
)

Definition at line 3368 of file fMatrix.cc.

boolMatrix mx_el_or ( const float s,
const FloatMatrix m 
)

Definition at line 3371 of file fMatrix.cc.

boolMatrix mx_el_or ( const FloatMatrix m1,
const FloatMatrix m2 
)

Definition at line 3374 of file fMatrix.cc.

FloatMatrix operator* ( const FloatColumnVector v,
const FloatRowVector a 
)
FloatMatrix operator* ( const FloatMatrix a,
const FloatMatrix b 
)

Definition at line 3188 of file fMatrix.cc.

References xgemm().

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

Definition at line 2979 of file fMatrix.cc.

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

FloatMatrix real ( const FloatComplexMatrix a)

Definition at line 615 of file fMatrix.cc.

References mx_inline_real().

Referenced by stack_complex_matrix().

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

Variable Documentation

F77_RET_T const octave_idx_type const octave_idx_type const float const octave_idx_type float float& F77_CHAR_ARG_LEN_DECL

Definition at line 74 of file fMatrix.cc.

F77_RET_T const float float float float& F77_RET_T F77_CONST_CHAR_ARG_DECL

Definition at line 74 of file fMatrix.cc.