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

matmath.h File Reference

#include "vector.h"
#include "table.h"

Go to the source code of this file.

Defines

#define DEFAULT_VECTOR_SIZE   0
#define DEFAULT_MATRIX_SIZE   0

Typedefs

typedef complex_vector Vector
typedef complex_matrix Matrix

Functions

complex_vector conj (const complex_vector &u)
real_vector conj (const real_vector &x)
real_vector real (const complex_vector &u)
real_vector imaginary (const complex_vector &u)
complex_vector operator+ (const complex_vector &u)
real_vector operator+ (const real_vector &x)
complex_vector operator- (const complex_vector &u)
real_vector operator- (const real_vector &x)
complex_vector operator+ (const complex_vector &, const complex_vector &)
complex_vector operator+ (const real_vector &, const complex_vector &)
real_vector operator+ (const real_vector &, const real_vector &)
complex_vector operator+ (const complex_vector &u, const real_vector &x)
complex_vector operator- (const complex_vector &, const complex_vector &)
complex_vector operator- (const real_vector &, const complex_vector &)
complex_vector operator- (const complex_vector &, const real_vector &)
real_vector operator- (const real_vector &, const real_vector &)
complex_vector scalemult (const complex_vector &, const complex_vector &)
complex_vector scalemult (const real_vector &, const complex_vector &)
real_vector scalemult (const real_vector &, const real_vector &)
complex_vector scalemult (const complex_vector &u, const real_vector &x)
complex_vector scalediv (const complex_vector &, const complex_vector &)
complex_vector scalediv (const real_vector &, const complex_vector &)
complex_vector scalediv (const complex_vector &, const real_vector &)
real_vector scalediv (const real_vector &, const real_vector &)
Complex operator * (const complex_vector &, const complex_vector &)
Complex operator * (const real_vector &, const complex_vector &)
double operator * (const real_vector &, const real_vector &)
Complex operator * (const complex_vector &u, const real_vector &x)
Complex dot (const complex_vector &u, const complex_vector &v)
Complex dot (const complex_vector &u, const real_vector &x)
Complex dot (const real_vector &x, const complex_vector &v)
double dot (const real_vector &x, const real_vector &y)
complex_vector operator+ (const complex_vector &, const Complex)
complex_vector operator+ (const real_vector &, const Complex)
complex_vector operator+ (const Complex s, const complex_vector &v)
complex_vector operator+ (const double s, const complex_vector &v)
complex_vector operator+ (const Complex s, const real_vector &v)
real_vector operator+ (const double s, const real_vector &v)
complex_vector operator- (const complex_vector &, const Complex)
complex_vector operator- (const real_vector &, const Complex)
complex_vector operator * (const complex_vector &, const Complex)
complex_vector operator * (const real_vector &, const Complex)
complex_vector operator * (const Complex s, const complex_vector &v)
complex_vector operator * (const double s, const complex_vector &v)
complex_vector operator * (const Complex s, const real_vector &v)
real_vector operator * (const double s, const real_vector &v)
complex_vector operator/ (const complex_vector &, const Complex)
complex_vector operator/ (const real_vector &, const Complex)
double norm (const real_vector &x)
double norm (const complex_vector &u)
double max_norm (const real_vector &)
double max_norm (const complex_vector &)
real_matrix identity_matrix (const int n, const v_index_mode t=Index_1)
real_matrix identity_matrix (const real_matrix &M)
real_matrix identity_matrix (const complex_matrix &M)
complex_matrix conj (const complex_matrix &U)
real_matrix conj (const real_matrix &X)
complex_matrix transpose (const complex_matrix &U)
real_matrix transpose (const real_matrix &X)
complex_matrix dagger (const complex_matrix &U)
real_matrix dagger (const real_matrix &X)
real_matrix real (const complex_matrix &U)
real_matrix imaginary (const complex_matrix &U)
complex_matrix operator+ (const complex_matrix &U)
real_matrix operator+ (const real_matrix &X)
complex_matrix operator- (const complex_matrix &U)
real_matrix operator- (const real_matrix &X)
complex_matrix operator+ (const complex_matrix &, const complex_matrix &)
complex_matrix operator+ (const real_matrix &, const complex_matrix &)
complex_matrix operator+ (const complex_matrix &, const real_matrix &)
real_matrix operator+ (const real_matrix &, const real_matrix &)
complex_matrix operator- (const complex_matrix &, const complex_matrix &)
complex_matrix operator- (const real_matrix &, const complex_matrix &)
complex_matrix operator- (const complex_matrix &, const real_matrix &)
real_matrix operator- (const real_matrix &, const real_matrix &)
complex_matrix operator * (const complex_matrix &, const complex_matrix &)
complex_matrix operator * (const real_matrix &, const complex_matrix &)
complex_matrix operator * (const complex_matrix &, const real_matrix &)
real_matrix operator * (const real_matrix &, const real_matrix &)
complex_matrix operator+ (const complex_matrix &, const Complex)
complex_matrix operator+ (const real_matrix &, const Complex)
complex_matrix operator+ (const Complex s, const complex_matrix &A)
complex_matrix operator+ (const double s, const complex_matrix &A)
complex_matrix operator+ (const Complex s, const real_matrix &A)
real_matrix operator+ (const double s, const real_matrix &A)
complex_matrix operator- (const complex_matrix &, const Complex)
complex_matrix operator- (const real_matrix &, const Complex)
complex_matrix operator * (const complex_matrix &, const Complex)
complex_matrix operator * (const real_matrix &, const Complex)
complex_matrix operator * (const Complex s, const complex_matrix &A)
complex_matrix operator * (const double s, const complex_matrix &A)
complex_matrix operator * (const Complex s, const real_matrix &A)
real_matrix operator * (const double s, const real_matrix &A)
complex_matrix operator/ (const complex_matrix &, const Complex)
complex_matrix operator/ (const real_matrix &, const Complex)
int lookup (const double, const real_matrix &, const int)
int lookup (const double, const complex_matrix &, const int, const int)
double linterp (const double, const real_matrix &, const int, const int)
complex linterp (const double, const complex_matrix &, const int, const int)
real_vector linterp (const double, const real_matrix &, const int)
complex_vector linterp (const double, const complex_matrix &, const int)
double norm (const real_matrix &)
double norm (const complex_matrix &)
double max_norm (const real_matrix &)
double max_norm (const complex_matrix &)
real_matrixscalerow (const int, real_matrix &, const double)
complex_matrixscalerow (const int, complex_matrix &, const Complex)
real_matrix solve (const real_matrix &A, const real_matrix &B)
complex_matrix solve (const complex_matrix &A, const complex_matrix &B)
real_matrix inverse (const real_matrix &A)
complex_matrix inverse (const complex_matrix &A)
real_vector solve (const real_matrix &A, const real_vector &b)
complex_vector solve (const complex_matrix &A, const complex_vector &b)
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 &U)
complex_vector col (const int n, const complex_matrix &U)
real_matrix columnmatrix (const real_vector &x)
real_matrix rowmatrix (const real_vector &x)
complex_matrix columnmatrix (const complex_vector &x)
complex_matrix rowmatrix (const complex_vector &x)
real_vector operator * (const real_matrix &, const real_vector &)
real_vector operator * (const real_vector &x, const real_matrix &Y)
complex_vector operator * (const complex_matrix &, const complex_vector &)
complex_vector operator * (const complex_matrix &, const real_vector &)
complex_vector operator * (const real_matrix &, const complex_vector &)
complex_vector operator * (const complex_vector &u, const complex_matrix &V)
complex_vector operator * (const real_vector &x, const complex_matrix &V)
complex_vector operator * (const complex_vector &u, const real_matrix &Y)
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)


