Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

matrixspecs.cc File Reference

#include "matrixbk.hh"
#include <strstream>
#include <algorithm>
#include <cstdlib>

Go to the source code of this file.

Defines

#define PLACE2
#define SWAP(a, b)   bert=(a);(a)=(b);(b)=bert
#define SAMEASVECLIB

Functions

void four1 (complr4 data[], int32 fftlength, int32 isign)
bool myispower2 (uint w)
void matassert (const ifstream &str, const char *ifilename, const char *callingfile, int32 linenumber)
void matassert (const ofstream &str, const char *ofilename, const char *callingfile, int32 linenumber)
void fileci2tomatcr4 (matrix< complr4 > &Result, const char *file, uint filelines, window win, window winoffset)
matrix< real4magnitude (const matrix< complr4 > &A)
matrix< real4intensity (const matrix< complr4 > &A)
void choles (matrix< real4 > &A)
void choles (matrix< real8 > &A)
void solvechol (const matrix< real4 > &A, matrix< real4 > &B)
void solvechol (const matrix< real8 > &A, matrix< real8 > &B)
void invertchol (matrix< real4 > &A)
void invertchol (matrix< real8 > &A)
matrix< complr4norm (const matrix< complr4 > &A)
real4 norm2 (const matrix< complr4 > &A)
real4 norm2 (const matrix< real4 > &A)
matrix< real4abs (const matrix< real4 > &A)
matrix< real8abs (const matrix< real8 > &A)
matrix< real4real (const matrix< complr4 > &A)
matrix< real4imag (const matrix< complr4 > &A)
matrix< real4angle (const matrix< complr4 > &A)
matrix< complr4angle2cmplx (const matrix< real4 > &A)
void dotmultconjphase (matrix< complr4 > &cint, const matrix< real4 > &refpha)
matrix< complr4coherence (const matrix< complr4 > &CINT, const matrix< complr4 > &NORMS, uint winL, uint winP)
matrix< real4coherence2 (const matrix< complr4 > &CINT, const matrix< complr4 > &NORMS, uint winL, uint winP)
int32 mycomp2 (const void *x1, const void *x2)
void mysort2 (matrix< real4 > &A)
void mysort2 (matrix< int32 > &A)
void fft (matrix< complr4 > &A, int32 dimension)
 ****************************************************************

void ifft (matrix< complr4 > &A, int32 dimension)
void fft2d (matrix< complr4 > &A)
void ifft2d (matrix< complr4 > &A)
matrix< complr4oversample (matrix< complr4 > A, uint factorrow, uint factorcol)
matrix< real4oversample (const matrix< real4 > &A, uint factorrow, uint factorcol)
void dotmult (complr4 *pntR, const matrix< real4 > &B, int32 stride)
matrix< complr4diagxmat (const matrix< real4 > &diag, const matrix< complr4 > &B)
matrix< real4cos (const matrix< real4 > &A)
matrix< real8cos (const matrix< real8 > &A)
matrix< real4sin (const matrix< real4 > &A)
matrix< real8sin (const matrix< real8 > &A)
matrix< complr4mat2cr4 (const matrix< real4 > &A)
matrix< complr4mat2cr4 (const matrix< real4 > &A, const matrix< real4 > &B)
matrix< complr4mat2cr4 (const matrix< real8 > &A, const matrix< real8 > &B)

Variables

bk_messages matERROR
bk_messages matDEBUG


Define Documentation

#define PLACE2
 

#define SAMEASVECLIB
 

#define SWAP a,
 )     bert=(a);(a)=(b);(b)=bert
 

Definition at line 1506 of file matrixspecs.cc.


Function Documentation

matrix<real8> abs const matrix< real8 > &  A  ) 
 

Definition at line 918 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real8.

