GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
fCMatrix.cc File Reference
#include <algorithm>
#include <complex>
#include <istream>
#include <limits>
#include <ostream>
#include "Array-util.h"
#include "DET.h"
#include "boolMatrix.h"
#include "chMatrix.h"
#include "chol.h"
#include "fCColVector.h"
#include "fCDiagMatrix.h"
#include "fCMatrix.h"
#include "fCNDArray.h"
#include "fCRowVector.h"
#include "lo-blas-proto.h"
#include "lo-error.h"
#include "lo-ieee.h"
#include "lo-lapack-proto.h"
#include "lo-mappers.h"
#include "lo-utils.h"
#include "mx-fcm-fdm.h"
#include "mx-fcm-fs.h"
#include "mx-fdm-fcm.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 "schur.h"
#include "svd.h"
Include dependency graph for fCMatrix.cc:

Go to the source code of this file.

Macros

#define EMPTY_RETURN_CHECK(T)
 

Functions

FloatComplexMatrix conj (const FloatComplexMatrix &a)
 
static const FloatComplex FloatComplex_NaN_result (octave::numeric_limits< float >::NaN(), octave::numeric_limits< float >::NaN())
 
static char get_blas_trans_arg (bool trans, bool conj)
 
FloatComplexMatrix Givens (const FloatComplex &x, const FloatComplex &y)
 
FloatComplexMatrix linspace (const FloatComplexColumnVector &x1, const FloatComplexColumnVector &x2, octave_idx_type n)
 
FloatComplexMatrix max (const FloatComplex &c, const FloatComplexMatrix &m)
 
FloatComplexMatrix max (const FloatComplexMatrix &a, const FloatComplexMatrix &b)
 
FloatComplexMatrix max (const FloatComplexMatrix &m, const FloatComplex &c)
 
FloatComplexMatrix min (const FloatComplex &c, const FloatComplexMatrix &m)
 
FloatComplexMatrix min (const FloatComplexMatrix &a, const FloatComplexMatrix &b)
 
FloatComplexMatrix min (const FloatComplexMatrix &m, const FloatComplex &c)
 