Define Documentation

#define DEFAULT_MATRIX_SIZE   0
 

Definition at line 265 of file matmath.h.

#define DEFAULT_VECTOR_SIZE   0
 

Definition at line 261 of file matmath.h.


Typedef Documentation

typedef complex_matrix Matrix
 

Definition at line 273 of file matmath.h.

Referenced by S_interp::C().

typedef complex_vector Vector
 

Definition at line 272 of file matmath.h.


Function Documentation

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

Definition at line 1346 of file matmath.cc.

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

Definition at line 1333 of file matmath.cc.

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

Definition at line 1374 of file matmath.cc.

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

Definition at line 1359 of file matmath.cc.

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

Definition at line 797 of file matmath.cc.

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

Definition at line 779 of file matmath.cc.

complex_matrix columnmatrix ( const complex_vector & x ) [inline]
 

Definition at line 534 of file matmath.h.

real_matrix columnmatrix ( const real_vector & x ) [inline]
 

Definition at line 530 of file matmath.h.

real_matrix conj ( const real_matrix & X ) [inline]
 

Definition at line 401 of file matmath.h.

complex_matrix conj ( const complex_matrix & U ) [inline]
 

Definition at line 399 of file matmath.h.

real_vector conj ( const real_vector & x ) [inline]
 

Definition at line 281 of file matmath.h.

complex_vector conj ( const complex_vector & u ) [inline]
 

Definition at line 279 of file matmath.h.

real_matrix dagger ( const real_matrix & X ) [inline]
 

Definition at line 407 of file matmath.h.

Referenced by sdata::change_norm(), ydata::passive_noise(), zdata::passive_noise(), S_interp::touchstone(), ydata::ydata(), and zdata::zdata().

complex_matrix dagger ( const complex_matrix & U ) [inline]
 

Definition at line 405 of file matmath.h.