Referenced by abs(), azimuthfilter(), blockazifilt(), checksubtrrefdem(), coregpm(), dinsar(), slcimage::fillslcimage(), flatearth(), four1(), getoffset(), lp2xyz(), main(), BASELINE::model_parameters(), myhamming(), myrect(), phasefilterspectral(), polyfit(), radarcodedem(), readdat(), readinput(), rfilterblock(), shiftazispectrum(), slant2hambiguity(), slant2hschwabisch(), snaphu_unwrap(), spatialphasefilt(), subtrrefdem(), tiepoint(), xyz2orb(), and xyz2t().

matrix<real4> abs const matrix< real4 > &  A  ) 
 

Definition at line 897 of file matrixspecs.cc.

References abs(), int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real4.

matrix<real4> angle const matrix< complr4 > &  A  ) 
 

Definition at line 981 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real4.

Referenced by compinterfero(), and productinfo::readphase().

matrix<complr4> angle2cmplx const matrix< real4 > &  A  ) 
 

Definition at line 1004 of file matrixspecs.cc.

References complr4, cos(), int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), real4, and sin().

Referenced by compinterfero(), and subtrrefpha().

void choles matrix< real8 > &  A  ) 
 

Definition at line 445 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, bk_messages::print(), real8, and sum().

Referenced by coregpm(), dinsar(), flatearth(), BASELINE::model_parameters(), polyfit(), and slant2hschwabisch().

void choles matrix< real4 > &  A  ) 
 

Definition at line 370 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, bk_messages::print(), real4, and sum().

matrix<complr4> coherence const matrix< complr4 > &  CINT,
const matrix< complr4 > &  NORMS,
uint  winL,
uint  winP
 

Definition at line 1061 of file matrixspecs.cc.

References complr4, conj(), fft2d(), ifft2d(), int32, window::linehi, window::linelo, matrix< Type >::lines(), matDEBUG, matERROR, nextpow2(), matrix< Type >::pixels(), window::pixhi, window::pixlo, bk_messages::print(), printcpu(), real4, matrix< Type >::setdata(), sum(), and uint.

Referenced by compcoherence(), and main().

matrix<real4> coherence2 const matrix< complr4 > &  CINT,
const matrix< complr4 > &  NORMS,
uint  winL,
uint  winP
 

Definition at line 1331 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matERROR, norm(), matrix< Type >::pixels(), bk_messages::print(), real4, sum(), and uint.

Referenced by compcoherence().

matrix<real8> cos const matrix< real8 > &  A  ) 
 

Definition at line 2717 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real8.

Referenced by angle2cmplx(), BalphaBhBvBparBperpTheta(), compcoherence(), cos(), dotmultconjphase(), ell2xyz(), geocode(), BASELINE::get_bhor(), main(), BASELINE::model_parameters(), myhamming(), pol2xyz(), readleader(), resample(), shiftazispectrum(), slant2hambiguity(), slant2hrodriguez(), subtrrefdem(), xyz2ell(), and xyz2pol().

matrix<real4> cos const matrix< real4 > &  A  ) 
 

Definition at line 2696 of file matrixspecs.cc.

References cos(), int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real4.

matrix<complr4> diagxmat const matrix< real4 > &  diag,
const matrix< complr4 > &  B
 

Definition at line 2660 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, min(), matrix< Type >::pixels(), bk_messages::print(), and matrix< Type >::size().

Referenced by azimuthfilter(), coregpm(), and main().

void dotmult complr4 pntR,
const matrix< real4 > &  B,
int32  stride
 

Definition at line 2211 of file matrixspecs.cc.

References complr4, int32, matDEBUG, bk_messages::print(), and real4.

Referenced by radarcodedem(), rfilterblock(), and sqr().

void dotmultconjphase matrix< complr4 > &  cint,
const matrix< real4 > &  refpha
 

Definition at line 1027 of file matrixspecs.cc.

References complr4, cos(), int32, matDEBUG, matERROR, bk_messages::print(), real4, and sin().

Referenced by subtrrefpha().

void fft matrix< complr4 > &  A,
int32  dimension
 

****************************************************************

Definition at line 1806 of file matrixspecs.cc.

