GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
CMatrix.h File Reference
#include "octave-config.h"
#include "CNDArray.h"
#include "DET.h"
#include "MArray.h"
#include "MDiagArray2.h"
#include "MatrixType.h"
#include "mx-defs.h"
#include "mx-op-decl.h"
#include "oct-cmplx.h"

Go to the source code of this file.

Classes

class  ComplexMatrix
 

Functions

ComplexMatrix conj (const ComplexMatrix &a)
 
ComplexMatrix Givens (const Complex &, const Complex &)
 
ComplexMatrix linspace (const ComplexColumnVector &x1, const ComplexColumnVector &x2, octave_idx_type n)
 
ComplexMatrix max (const Complex &c, const ComplexMatrix &m)
 
ComplexMatrix max (const ComplexMatrix &a, const ComplexMatrix &b)
 
ComplexMatrix max (const ComplexMatrix &m, const Complex &c)
 
ComplexMatrix min (const Complex &c, const ComplexMatrix &m)
 
ComplexMatrix min (const ComplexMatrix &a, const ComplexMatrix &b)
 
ComplexMatrix min (const ComplexMatrix &m, const Complex &c)
 
boolMatrix mx_el_and (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_and (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_and (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_eq (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_eq (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_eq (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_ge (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_ge (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_ge (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_gt (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_gt (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_gt (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_le (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_le (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_le (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_lt (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_lt (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_lt (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_ne (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_ne (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_ne (const ComplexMatrix &, const ComplexMatrix &)
 
boolMatrix mx_el_or (const Complex &, const ComplexMatrix &)
 
boolMatrix mx_el_or (const ComplexMatrix &, const Complex &)
 
boolMatrix mx_el_or (const ComplexMatrix &, const ComplexMatrix &)
 
ComplexMatrix operator* (const ColumnVector &a, const ComplexRowVector &b)
 
ComplexMatrix operator* (const Complex &x, const ComplexMatrix &y)
 
ComplexMatrix operator* (const ComplexColumnVector &a, const ComplexRowVector &b)
 
ComplexMatrix operator* (const ComplexColumnVector &a, const RowVector &b)
 
ComplexMatrix operator* (const ComplexMatrix &, const ComplexMatrix &)
 
ComplexMatrix operator* (const ComplexMatrix &, const Matrix &)
 
ComplexMatrix operator* (const ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator* (const Matrix &, const ComplexMatrix &)
 
ComplexMatrix operator*= (ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator+ (const Complex &x, const ComplexMatrix &y)
 
ComplexMatrix operator+ (const ComplexMatrix &x)
 
ComplexMatrix operator+ (const ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator+ (const ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix operator+= (ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator+= (ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix operator- (const Complex &x, const ComplexMatrix &y)
 
ComplexMatrix operator- (const ComplexMatrix &x)
 
ComplexMatrix operator- (const ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator- (const ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix operator-= (ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator-= (ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix operator/ (const Complex &x, const ComplexMatrix &y)
 
ComplexMatrix operator/ (const ComplexMatrix &x, const Complex &y)
 
ComplexMatrix operator/= (ComplexMatrix &x, const Complex &y)
 
ComplexMatrix product (const ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix product_eq (ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix quotient (const ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix quotient_eq (ComplexMatrix &x, const ComplexMatrix &y)
 
ComplexMatrix Sylvester (const ComplexMatrix &, const ComplexMatrix &, const ComplexMatrix &)
 
ComplexMatrix xgemm (const ComplexMatrix &a, const ComplexMatrix &b, blas_trans_type transa=blas_no_trans, blas_trans_type transb=blas_no_trans)
 

Function Documentation

◆ conj()

◆ Givens()

ComplexMatrix Givens ( const Complex x,
const Complex y 
)

Definition at line 3226 of file CMatrix.cc.

References conj(), Array< T, Alloc >::elem(), F77_CONST_DBLE_CMPLX_ARG, F77_DBLE_CMPLX_ARG, F77_FUNC(), and x.

Referenced by Fgivens().

◆ linspace()

ComplexMatrix linspace ( const ComplexColumnVector x1,
const ComplexColumnVector x2,
octave_idx_type  n 
)

Definition at line 3629 of file CMatrix.cc.

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

◆ max() [1/3]

ComplexMatrix max ( const Complex c,
const ComplexMatrix m 
)

Definition at line 3553 of file CMatrix.cc.

References EMPTY_RETURN_CHECK, and m.

Referenced by ComplexMatrix::lssolve(), max(), and ComplexMatrix::pseudo_inverse().

◆ max() [2/3]

ComplexMatrix max ( const ComplexMatrix a,
const ComplexMatrix b 
)

◆ max() [3/3]

ComplexMatrix max ( const ComplexMatrix m,
const Complex c 
)

Definition at line 3573 of file CMatrix.cc.

References m, and max().

◆ min() [1/3]

ComplexMatrix min ( const Complex c,
const ComplexMatrix m 
)

Definition at line 3481 of file CMatrix.cc.

References EMPTY_RETURN_CHECK, and m.

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

◆ min() [2/3]

ComplexMatrix min ( const ComplexMatrix a,
const ComplexMatrix b 
)

◆ min() [3/3]

ComplexMatrix min ( const ComplexMatrix m,
const Complex c 
)

Definition at line 3501 of file CMatrix.cc.

References m, and min().

◆ mx_el_and() [1/3]

boolMatrix mx_el_and ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3658 of file CMatrix.cc.

◆ mx_el_and() [2/3]

boolMatrix mx_el_and ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3655 of file CMatrix.cc.

◆ mx_el_and() [3/3]

boolMatrix mx_el_and ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3661 of file CMatrix.cc.

◆ mx_el_eq() [1/3]

boolMatrix mx_el_eq ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3657 of file CMatrix.cc.

◆ mx_el_eq() [2/3]

boolMatrix mx_el_eq ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3654 of file CMatrix.cc.

◆ mx_el_eq() [3/3]

boolMatrix mx_el_eq ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3660 of file CMatrix.cc.

◆ mx_el_ge() [1/3]

boolMatrix mx_el_ge ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3657 of file CMatrix.cc.

◆ mx_el_ge() [2/3]

boolMatrix mx_el_ge ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3654 of file CMatrix.cc.

◆ mx_el_ge() [3/3]

boolMatrix mx_el_ge ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3660 of file CMatrix.cc.

◆ mx_el_gt() [1/3]

boolMatrix mx_el_gt ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3657 of file CMatrix.cc.

◆ mx_el_gt() [2/3]

boolMatrix mx_el_gt ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3654 of file CMatrix.cc.

◆ mx_el_gt() [3/3]

boolMatrix mx_el_gt ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3660 of file CMatrix.cc.

◆ mx_el_le() [1/3]

boolMatrix mx_el_le ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3657 of file CMatrix.cc.

◆ mx_el_le() [2/3]

boolMatrix mx_el_le ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3654 of file CMatrix.cc.

◆ mx_el_le() [3/3]

boolMatrix mx_el_le ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3660 of file CMatrix.cc.

◆ mx_el_lt() [1/3]

boolMatrix mx_el_lt ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3657 of file CMatrix.cc.

◆ mx_el_lt() [2/3]

boolMatrix mx_el_lt ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3654 of file CMatrix.cc.

◆ mx_el_lt() [3/3]

boolMatrix mx_el_lt ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3660 of file CMatrix.cc.

◆ mx_el_ne() [1/3]

boolMatrix mx_el_ne ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3657 of file CMatrix.cc.

◆ mx_el_ne() [2/3]

boolMatrix mx_el_ne ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3654 of file CMatrix.cc.

◆ mx_el_ne() [3/3]

boolMatrix mx_el_ne ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3660 of file CMatrix.cc.

◆ mx_el_or() [1/3]

boolMatrix mx_el_or ( const Complex s,
const ComplexMatrix m 
)

Definition at line 3658 of file CMatrix.cc.

◆ mx_el_or() [2/3]

boolMatrix mx_el_or ( const ComplexMatrix m,
const Complex s 
)

Definition at line 3655 of file CMatrix.cc.

◆ mx_el_or() [3/3]

boolMatrix mx_el_or ( const ComplexMatrix m1,
const ComplexMatrix m2 
)

Definition at line 3661 of file CMatrix.cc.

◆ operator*() [1/8]

ComplexMatrix operator* ( const ColumnVector a,
const ComplexRowVector b 
)

Definition at line 2623 of file CMatrix.cc.

◆ operator*() [2/8]

ComplexMatrix operator* ( const Complex x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator*() [3/8]

◆ operator*() [4/8]

ComplexMatrix operator* ( const ComplexColumnVector a,
const RowVector b 
)

Definition at line 2630 of file CMatrix.cc.

◆ operator*() [5/8]

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

Definition at line 3469 of file CMatrix.cc.

References xgemm().

◆ operator*() [6/8]

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

Definition at line 3297 of file CMatrix.cc.

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

◆ operator*() [7/8]

ComplexMatrix operator* ( const ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator*() [8/8]

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

Definition at line 3306 of file CMatrix.cc.

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

◆ operator*=()

ComplexMatrix operator*= ( ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator+() [1/4]

ComplexMatrix operator+ ( const Complex x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator+() [2/4]

ComplexMatrix operator+ ( const ComplexMatrix x)
inline

Definition at line 505 of file CMatrix.h.

◆ operator+() [3/4]

ComplexMatrix operator+ ( const ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator+() [4/4]

ComplexMatrix operator+ ( const ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator+=() [1/2]

ComplexMatrix operator+= ( ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator+=() [2/2]

ComplexMatrix operator+= ( ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator-() [1/4]

ComplexMatrix operator- ( const Complex x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator-() [2/4]

ComplexMatrix operator- ( const ComplexMatrix x)
inline

Definition at line 505 of file CMatrix.h.

◆ operator-() [3/4]

ComplexMatrix operator- ( const ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator-() [4/4]

ComplexMatrix operator- ( const ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator-=() [1/2]

ComplexMatrix operator-= ( ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator-=() [2/2]

ComplexMatrix operator-= ( ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator/() [1/2]

ComplexMatrix operator/ ( const Complex x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator/() [2/2]

ComplexMatrix operator/ ( const ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ operator/=()

ComplexMatrix operator/= ( ComplexMatrix x,
const Complex y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ product()

ComplexMatrix product ( const ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ product_eq()

ComplexMatrix product_eq ( ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ quotient()

ComplexMatrix quotient ( const ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ quotient_eq()

ComplexMatrix quotient_eq ( ComplexMatrix x,
const ComplexMatrix y 
)
inline

Definition at line 505 of file CMatrix.h.

◆ Sylvester()

ComplexMatrix Sylvester ( const ComplexMatrix a,
const ComplexMatrix b,
const ComplexMatrix c 
)

◆ xgemm()