double dot ( const real_vector & x,
const real_vector & y ) [inline]
 

Definition at line 334 of file matmath.h.

Referenced by norm(), and newton::solve().

Complex dot ( const real_vector & x,
const complex_vector & v ) [inline]
 

Definition at line 332 of file matmath.h.

Complex dot ( const complex_vector & u,
const real_vector & x ) [inline]
 

Definition at line 330 of file matmath.h.

Complex dot ( const complex_vector & u,
const complex_vector & v ) [inline]
 

Definition at line 328 of file matmath.h.

real_matrix identity_matrix ( const complex_matrix & M ) [inline]
 

Definition at line 395 of file matmath.h.

Referenced by S_renormalize(), touchstone_read::Svalue(), touchstone_read::Yvalue(), touchstone_read::Zvalue(), sdata::change_norm(), mixer::balancer::i_state(), touchstone_read::normalize(), S_interp::touchstone(), ydata::ydata(), and zdata::zdata().

real_matrix identity_matrix ( const real_matrix & M ) [inline]
 

Definition at line 393 of file matmath.h.

real_matrix identity_matrix ( const int n,
const v_index_mode t = Index_1 ) [inline]
 

Definition at line 391 of file matmath.h.

real_matrix imaginary ( const complex_matrix & U ) [inline]
 

Definition at line 413 of file matmath.h.

real_vector imaginary ( const complex_vector & u ) [inline]
 

Definition at line 287 of file matmath.h.

complex_matrix inverse ( const complex_matrix & A )
 

Definition at line 1167 of file matmath.cc.

real_matrix inverse ( const real_matrix & A )
 

Definition at line 918 of file matmath.cc.

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

Definition at line 723 of file matmath.cc.

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

Definition at line 704 of file matmath.cc.

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

Definition at line 684 of file matmath.cc.

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

Definition at line 664 of file matmath.cc.

int lookup ( const double,
const complex_matrix &,
const int,
const int )
 

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

Definition at line 626 of file matmath.cc.

double max_norm ( const complex_matrix & x )
 

Definition at line 160 of file matmath.cc.

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.

double norm ( const complex_matrix & x )
 

Definition at line 134 of file matmath.cc.

double norm ( const real_matrix & x )
 

Definition at line 121 of file matmath.cc.

double norm ( const complex_vector & u ) [inline]
 

Definition at line 381 of file matmath.h.

double norm ( const real_vector & x ) [inline]
 

Definition at line 379 of file matmath.h.

complex_vector operator * ( const complex_vector & u,
const real_matrix & Y ) [inline]
 

Definition at line 553 of file matmath.h.

complex_vector operator * ( const real_vector & x,
const complex_matrix & V ) [inline]
 

Definition at line 550 of file matmath.h.

complex_vector operator * ( const complex_vector & u,
const complex_matrix & V ) [inline]
 

Definition at line 547 of file matmath.h.

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 real_vector & y )
 

Definition at line 824 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_vector & x,
const real_matrix & Y ) [inline]
 

Definition at line 540 of file matmath.h.

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

Definition at line 809 of file matmath.cc.

real_matrix operator * ( const double s,
const real_matrix & A ) [inline]
 

Definition at line 470 of file matmath.h.

complex_matrix operator * ( const Complex s,
const real_matrix & A ) [inline]
 

Definition at line 468 of file matmath.h.

complex_matrix operator * ( const double s,
const complex_matrix & A ) [inline]
 

Definition at line 466 of file matmath.h.

complex_matrix operator * ( const Complex s,
const complex_matrix & A ) [inline]
 

Definition at line 464 of file matmath.h.

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

Definition at line 589 of file matmath.cc.

complex_matrix operator * ( const complex_matrix & A,
const Complex ) [inline]
 

Definition at line 462 of file matmath.h.

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.

real_vector operator * ( const double s,
const real_vector & v ) [inline]
 

Definition at line 369 of file matmath.h.

complex_vector operator * ( const Complex s,
const real_vector & v ) [inline]
 

Definition at line 367 of file matmath.h.

complex_vector operator * ( const double s,
const complex_vector & v ) [inline]
 

Definition at line 365 of file matmath.h.

complex_vector operator * ( const Complex s,
const complex_vector & v ) [inline]
 

Definition at line 363 of file matmath.h.

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

Definition at line 407 of file matmath.cc.

complex_vector operator * ( const complex_vector & v,
const Complex ) [inline]
 

Definition at line 361 of file matmath.h.

Complex operator * ( const complex_vector & u,
const real_vector & x ) [inline]
 

Definition at line 326 of file matmath.h.

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

Definition at line 204 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.

real_matrix operator+ ( const double s,
const real_matrix & A ) [inline]
 

Definition at line 450 of file matmath.h.

complex_matrix operator+ ( const Complex s,
const real_matrix & A ) [inline]
 

