Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

matmath.cc File Reference

#include "matmath.h"
#include "Amath.h"

Go to the source code of this file.

Functions

int min (int a, int b)
int max (int a, int b)
int length (int a, int b)
v_index_mode ResultModeMax (const v_index_mode a, const v_index_mode b)
v_index_mode ResultModeMin (const v_index_mode a, const v_index_mode b)
int ResultIndexMax (const int i1, const int i2)
int ResultIndexMin (const int i1, const int i2)
void norm_add (double x)
void norm_add (const Complex &x)
void norm_bigger (double x)
void norm_bigger (const Complex &x)
double max_norm (const real_vector &x)
double max_norm (const complex_vector &x)
double norm (const real_matrix &x)
double norm (const complex_matrix &x)
double max_norm (const real_matrix &x)
double max_norm (const complex_matrix &x)
real_vector operator+ (const real_vector &x, const real_vector &y)
real_vector operator- (const real_vector &x, const real_vector &y)
double operator * (const real_vector &x, const real_vector &y)
complex_vector operator+ (const complex_vector &x, const complex_vector &y)
complex_vector operator- (const complex_vector &x, const complex_vector &y)
Complex operator * (const complex_vector &x, const complex_vector &y)
complex_vector operator+ (const real_vector &x, const complex_vector &y)
complex_vector operator- (const real_vector &x, const complex_vector &y)
complex_vector operator- (const complex_vector &x, const real_vector &y)
Complex operator * (const real_vector &x, const complex_vector &y)
real_vector scalemult (const real_vector &x, const real_vector &y)
real_vector scalediv (const real_vector &x, const real_vector &y)
complex_vector scalemult (const complex_vector &x, const complex_vector &y)
complex_vector scalediv (const complex_vector &x, const complex_vector &y)
complex_vector scalemult (const real_vector &x, const complex_vector &y)
complex_vector scalediv (const real_vector &x, const complex_vector &y)
complex_vector scalediv (const complex_vector &x, const real_vector &y)
real_vector operator+ (const real_vector &v, const double s)
real_vector operator- (const real_vector &v, const double s)
real_vector operator * (const real_vector &v, const double s)
real_vector operator/ (const real_vector &v, const double s)
complex_vector operator+ (const complex_vector &v, const Complex s)
complex_vector operator- (const complex_vector &v, const Complex s)
complex_vector operator * (const complex_vector &v, const Complex s)
complex_vector operator/ (const complex_vector &v, const Complex s)
complex_vector operator+ (const real_vector &v, const Complex s)
complex_vector operator- (const real_vector &v, const Complex s)
complex_vector operator * (const real_vector &v, const Complex s)
complex_vector operator/ (const real_vector &v, const Complex s)
complex_matrix transpose (const complex_matrix &U)
real_matrix transpose (const real_matrix &X)
complex_matrix operator+ (const complex_matrix &B, const complex_matrix &C)
complex_matrix operator+ (const real_matrix &B, const complex_matrix &C)
complex_matrix operator+ (const complex_matrix &B, const real_matrix &C)
real_matrix operator+ (const real_matrix &B, const real_matrix &C)
complex_matrix operator- (const complex_matrix &B, const complex_matrix &C)
complex_matrix operator- (const real_matrix &B, const complex_matrix &C)
complex_matrix operator- (const complex_matrix &B, const real_matrix &C)
real_matrix operator- (const real_matrix &B, const real_matrix &C)
complex_matrix operator * (const complex_matrix &B, const complex_matrix &C)
complex_matrix operator * (const real_matrix &B, const complex_matrix &C)
complex_matrix operator * (const complex_matrix &B, const real_matrix &C)
real_matrix operator * (const real_matrix &B, const real_matrix &C)
real_matrix operator+ (const real_matrix &A, const double s)
real_matrix operator- (const real_matrix &A, const double s)
real_matrix operator * (const real_matrix &A, const double s)
real_matrix operator/ (const real_matrix &A, const double s)
complex_matrix operator+ (const complex_matrix &A, const Complex s)
complex_matrix operator- (const complex_matrix &A, const Complex s)
complex_matrix operator * (const complex_matrix &A, const Complex s)
complex_matrix operator/ (const complex_matrix &A, const Complex s)
complex_matrix operator+ (const real_matrix &A, const Complex s)
complex_matrix operator- (const real_matrix &A, const Complex s)
complex_matrix operator * (const real_matrix &A, const Complex s)
complex_matrix operator/ (const real_matrix &A, const Complex s)
int lookup (const double x, const real_matrix &A, const int row)
int lookup (const double x, const complex_matrix &A, const int row)
double linterp (const double x, const real_matrix &A, const int n1, const int n2)
Complex linterp (const double x, const complex_matrix &A, const int n1, const int n2)
real_vector linterp (const double x, const real_matrix &A, const int n)
complex_vector linterp (const double x, const complex_matrix &A, const int n)
real_matrixscalerow (const int n, real_matrix &X, const double y)
complex_matrixscalerow (const int n, complex_matrix &U, const Complex v)
real_vector row (const int n, const real_matrix &X)
real_vector col (const int n, const real_matrix &X)
complex_vector row (const int n, const complex_matrix &X)
complex_vector col (const int n, const complex_matrix &X)
real_vector operator * (const real_matrix &X, const real_vector &y)
complex_vector operator * (const complex_matrix &U, const complex_vector &v)
complex_vector operator * (const real_matrix &X, const complex_vector &v)
complex_vector operator * (const complex_matrix &U, const real_vector &y)
real_matrix solve (const real_matrix &A, const real_matrix &B)
real_vector solve (const real_matrix &A, const real_vector &b)
int sizecheck (const real_matrix &A, const real_matrix &B, int &n, int &m)
void augment (real_matrix &C, const real_matrix &A, const real_matrix &B)
void scale (real_matrix &C)
int triangle (real_matrix &C)
void backsub (real_matrix &C)
void copyresult (real_matrix &X, const real_matrix &C)
int pivot (int i, real_matrix &C)
real_matrix inverse (const real_matrix &A)
complex_matrix solve (const complex_matrix &A, const complex_matrix &B)
complex_vector solve (const complex_matrix &A, const complex_vector &b)
int sizecheck (const complex_matrix &A, const complex_matrix &B, int &n, int &m)
void augment (complex_matrix &C, const complex_matrix &A, const complex_matrix &B)
void scale (complex_matrix &C)
int triangle (complex_matrix &C)
void backsub (complex_matrix &C)
void copyresult (complex_matrix &X, const complex_matrix &C)
int pivot (int i, complex_matrix &C)
complex_matrix inverse (const complex_matrix &A)
void IplusM (Matrix &U, double s, const Matrix &V)
void IminusM (Matrix &U, double s, const Matrix &V)
void MMdagger (Matrix &U, const Matrix &V)
void MAMdagger (Matrix &U, const Matrix &V, const Matrix &W)