References four1(), matrix< Type >::getcolumn(), int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), bk_messages::print(), and matrix< Type >::setcolumn().

Referenced by azimuthfilter(), blockazifilt(), main(), oversample(), rangefiltporbits(), and rfilterblock().

void fft2d matrix< complr4 > &  A  ) 
 

Definition at line 1896 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), and bk_messages::print().

Referenced by coherence(), coherencefft(), convbuffer(), corrfft(), goldstein(), oversample(), smooth(), spatialphasefilt(), and spectralfilt().

void fileci2tomatcr4 matrix< complr4 > &  Result,
const char *  file,
uint  filelines,
window  win,
window  winoffset
 

Definition at line 192 of file matrixspecs.cc.

References compli16, complr4, filelines(), int16, int32, window::linehi, window::linelo, matrix< Type >::lines(), window::lines(), matassert(), matDEBUG, matERROR, matrix< Type >::pixels(), window::pixels(), window::pixhi, window::pixlo, bk_messages::print(), and uint.

Referenced by azimuthfilter(), and slcimage::readdata().

void four1 complr4  data[],
int32  fftlength,
int32  isign
 

Definition at line 1510 of file matrixspecs.cc.

References abs(), complr4, int32, matDEBUG, matERROR, myispower2(), and bk_messages::print().

Referenced by fft(), and ifft().

void ifft matrix< complr4 > &  A,
int32  dimension
 

Definition at line 1854 of file matrixspecs.cc.

References four1(), matrix< Type >::getcolumn(), int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), bk_messages::print(), and matrix< Type >::setcolumn().

Referenced by azimuthfilter(), blockazifilt(), oversample(), rangefiltporbits(), and rfilterblock().

void ifft2d matrix< complr4 > &  A  ) 
 

Definition at line 1988 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), and bk_messages::print().

Referenced by coherence(), coherencefft(), convbuffer(), corrfft(), goldstein(), oversample(), smooth(), and spectralfilt().

matrix<real4> imag const matrix< complr4 > &  A  ) 
 

Definition at line 960 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real4.

Referenced by conj(), matrix< Type >::conj(), intensity(), and magnitude().

matrix<real4> intensity const matrix< complr4 > &  A  ) 
 

Definition at line 308 of file matrixspecs.cc.

References complr4, imag(), int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), real4, and sqr().

Referenced by rfilterblock().

void invertchol matrix< real8 > &  A  ) 
 

Definition at line 794 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), real8, and sum().

Referenced by coregpm(), dinsar(), flatearth(), BASELINE::model_parameters(), polyfit(), and slant2hschwabisch().

void invertchol matrix< real4 > &  A  ) 
 

Definition at line 714 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), real4, and sum().

matrix<real4> magnitude const matrix< complr4 > &  A  ) 
 

Definition at line 286 of file matrixspecs.cc.

References complr4, imag(), int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), real4, and sqr().

Referenced by coarsecorrel(), coarsecorrelfft(), coherencefft(), coherencespace(), compcoherence(), and goldstein().

matrix<complr4> mat2cr4 const matrix< real8 > &  A,
const matrix< real8 > &  B
 

Definition at line 2826 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), bk_messages::print(), and real8.

Referenced by coherencefft(), main(), oversample(), resample(), shiftazispectrum(), and smooth().

matrix<complr4> mat2cr4 const matrix< real4 > &  A,
const matrix< real4 > &  B
 

Definition at line 2800 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), bk_messages::print(), and real4.

matrix<complr4> mat2cr4 const matrix< real4 > &  A  ) 
 

Definition at line 2780 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real4.

void matassert const ofstream &  str,
const char *  ofilename,
const char *  callingfile,
int32  linenumber
 

Definition at line 159 of file matrixspecs.cc.

References int32, matDEBUG, matERROR, and bk_messages::print().

Referenced by dumpasc(), orbit::dumporbit(), and fileci2tomatcr4().

void matassert const ifstream &  str,
const char *  ifilename,
const char *  callingfile,
int32  linenumber
 