Definition at line 448 of file matmath.h.

complex_matrix operator+ ( const double s,
const complex_matrix & A ) [inline]
 

Definition at line 446 of file matmath.h.

complex_matrix operator+ ( const Complex s,
const complex_matrix & A ) [inline]
 

Definition at line 444 of file matmath.h.

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

Definition at line 583 of file matmath.cc.

complex_matrix operator+ ( const complex_matrix & A,
const Complex ) [inline]
 

Definition at line 442 of file matmath.h.

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.

real_matrix operator+ ( const real_matrix & X ) [inline]
 

Definition at line 418 of file matmath.h.

complex_matrix operator+ ( const complex_matrix & U ) [inline]
 

Definition at line 417 of file matmath.h.

real_vector operator+ ( const double s,
const real_vector & v ) [inline]
 

Definition at line 349 of file matmath.h.

complex_vector operator+ ( const Complex s,
const real_vector & v ) [inline]
 

Definition at line 347 of file matmath.h.

complex_vector operator+ ( const double s,
const complex_vector & v ) [inline]
 

Definition at line 345 of file matmath.h.

complex_vector operator+ ( const Complex s,
const complex_vector & v ) [inline]
 

Definition at line 343 of file matmath.h.

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

Definition at line 401 of file matmath.cc.

complex_vector operator+ ( const complex_vector & v,
const Complex ) [inline]
 

Definition at line 341 of file matmath.h.

complex_vector operator+ ( const complex_vector & u,
const real_vector & x ) [inline]
 

Definition at line 302 of file matmath.h.

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

Definition at line 178 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 ) [inline]
 

Definition at line 292 of file matmath.h.

complex_vector operator+ ( const complex_vector & u ) [inline]
 

Definition at line 291 of file matmath.h.

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

Definition at line 586 of file matmath.cc.

complex_matrix operator- ( const complex_matrix & A,
const Complex ) [inline]
 

Definition at line 456 of file matmath.h.

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.

real_matrix operator- ( const real_matrix & X ) [inline]
 

Definition at line 421 of file matmath.h.

complex_matrix operator- ( const complex_matrix & U ) [inline]
 

Definition at line 419 of file matmath.h.

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

Definition at line 404 of file matmath.cc.

complex_vector operator- ( const complex_vector & v,
const Complex ) [inline]
 

Definition at line 355 of file matmath.h.

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

Definition at line 191 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 ) [inline]
 

Definition at line 295 of file matmath.h.

complex_vector operator- ( const complex_vector & u ) [inline]
 

Definition at line 293 of file matmath.h.

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

Definition at line 592 of file matmath.cc.

complex_matrix operator/ ( const complex_matrix & A,
const Complex ) [inline]
 

Definition at line 476 of file matmath.h.

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

Definition at line 410 of file matmath.cc.

complex_vector operator/ ( const complex_vector & v,
const Complex ) [inline]
 

Definition at line 375 of file matmath.h.

real_matrix real ( const complex_matrix & U ) [inline]
 

Definition at line 411 of file matmath.h.

real_vector real ( const complex_vector & u ) [inline]
 

Definition at line 285 of file matmath.h.

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

Definition at line 788 of file matmath.cc.

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

Definition at line 770 of file matmath.cc.

complex_matrix rowmatrix ( const complex_vector & x ) [inline]
 

Definition at line 536 of file matmath.h.

real_matrix rowmatrix ( const real_vector & x ) [inline]
 

Definition at line 532 of file matmath.h.

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

Definition at line 313 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.

complex_vector scalemult ( const complex_vector & u,
const real_vector & x ) [inline]
 

Definition at line 314 of file matmath.h.

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

Definition at line 299 of file matmath.cc.

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

Definition at line 355 of file matmath.cc.

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

Definition at line 327 of file matmath.cc.

complex_matrix & scalerow ( const int,
complex_matrix & U,
const Complex )
 

Definition at line 756 of file matmath.cc.

real_matrix & scalerow ( const int,
real_matrix & X,
const double )
 

Definition at line 746 of file matmath.cc.

complex_vector solve ( const complex_matrix & A,
const complex_vector & b )
 

Definition at line 1088 of file matmath.cc.

real_vector solve ( const real_matrix & A,
const real_vector & b )
 

Definition at line 839 of file matmath.cc.

complex_matrix solve ( const complex_matrix & A,
const complex_matrix & B )
 

Definition at line 1134 of file matmath.cc.

real_matrix solve ( const real_matrix & A,
const real_matrix & B )
 

Definition at line 885 of file matmath.cc.

real_matrix transpose ( const real_matrix & X )
 

Definition at line 456 of file matmath.cc.

complex_matrix transpose ( const complex_matrix & U )
 

Definition at line 441 of file matmath.cc.


Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7