Variables

double norm_accumulator


Function Documentation

void IminusM ( Matrix & U,
double s,
const Matrix & V )
 

Definition at line 1346 of file matmath.cc.

Referenced by sdata::sdata().

void IplusM ( Matrix & U,
double s,
const Matrix & V )
 

Definition at line 1333 of file matmath.cc.

Referenced by sdata::sdata().

void MAMdagger ( Matrix & U,
const Matrix & V,
const Matrix & W )
 

Definition at line 1374 of file matmath.cc.

Referenced by sdata::sdata().

void MMdagger ( Matrix & U,
const Matrix & V )
 

Definition at line 1359 of file matmath.cc.

int ResultIndexMax ( const int i1,
const int i2 ) [inline]
 

Definition at line 76 of file matmath.cc.

Referenced by operator+(), operator-(), scalediv(), and scalemult().

int ResultIndexMin ( const int i1,
const int i2 ) [inline]
 

Definition at line 80 of file matmath.cc.

v_index_mode ResultModeMax ( const v_index_mode a,
const v_index_mode b ) [static]
 

Definition at line 60 of file matmath.cc.

v_index_mode ResultModeMin ( const v_index_mode a,
const v_index_mode b ) [static]
 

Definition at line 68 of file matmath.cc.

void augment ( complex_matrix & C,
const complex_matrix & A,
const complex_matrix & B ) [static]
 