boolMatrix mx_el_and (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_and (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_and (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_eq (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_eq (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_eq (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_ge (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_ge (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_ge (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_gt (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_gt (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_gt (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_le (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_le (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_le (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_lt (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_lt (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_lt (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_ne (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_ne (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_ne (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
boolMatrix mx_el_or (const FloatComplex &s, const FloatComplexMatrix &m)
 
boolMatrix mx_el_or (const FloatComplexMatrix &m, const FloatComplex &s)
 
boolMatrix mx_el_or (const FloatComplexMatrix &m1, const FloatComplexMatrix &m2)
 
static float norm1 (const FloatComplexMatrix &a)
 
FloatComplexMatrix operator* (const FloatColumnVector &v, const FloatComplexRowVector &a)
 
FloatComplexMatrix operator* (const FloatComplexColumnVector &a, const FloatRowVector &b)
 
FloatComplexMatrix operator* (const FloatComplexColumnVector &v, const FloatComplexRowVector &a)
 
FloatComplexMatrix operator* (const FloatComplexMatrix &a, const FloatComplexMatrix &b)
 
FloatComplexMatrix operator* (const FloatComplexMatrix &m, const FloatMatrix &a)
 
FloatComplexMatrix operator* (const FloatMatrix &m, const FloatComplexMatrix &a)
 
std::ostream & operator<< (std::ostream &os, const FloatComplexMatrix &a)
 
std::istream & operator>> (std::istream &is, FloatComplexMatrix &a)
 
FloatComplexMatrix Sylvester (const FloatComplexMatrix &a, const FloatComplexMatrix &b, const FloatComplexMatrix &c)
 
FloatComplexMatrix xgemm (const FloatComplexMatrix &a, const FloatComplexMatrix &b, blas_trans_type transa, blas_trans_type transb)
 

Macro Definition Documentation

◆ EMPTY_RETURN_CHECK

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

Definition at line 3483 of file fCMatrix.cc.

Function Documentation

◆ conj()

◆ FloatComplex_NaN_result()

static const FloatComplex FloatComplex_NaN_result ( octave::numeric_limits< float >  ::NaN(),
octave::numeric_limits< float >  ::NaN() 
)
static

◆ get_blas_trans_arg()

static char get_blas_trans_arg ( bool  trans,
bool  conj 
)
static

Definition at line 3345 of file fCMatrix.cc.

References conj().

Referenced by xgemm().

◆ Givens()

FloatComplexMatrix Givens ( const FloatComplex x,
const FloatComplex y 
)

Definition at line 3234 of file fCMatrix.cc.

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

◆ linspace()

Definition at line 3634 of file fCMatrix.cc.

References Array< T >::clear(), m, n, Array< T >::numel(), retval, and Array< T >::xelem().

◆ max() [1/3]

◆ max() [2/3]

◆ max() [3/3]

FloatComplexMatrix max ( const FloatComplexMatrix m,
const FloatComplex c 
)

Definition at line 3580 of file fCMatrix.cc.

References m, and max().

◆ min() [1/3]

FloatComplexMatrix min ( const FloatComplex c,
const FloatComplexMatrix m 
)

Definition at line 3488 of file fCMatrix.cc.

References EMPTY_RETURN_CHECK, m, and octave::math::min().

Referenced by min(), operator*(), and FloatComplexMatrix::pseudo_inverse().

◆ min() [2/3]

◆ min() [3/3]

FloatComplexMatrix min ( const FloatComplexMatrix m,
const FloatComplex c 
)

Definition at line 3508 of file fCMatrix.cc.

References m, and min().

◆ mx_el_and() [1/3]

boolMatrix mx_el_and ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3676 of file fCMatrix.cc.

◆ mx_el_and() [2/3]

boolMatrix mx_el_and ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3673 of file fCMatrix.cc.

◆ mx_el_and() [3/3]

boolMatrix mx_el_and ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3679 of file fCMatrix.cc.

◆ mx_el_eq() [1/3]

boolMatrix mx_el_eq ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3675 of file fCMatrix.cc.

◆ mx_el_eq() [2/3]

boolMatrix mx_el_eq ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3672 of file fCMatrix.cc.

◆ mx_el_eq() [3/3]

boolMatrix mx_el_eq ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3678 of file fCMatrix.cc.

◆ mx_el_ge() [1/3]

boolMatrix mx_el_ge ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3675 of file fCMatrix.cc.

◆ mx_el_ge() [2/3]

boolMatrix mx_el_ge ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3672 of file fCMatrix.cc.

◆ mx_el_ge() [3/3]

boolMatrix mx_el_ge ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3678 of file fCMatrix.cc.

◆ mx_el_gt() [1/3]

boolMatrix mx_el_gt ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3675 of file fCMatrix.cc.

◆ mx_el_gt() [2/3]

boolMatrix mx_el_gt ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3672 of file fCMatrix.cc.

◆ mx_el_gt() [3/3]

boolMatrix mx_el_gt ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3678 of file fCMatrix.cc.

◆ mx_el_le() [1/3]

boolMatrix mx_el_le ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3675 of file fCMatrix.cc.

◆ mx_el_le() [2/3]

boolMatrix mx_el_le ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3672 of file fCMatrix.cc.

◆ mx_el_le() [3/3]

boolMatrix mx_el_le ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3678 of file fCMatrix.cc.

◆ mx_el_lt() [1/3]

boolMatrix mx_el_lt ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3675 of file fCMatrix.cc.

◆ mx_el_lt() [2/3]

boolMatrix mx_el_lt ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3672 of file fCMatrix.cc.

◆ mx_el_lt() [3/3]

boolMatrix mx_el_lt ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3678 of file fCMatrix.cc.

◆ mx_el_ne() [1/3]

boolMatrix mx_el_ne ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3675 of file fCMatrix.cc.

◆ mx_el_ne() [2/3]

boolMatrix mx_el_ne ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3672 of file fCMatrix.cc.

◆ mx_el_ne() [3/3]

boolMatrix mx_el_ne ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3678 of file fCMatrix.cc.

◆ mx_el_or() [1/3]

boolMatrix mx_el_or ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3676 of file fCMatrix.cc.

◆ mx_el_or() [2/3]

boolMatrix mx_el_or ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3673 of file fCMatrix.cc.

◆ mx_el_or() [3/3]

boolMatrix mx_el_or ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3679 of file fCMatrix.cc.

◆ norm1()

◆ operator*() [1/6]

FloatComplexMatrix operator* ( const FloatColumnVector v,
const FloatComplexRowVector a 
)

Definition at line 2628 of file fCMatrix.cc.

◆ operator*() [2/6]

FloatComplexMatrix operator* ( const FloatComplexColumnVector a,
const FloatRowVector b 
)

Definition at line 2635 of file fCMatrix.cc.

◆ operator*() [3/6]

◆ operator*() [4/6]

FloatComplexMatrix operator* ( const FloatComplexMatrix a,
const FloatComplexMatrix b 
)

Definition at line 3475 of file fCMatrix.cc.

References xgemm().

◆ operator*() [5/6]

FloatComplexMatrix operator* ( const FloatComplexMatrix m,
const FloatMatrix a 
)

Definition at line 3304 of file fCMatrix.cc.

References Array< T >::columns(), imag(), m, min(), and real().

◆ operator*() [6/6]

FloatComplexMatrix operator* ( const FloatMatrix m,
const FloatComplexMatrix a 
)

Definition at line 3313 of file fCMatrix.cc.

References Array< T >::columns(), imag(), m, min(), real(), and Array< T >::rows().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const FloatComplexMatrix a 
)

Definition at line 3195 of file fCMatrix.cc.

◆ operator>>()

std::istream& operator>> ( std::istream &  is,
FloatComplexMatrix a 
)

Definition at line 3211 of file fCMatrix.cc.

◆ Sylvester()

◆ xgemm()