Definition at line 135 of file matrixspecs.cc.

References int32, matDEBUG, matERROR, and bk_messages::print().

int32 mycomp2 const void *  x1,
const void *  x2
 

Definition at line 1399 of file matrixspecs.cc.

References int32.

Referenced by mysort2().

bool myispower2 uint  w  )  [inline]
 

Definition at line 120 of file matrixspecs.cc.

References uint.

Referenced by four1(), and oversample().

void mysort2 matrix< int32 > &  A  ) 
 

Definition at line 1425 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, mycomp2(), matrix< Type >::pixels(), and bk_messages::print().

Referenced by radarcodedem().

void mysort2 matrix< real4 > &  A  ) 
 

Definition at line 1413 of file matrixspecs.cc.

References matrix< Type >::lines(), matDEBUG, matERROR, mycomp2(), matrix< Type >::pixels(), bk_messages::print(), and real4.

matrix<complr4> norm const matrix< complr4 > &  A  ) 
 

Definition at line 836 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), and bk_messages::print().

Referenced by coherence2(), compcoherence(), and norm2().

real4 norm2 const matrix< real4 > &  A  ) 
 

Definition at line 877 of file matrixspecs.cc.

References int32, matDEBUG, bk_messages::print(), real4, and sqr().

Referenced by coherencespace().

real4 norm2 const matrix< complr4 > &  A  ) 
 

Definition at line 857 of file matrixspecs.cc.

References complr4, int32, matDEBUG, norm(), bk_messages::print(), and real4.

matrix<real4> oversample const matrix< real4 > &  A,
uint  factorrow,
uint  factorcol
 

Definition at line 2194 of file matrixspecs.cc.

References mat2cr4(), real(), and uint.

Referenced by coherencefft(), coherencespace(), and rfilterblock().

matrix<complr4> oversample matrix< complr4 A,
uint  factorrow,
uint  factorcol
 

Definition at line 2095 of file matrixspecs.cc.

References complr4, fft(), fft2d(), ifft(), ifft2d(), int32, matrix< Type >::isvector(), matrix< Type >::lines(), matDEBUG, matERROR, myispower2(), matrix< Type >::pixels(), bk_messages::print(), real4, matrix< Type >::setdata(), and uint.

matrix<real4> real const matrix< complr4 > &  A  ) 
 

Definition at line 939 of file matrixspecs.cc.

References complr4, int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real4.

Referenced by coherencefft(), conj(), matrix< Type >::conj(), corrfft(), oversample(), and smooth().

matrix<real8> sin const matrix< real8 > &  A  ) 
 

Definition at line 2759 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), and real8.

Referenced by angle2cmplx(), BalphaBhBvBparBperpTheta(), compcoherence(), dotmultconjphase(), ell2xyz(), geocode(), BASELINE::get_bvert(), BASELINE::get_hamb(), main(), BASELINE::model_parameters(), pol2xyz(), readleader(), resample(), shiftazispectrum(), sin(), sinc(), slant2hambiguity(), subtrrefdem(), and xyz2ell().

matrix<real4> sin const matrix< real4 > &  A  ) 
 

Definition at line 2738 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::pixels(), bk_messages::print(), real4, and sin().

void solvechol const matrix< real8 > &  A,
matrix< real8 > &  B
 

Definition at line 628 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), bk_messages::print(), real8, and sum().

Referenced by coregpm(), dinsar(), flatearth(), BASELINE::model_parameters(), polyfit(), and slant2hschwabisch().

void solvechol const matrix< real4 > &  A,
matrix< real4 > &  B
 

Definition at line 531 of file matrixspecs.cc.

References int32, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::pixels(), bk_messages::print(), real4, and sum().


Variable Documentation

bk_messages matDEBUG
 

Definition at line 56 of file matrixspecs.cc.

bk_messages matERROR
 

Definition at line 55 of file matrixspecs.cc.


Generated on Fri Apr 22 15:58:11 2005 for Doris by doxygen 1.3.6