Definition at line 1214 of file matmath.cc.

Referenced by solve().

void augment ( real_matrix & C,
const real_matrix & A,
const real_matrix & B ) [static]
 

Definition at line 965 of file matmath.cc.

void backsub ( complex_matrix & C ) [static]
 

Definition at line 1302 of file matmath.cc.

Referenced by solve().

void backsub ( real_matrix & C ) [static]
 

Definition at line 1053 of file matmath.cc.

complex_vector col ( const int n,
const complex_matrix & X )
 

Definition at line 797 of file matmath.cc.

Referenced by operator *(), and solve().

real_vector col ( const int n,
const real_matrix & X )
 

Definition at line 779 of file matmath.cc.

void copyresult ( complex_matrix & X,
const complex_matrix & C ) [static]
 

Definition at line 1319 of file matmath.cc.

Referenced by solve().

void copyresult ( real_matrix & X,
const real_matrix & C ) [static]
 

Definition at line 1070 of file matmath.cc.

complex_matrix inverse ( const complex_matrix & A )
 

Definition at line 1167 of file matmath.cc.

Referenced by mixer::analyzer::calc_T(), deembed::recalc_S(), ydata::ydata(), and zdata::zdata().

real_matrix inverse ( const real_matrix & A )
 

Definition at line 918 of file matmath.cc.

int length ( int a,
int b ) [inline]
 

Definition at line 57 of file matmath.cc.

complex_vector linterp ( const double double,
const complex_matrix & A,
const int int )
 

Definition at line 723 of file matmath.cc.

real_vector linterp ( const double double,
const real_matrix & A,
const int int )
 

Definition at line 704 of file matmath.cc.

Complex linterp ( const double double,
const complex_matrix & A,
const int int,
const int int )
 

Definition at line 684 of file matmath.cc.

double linterp ( const double double,
const real_matrix & A,
const int int,
const int int )
 

Definition at line 664 of file matmath.cc.

int lookup ( const double x,
const complex_matrix & A,
const int row )
 

Definition at line 644 of file matmath.cc.

Referenced by linterp().

int lookup ( const double double,
const real_matrix & A,
const int int )
 

Definition at line 626 of file matmath.cc.

int max ( int a,
int b ) [inline]
 

Definition at line 56 of file matmath.cc.

double max_norm ( const complex_matrix & x )
 

Definition at line 160 of file matmath.cc.

Referenced by vabs_max().

double max_norm ( const real_matrix & x )
 

Definition at line 147 of file matmath.cc.

double max_norm ( const complex_vector & x )
 

Definition at line 111 of file matmath.cc.

double max_norm ( const real_vector & x )
 

Definition at line 101 of file matmath.cc.

int min ( int a,
int b ) [inline]
 

Definition at line 55 of file matmath.cc.

double norm ( const complex_matrix & x )
 

Definition at line 134 of file matmath.cc.

Referenced by ampdata::Rn(), sdata::SdB(), abstract_error_func::calc_f(), ampdata::center(), complex_vector::findmax(), ampdata::gamma_opt(), ampdata::k(), sis_basic_device::large_signal(), powell::minimize(), ampdata::noise_measure(), norm_add(), norm_bigger(), default_norm::operator()(), pivot(), ampdata::radius(), slot_antenna::recalc(), twin_slot_antenna::recalc_S(), integrator::romberg_closed(), integrator::romberg_open(), complex_vector::shrink(), sis_basic_device::small_signal(), newton::solve(), ampdata::t_min(), sdata::tn(), S_interp::touchstone(), and ampdata::unconditionally_stable().

double norm ( const real_matrix & x )
 

