GNU Octave  8.1.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 3507 of file fCMatrix.cc.

Function Documentation

◆ conj()

Definition at line 678 of file fCMatrix.cc.

Referenced by get_blas_trans_arg(), Givens(), FloatComplexMatrix::hermitian(), and xgemm().

◆ 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 3369 of file fCMatrix.cc.

References conj().

Referenced by xgemm().

◆ Givens()

FloatComplexMatrix Givens ( const FloatComplex x,
const FloatComplex y 
)

◆ linspace()

◆ max() [1/3]

FloatComplexMatrix max ( const FloatComplex c,
const FloatComplexMatrix m 
)

Definition at line 3584 of file fCMatrix.cc.

References EMPTY_RETURN_CHECK, and m.

Referenced by FloatComplexMatrix::lssolve(), max(), norm1(), and FloatComplexMatrix::pseudo_inverse().

◆ max() [2/3]

◆ max() [3/3]

FloatComplexMatrix max ( const FloatComplexMatrix m,
const FloatComplex c 
)

Definition at line 3604 of file fCMatrix.cc.

References m, and max().

◆ min() [1/3]

FloatComplexMatrix min ( const FloatComplex c,
const FloatComplexMatrix m 
)

Definition at line 3512 of file fCMatrix.cc.

References EMPTY_RETURN_CHECK, and m.

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 3532 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 3700 of file fCMatrix.cc.

◆ mx_el_and() [2/3]

boolMatrix mx_el_and ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3697 of file fCMatrix.cc.

◆ mx_el_and() [3/3]

boolMatrix mx_el_and ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3703 of file fCMatrix.cc.

◆ mx_el_eq() [1/3]

boolMatrix mx_el_eq ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3699 of file fCMatrix.cc.

◆ mx_el_eq() [2/3]

boolMatrix mx_el_eq ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3696 of file fCMatrix.cc.

◆ mx_el_eq() [3/3]

boolMatrix mx_el_eq ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3702 of file fCMatrix.cc.

◆ mx_el_ge() [1/3]

boolMatrix mx_el_ge ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3699 of file fCMatrix.cc.

◆ mx_el_ge() [2/3]

boolMatrix mx_el_ge ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3696 of file fCMatrix.cc.

◆ mx_el_ge() [3/3]

boolMatrix mx_el_ge ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3702 of file fCMatrix.cc.

◆ mx_el_gt() [1/3]

boolMatrix mx_el_gt ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3699 of file fCMatrix.cc.

◆ mx_el_gt() [2/3]

boolMatrix mx_el_gt ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3696 of file fCMatrix.cc.

◆ mx_el_gt() [3/3]

boolMatrix mx_el_gt ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3702 of file fCMatrix.cc.

◆ mx_el_le() [1/3]

boolMatrix mx_el_le ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3699 of file fCMatrix.cc.

◆ mx_el_le() [2/3]

boolMatrix mx_el_le ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3696 of file fCMatrix.cc.

◆ mx_el_le() [3/3]

boolMatrix mx_el_le ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3702 of file fCMatrix.cc.

◆ mx_el_lt() [1/3]

boolMatrix mx_el_lt ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3699 of file fCMatrix.cc.

◆ mx_el_lt() [2/3]

boolMatrix mx_el_lt ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3696 of file fCMatrix.cc.

◆ mx_el_lt() [3/3]

boolMatrix mx_el_lt ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3702 of file fCMatrix.cc.

◆ mx_el_ne() [1/3]

boolMatrix mx_el_ne ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3699 of file fCMatrix.cc.

◆ mx_el_ne() [2/3]

boolMatrix mx_el_ne ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3696 of file fCMatrix.cc.

◆ mx_el_ne() [3/3]

boolMatrix mx_el_ne ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3702 of file fCMatrix.cc.

◆ mx_el_or() [1/3]

boolMatrix mx_el_or ( const FloatComplex s,
const FloatComplexMatrix m 
)

Definition at line 3700 of file fCMatrix.cc.

◆ mx_el_or() [2/3]

boolMatrix mx_el_or ( const FloatComplexMatrix m,
const FloatComplex s 
)

Definition at line 3697 of file fCMatrix.cc.

◆ mx_el_or() [3/3]

boolMatrix mx_el_or ( const FloatComplexMatrix m1,
const FloatComplexMatrix m2 
)

Definition at line 3703 of file fCMatrix.cc.

◆ norm1()

◆ operator*() [1/6]

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

Definition at line 2652 of file fCMatrix.cc.

◆ operator*() [2/6]

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

Definition at line 2659 of file fCMatrix.cc.

◆ operator*() [3/6]

◆ operator*() [4/6]

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

Definition at line 3499 of file fCMatrix.cc.

References xgemm().

◆ operator*() [5/6]

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

Definition at line 3328 of file fCMatrix.cc.

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

◆ operator*() [6/6]

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

◆ operator<<()

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

Definition at line 3219 of file fCMatrix.cc.

◆ operator>>()

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

Definition at line 3235 of file fCMatrix.cc.

◆ Sylvester()

◆ xgemm()