Definition at line 121 of file matmath.cc.

void norm_add ( const Complex & x ) [inline, static]
 

Definition at line 92 of file matmath.cc.

Referenced by norm().

void norm_add ( double x ) [inline, static]
 

Definition at line 89 of file matmath.cc.

void norm_bigger ( const Complex & x ) [inline, static]
 

Definition at line 98 of file matmath.cc.

Referenced by max_norm().

void norm_bigger ( double x ) [inline, static]
 

Definition at line 95 of file matmath.cc.

complex_vector operator * ( const complex_matrix & U,
const real_vector & y )
 

Definition at line 824 of file matmath.cc.

complex_vector operator * ( const real_matrix & X,
const complex_vector & v )
 

Definition at line 819 of file matmath.cc.

complex_vector operator * ( const complex_matrix & U,
const complex_vector & v )
 

Definition at line 814 of file matmath.cc.

real_vector operator * ( const real_matrix & X,
const real_vector & y )
 

Definition at line 809 of file matmath.cc.

complex_matrix operator * ( const real_matrix & A,
const Complex double )
 

Definition at line 613 of file matmath.cc.

complex_matrix operator * ( const complex_matrix & A,
const Complex Complex )
 

Definition at line 601 of file matmath.cc.

real_matrix operator * ( const real_matrix & A,
const double double )
 

Definition at line 589 of file matmath.cc.

real_matrix operator * ( const real_matrix & B,
const real_matrix & C )
 

Definition at line 559 of file matmath.cc.

complex_matrix operator * ( const complex_matrix & B,
const real_matrix & C )
 

Definition at line 539 of file matmath.cc.

complex_matrix operator * ( const real_matrix & B,
const complex_matrix & C )
 

Definition at line 519 of file matmath.cc.

complex_matrix operator * ( const complex_matrix & B,
const complex_matrix & C )
 

Definition at line 499 of file matmath.cc.

complex_vector operator * ( const real_vector & v,
const Complex double )
 

Definition at line 431 of file matmath.cc.

complex_vector operator * ( const complex_vector & v,
const Complex Complex )
 

Definition at line 419 of file matmath.cc.

real_vector operator * ( const real_vector & v,
const double double )
 

Definition at line 407 of file matmath.cc.

Complex operator * ( const real_vector & x,
const complex_vector & y )
 

Definition at line 289 of file matmath.cc.

Complex operator * ( const complex_vector & x,
const complex_vector & y )
 

Definition at line 240 of file matmath.cc.

double operator * ( const real_vector & x,
const real_vector & y )
 

Definition at line 204 of file matmath.cc.

complex_matrix operator+ ( const real_matrix & A,
const Complex double )
 

Definition at line 607 of file matmath.cc.

complex_matrix operator+ ( const complex_matrix & A,
const Complex Complex )
 

Definition at line 595 of file matmath.cc.

real_matrix operator+ ( const real_matrix & A,
const double double )
 

Definition at line 583 of file matmath.cc.

real_matrix operator+ ( const real_matrix & B,
const real_matrix & C )
 

Definition at line 484 of file matmath.cc.

complex_matrix operator+ ( const complex_matrix & B,
const real_matrix & C )
 

Definition at line 481 of file matmath.cc.

complex_matrix operator+ ( const real_matrix & B,
const complex_matrix & C )
 

Definition at line 478 of file matmath.cc.

complex_matrix operator+ ( const complex_matrix & B,
const complex_matrix & C )
 

Definition at line 475 of file matmath.cc.

complex_vector operator+ ( const real_vector & v,
const Complex double )
 

Definition at line 425 of file matmath.cc.

complex_vector operator+ ( const complex_vector & v,
const Complex Complex )
 

Definition at line 413 of file matmath.cc.

real_vector operator+ ( const real_vector & v,
const double double )
 

Definition at line 401 of file matmath.cc.

complex_vector operator+ ( const real_vector & x,
const complex_vector & y )
 

Definition at line 250 of file matmath.cc.

complex_vector operator+ ( const complex_vector & x,
const complex_vector & y )
 

Definition at line 214 of file matmath.cc.

real_vector operator+ ( const real_vector & x,
const real_vector & y )
 

Definition at line 178 of file matmath.cc.

complex_matrix operator- ( const real_matrix & A,
const Complex double )
 

Definition at line 610 of file matmath.cc.

complex_matrix operator- ( const complex_matrix & A,
const Complex Complex )
 

Definition at line 598 of file matmath.cc.

real_matrix operator- ( const real_matrix & A,
const double double )
 

Definition at line 586 of file matmath.cc.

real_matrix operator- ( const real_matrix & B,
const real_matrix & C )
 

Definition at line 496 of file matmath.cc.

complex_matrix operator- ( const complex_matrix & B,
const real_matrix & C )
 

Definition at line 493 of file matmath.cc.

complex_matrix operator- ( const real_matrix & B,
const complex_matrix & C )
 

Definition at line 490 of file matmath.cc.

complex_matrix operator- ( const complex_matrix & B,
const complex_matrix & C )
 

Definition at line 487 of file matmath.cc.

complex_vector operator- ( const real_vector & v,
const Complex double )
 

Definition at line 428 of file matmath.cc.

complex_vector operator- ( const complex_vector & v,
const Complex Complex )
 

Definition at line 416 of file matmath.cc.

real_vector operator- ( const real_vector & v,
const double double )
 

Definition at line 404 of file matmath.cc.

complex_vector operator- ( const complex_vector & x,
const real_vector & y )
 

Definition at line 276 of file matmath.cc.

complex_vector operator- ( const real_vector & x,
const complex_vector & y )
 

Definition at line 263 of file matmath.cc.

complex_vector operator- ( const complex_vector & x,
const complex_vector & y )
 

Definition at line 227 of file matmath.cc.

real_vector operator- ( const real_vector & x,
const real_vector & y )
 

Definition at line 191 of file matmath.cc.

complex_matrix operator/ ( const real_matrix & A,
const Complex double )
 

Definition at line 616 of file matmath.cc.

complex_matrix operator/ ( const complex_matrix & A,
const Complex Complex )
 

Definition at line 604 of file matmath.cc.

real_matrix operator/ ( const real_matrix & A,
const double double )
 

Definition at line 592 of file matmath.cc.

complex_vector operator/ ( const real_vector & v,
const Complex double )
 

Definition at line 434 of file matmath.cc.

complex_vector operator/ ( const complex_vector & v,
const Complex Complex )
 

Definition at line 422 of file matmath.cc.

real_vector operator/ ( const real_vector & v,
const double double )
 

Definition at line 410 of file matmath.cc.

int pivot ( int i,
complex_matrix & C ) [static]
 

Definition at line 1278 of file matmath.cc.

Referenced by triangle().

int pivot ( int i,
real_matrix & C ) [static]
 

Definition at line 1029 of file matmath.cc.

complex_vector row ( const int n,
const complex_matrix & X )
 

Definition at line 788 of file matmath.cc.

Referenced by ckdata::calc(), mixer::balancer::i_state(), and mixer::initialize_operating_state().

real_vector row ( const int n,
const real_matrix & X )
 

Definition at line 770 of file matmath.cc.

void scale ( complex_matrix & C ) [static]
 

Definition at line 1235 of file matmath.cc.

Referenced by solve().

void scale ( real_matrix & C ) [static]
 

Definition at line 986 of file matmath.cc.

complex_vector scalediv ( const complex_vector & x,
const real_vector & y )
 

Definition at line 383 of file matmath.cc.

complex_vector scalediv ( const real_vector & x,
const complex_vector & y )
 

Definition at line 369 of file matmath.cc.

complex_vector scalediv ( const complex_vector & x,
const complex_vector & y )
 

Definition at line 341 of file matmath.cc.

real_vector scalediv ( const real_vector & x,
const real_vector & y )
 

Definition at line