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

matrix< Type > Class Template Reference

#include <matrixbk.hh>

List of all members.

Public Member Functions

 matrix ()
 matrix (uint l, uint p)
 matrix (const matrix< Type > &A)
 matrix (window w, const matrix< Type > &A)
 ~matrix ()
void setdata (Type w)
void setdata (uint l, uint p, const matrix< Type > &A)
void setdata (window winin, const matrix< Type > &A, window winA)
void setdata (const matrix< Type > &A, window winA)
matrix< Type > getdata (window w) const
matrix< Type > getrow (uint l) const
matrix< Type > getcolumn (uint p) const
void showdata () const
bool isvector () const
uint lines () const
uint pixels () const
uint size () const
void resize (uint l, uint p)
void clean ()
void setrow (uint l, const matrix< Type > &L)
void setrow (uint l, Type scalar)
void setcolumn (uint p, const matrix< Type > &C)
void setcolumn (uint p, Type scalar)
void fliplr ()
void flipud ()
Type * operator[] (uint l) const
Type & operator() (uint l, uint p) const
matrix< Type > operator() (window win) const
matrix< Type > operator() (uint l0, uint lN, uint p0, uint pN) const
matrix< Type > & operator= (const matrix< Type > &A)
matrix< Type > & operator= (const Type scalar)
matrix< Type > & operator-= (Type scalar)
matrix< Type > & operator-= (const matrix< Type > &A)
matrix< Type > & operator+= (Type scalar)
matrix< Type > & operator+= (const matrix< Type > &A)
matrix< Type > & operator *= (Type scalar)
matrix< Type > & operator *= (const matrix< Type > &A)
matrix< Type > & operator/= (Type scalar)
matrix< Type > & operator/= (const matrix< Type > &A)
bool operator== (Type scalar) const
bool operator== (const matrix< Type > &A) const
bool operator!= (Type scalar) const
bool operator!= (const matrix< Type > &A) const
void conj ()
void mypow (Type s)
template<class TypeB> matrix< Type > & operator *= (const matrix< TypeB > &A)
template<class TypeB> matrix< Type > & operator/= (const matrix< TypeB > &A)
template<class TypeB> matrix< Type > & operator+= (const matrix< TypeB > &A)
template<class TypeB> matrix< Type > & operator-= (const matrix< TypeB > &A)

Private Member Functions

void allocate (uint l, uint p)
void initialize (uint l, uint p)

Private Attributes

Type ** data
uint nrows
uint ncols
uint nsize

Friends

ostream & operator<< (ostream &file, const matrix< Type > &A)
istream & operator>> (istream &file, matrix< Type > &A)
void myswap (matrix< Type > &A, matrix< Type > &B)
matrix< Type > sqrt (const matrix< Type > &A)
void readfile (matrix< Type > &Result, const char *file, uint filelines, window win, window winoffset)
void writefile (ofstream &file, const matrix< Type > &tobwritten, window win)
void fftshift (matrix< Type > &A)
void ifftshift (matrix< Type > &A)
void wshift (matrix< Type > &A, int32 n)

template<class Type>
class matrix< Type >


Constructor & Destructor Documentation

template<class Type>
matrix< Type >::matrix  ) 
 

Definition at line 196 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::ncols, matrix< Type >::nrows, and matrix< Type >::nsize.

template<class Type>
matrix< Type >::matrix uint  l,
uint  p
 

Definition at line 211 of file matrixbk.cc.

References matrix< Type >::initialize(), and uint.

template<class Type>
matrix< Type >::matrix const matrix< Type > &  A  ) 
 

Definition at line 225 of file matrixbk.cc.

References matrix< Type >::allocate(), matrix< Type >::data, matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, and bk_messages::print().

template<class Type>
matrix< Type >::matrix window  w,
const matrix< Type > &  A
 

Definition at line 248 of file matrixbk.cc.

References matrix< Type >::allocate(), matrix< Type >::data, int32, window::linehi, window::linelo, window::lines(), matDEBUG, matERROR, window::pixels(), window::pixhi, window::pixlo, bk_messages::print(), and uint.

template<class Type>
matrix< Type >::~matrix  ) 
 

Definition at line 278 of file matrixbk.cc.

References matrix< Type >::data, matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, bk_messages::print(), totalallocated, and uint.


Member Function Documentation

template<class Type>
void matrix< Type >::allocate uint  l,
uint  p
[private]
 

Definition at line 93 of file matrixbk.cc.

References matrix< Type >::data, int32, matDEBUG, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, bk_messages::print(), totalallocated, and uint.

Referenced by matrix< Type >::initialize(), matrix< Type >::matrix(), and matrix< Type >::operator=().

template<class Type>
void matrix< Type >::clean  ) 
 

Definition at line 605 of file matrixbk.cc.

References matrix< Type >::data, and matrix< Type >::nsize.

Referenced by coherencefft(), corrfft(), matrix< Type >::initialize(), and OversampleSLC().

template<class Type>
void matrix< Type >::conj  ) 
 

Definition at line 1098 of file matrixbk.cc.

References matrix< Type >::data, imag(), int32, matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, bk_messages::print(), and real().

Referenced by coherencefft(), corrfft(), and spatialphasefilt().

template<class Type>
void matrix< Type >::fliplr  ) 
 

Definition at line 703 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::getcolumn(), int32, matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, bk_messages::print(), and matrix< Type >::setcolumn().

Referenced by rangefiltporbits(), and rfilterblock().

template<class Type>
void matrix< Type >::flipud  ) 
 

Definition at line 745 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::getrow(), int32, matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, bk_messages::print(), and matrix< Type >::setrow().

template<class Type>
matrix< Type > matrix< Type >::getcolumn uint  p  )  const
 

Definition at line 463 of file matrixbk.cc.

References matrix< Type >::data, int32, matrix< Type >::ncols, matrix< Type >::nrows, and uint.

Referenced by fft(), matrix< Type >::fliplr(), ifft(), slant2hschwabisch(), and unwraptreeframon().

template<class Type>
matrix< Type > matrix< Type >::getdata window  w  )  const
 

Definition at line 418 of file matrixbk.cc.

References matrix< Type >::data, int32, window::linehi, window::linelo, matDEBUG, matERROR, window::pixhi, window::pixlo, bk_messages::print(), and uint.

template<class Type>
matrix< Type > matrix< Type >::getrow uint  l  )  const
 

Definition at line 446 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::ncols, and uint.

Referenced by coregpm(), matrix< Type >::flipud(), and rfilterblock().

template<class Type>
void matrix< Type >::initialize uint  l,
uint  p
[private]
 

Definition at line 158 of file matrixbk.cc.

References matrix< Type >::allocate(), matrix< Type >::clean(), matDEBUG, bk_messages::print(), and uint.

Referenced by matrix< Type >::matrix(), and matrix< Type >::resize().

template<class Type>
bool matrix< Type >::isvector  )  const
 

Definition at line 526 of file matrixbk.cc.

References matrix< Type >::ncols, and matrix< Type >::nrows.

Referenced by oversample(), and sum().

template<class Type>
uint matrix< Type >::lines  )  const
 

Definition at line 538 of file matrixbk.cc.

References uint.

Referenced by abs(), angle(), angle2cmplx(), azimuthfilter(), blockazifilt(), cc4(), cc6(), choles(), coherence(), coherence2(), coherencefft(), coherencespace(), compcoherence(), conj(), convbuffer(), coregpm(), correlate(), corrfft(), cos(), diagxmat(), dinsar(), dumpasc(), fft(), fft2d(), fileci2tomatcr4(), flatearth(), geocode(), getoffset(), goldstein(), ifft(), ifft2d(), imag(), intensity(), invertchol(), knab(), magnitude(), main(), mat2cr4(), matTxmat(), matxmatT(), BASELINE::model_parameters(), multilook(), myhamming(), myrect(), mysort2(), norm(), operator *(), matrix< Type >::operator *=(), operator-(), matrix< Type >::operator/=(), matrix< Type >::operator==(), oversample(), polyfit(), polyval(), polyval1d(), radarcodedem(), rangefilter(), slcimage::readdata(), real(), rect(), resample(), rfilterblock(), matrix< Type >::setdata(), shiftazispectrum(), sin(), slant2hambiguity(), slant2hrodriguez(), slant2hschwabisch(), smooth(), solve22(), solve33(), solvechol(), spectralfilt(), splineinterpol(), sum(), tri(), ts16(), ts6(), ts8(), and unwraptreeframon().

template<class Type>
void matrix< Type >::mypow Type  s  ) 
 

Definition at line 1948 of file matrixbk.cc.

References matrix< Type >::data, int32, matrix< Type >::ncols, and matrix< Type >::nrows.

Referenced by goldstein(), main(), and polyfit().

template<class Type>
template<class TypeB>
matrix<Type>& matrix< Type >::operator *= const matrix< TypeB > &  A  ) 
 

template<class Type>
matrix< Type > & matrix< Type >::operator *= const matrix< Type > &  A  ) 
 

Definition at line 924 of file matrixbk.cc.

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

template<class Type>
matrix< Type > & matrix< Type >::operator *= Type  scalar  ) 
 

Definition at line 900 of file matrixbk.cc.

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

template<class Type>
bool matrix< Type >::operator!= const matrix< Type > &  A  )  const
 

Definition at line 1193 of file matrixbk.cc.

References matDEBUG, and bk_messages::print().

template<class Type>
bool matrix< Type >::operator!= Type  scalar  )  const
 

Definition at line 1175 of file matrixbk.cc.

References matDEBUG, and bk_messages::print().

template<class Type>
matrix< Type > matrix< Type >::operator() uint  l0,
uint  lN,
uint  p0,
uint  pN
const
 

Definition at line 831 of file matrixbk.cc.

References uint.

template<class Type>
matrix< Type > matrix< Type >::operator() window  win  )  const
 

Definition at line 817 of file matrixbk.cc.

template<class Type>
Type & matrix< Type >::operator() uint  l,
uint  p
const
 

Definition at line 801 of file matrixbk.cc.

References matrix< Type >::data, and uint.

template<class Type>
template<class TypeB>
matrix<Type>& matrix< Type >::operator+= const matrix< TypeB > &  A  ) 
 

template<class Type>
matrix< Type > & matrix< Type >::operator+= const matrix< Type > &  A  ) 
 

Definition at line 1047 of file matrixbk.cc.

References matrix< Type >::data, int32, matDEBUG, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, and bk_messages::print().

template<class Type>
matrix< Type > & matrix< Type >::operator+= Type  scalar  ) 
 

Definition at line 1074 of file matrixbk.cc.

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

template<class Type>
template<class TypeB>
matrix<Type>& matrix< Type >::operator-= const matrix< TypeB > &  A  ) 
 

template<class Type>
matrix< Type > & matrix< Type >::operator-= const matrix< Type > &  A  ) 
 

Definition at line 996 of file matrixbk.cc.

References matrix< Type >::data, int32, matDEBUG, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, and bk_messages::print().

template<class Type>
matrix< Type > & matrix< Type >::operator-= Type  scalar  ) 
 

Definition at line 1022 of file matrixbk.cc.

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

template<class Type>
template<class TypeB>
matrix<Type>& matrix< Type >::operator/= const matrix< TypeB > &  A  ) 
 

template<class Type>
matrix< Type > & matrix< Type >::operator/= const matrix< Type > &  A  ) 
 

Definition at line 972 of file matrixbk.cc.

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

template<class Type>
matrix< Type > & matrix< Type >::operator/= Type  scalar  ) 
 

Definition at line 949 of file matrixbk.cc.

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

template<class Type>
matrix< Type > & matrix< Type >::operator= const Type  scalar  ) 
 

Definition at line 883 of file matrixbk.cc.

References matDEBUG, bk_messages::print(), and matrix< Type >::setdata().

template<class Type>
matrix< Type > & matrix< Type >::operator= const matrix< Type > &  A  ) 
 

Definition at line 845 of file matrixbk.cc.

References matrix< Type >::allocate(), matrix< Type >::data, matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, bk_messages::print(), totalallocated, and uint.

template<class Type>
bool matrix< Type >::operator== const matrix< Type > &  A  )  const
 

Definition at line 1147 of file matrixbk.cc.

References matrix< Type >::data, int32, matrix< Type >::lines(), matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, matrix< Type >::pixels(), and bk_messages::print().

template<class Type>
bool matrix< Type >::operator== Type  scalar  )  const
 

Definition at line 1120 of file matrixbk.cc.

References matrix< Type >::data, int32, matDEBUG, matrix< Type >::nsize, and bk_messages::print().

template<class Type>
Type * matrix< Type >::operator[] uint  l  )  const
 

Definition at line 787 of file matrixbk.cc.

References matrix< Type >::data, and uint.

template<class Type>
uint matrix< Type >::pixels  )  const
 

Definition at line 549 of file matrixbk.cc.

References uint.

Referenced by abs(), angle(), angle2cmplx(), azimuthfilter(), blockazifilt(), cc4(), cc6(), coherence(), coherence2(), coherencefft(), coherencespace(), compcoherence(), conj(), coregpm(), correlate(), corrfft(), cos(), diagxmat(), dumpasc(), fft(), fft2d(), fileci2tomatcr4(), geocode(), getoffset(), goldstein(), ifft(), ifft2d(), imag(), intensity(), knab(), magnitude(), main(), mat2cr4(), matTxmat(), matxmatT(), multilook(), myhamming(), myrect(), mysort2(), norm(), operator *(), matrix< Type >::operator *=(), operator-(), matrix< Type >::operator/=(), matrix< Type >::operator==(), oversample(), OversampleSLC(), polyfit(), polyval(), radarcodedem(), rangefilter(), rangefiltporbits(), real(), rect(), resample(), rfilterblock(), matrix< Type >::setdata(), shiftazispectrum(), sin(), slant2hambiguity(), slant2hrodriguez(), slant2hschwabisch(), smooth(), solve22(), solve33(), solvechol(), spectralfilt(), splineinterpol(), sum(), tri(), ts16(), ts6(), ts8(), and unwraptreeframon().

template<class Type>
void matrix< Type >::resize uint  l,
uint  p
 

Definition at line 571 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::initialize(), matDEBUG, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, bk_messages::print(), totalallocated, and uint.

Referenced by coarsecorrel(), coarsecorrelfft(), compcoherence(), coregpm(), finecoreg(), flatearth(), geocode(), radarcodedem(), readleader(), shiftazispectrum(), spatialphasefilt(), sum(), and unwraptreeframon().

template<class Type>
void matrix< Type >::setcolumn uint  p,
Type  scalar
 

Definition at line 684 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::ncols, matrix< Type >::nrows, and uint.

template<class Type>
void matrix< Type >::setcolumn uint  p,
const matrix< Type > &  C
 

Definition at line 661 of file matrixbk.cc.

References matrix< Type >::data, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, bk_messages::print(), and uint.

Referenced by blockazifilt(), fft(), matrix< Type >::fliplr(), ifft(), polyfit(), and slant2hschwabisch().

template<class Type>
void matrix< Type >::setdata const matrix< Type > &  A,
window  winA
 

Definition at line 390 of file matrixbk.cc.

References matrix< Type >::data, int32, window::linehi, window::linelo, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::pixels(), window::pixhi, window::pixlo, bk_messages::print(), and uint.

template<class Type>
void matrix< Type >::setdata window  winin,
const matrix< Type > &  A,
window  winA
 

Definition at line 348 of file matrixbk.cc.

References matrix< Type >::data, int32, window::linehi, window::linelo, matrix< Type >::lines(), matDEBUG, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::pixels(), window::pixhi, window::pixlo, bk_messages::print(), and uint.

template<class Type>
void matrix< Type >::setdata uint  l,
uint  p,
const matrix< Type > &  A
 

Definition at line 328 of file matrixbk.cc.

References matrix< Type >::data, int32, matrix< Type >::ncols, matrix< Type >::nrows, and uint.

template<class Type>
void matrix< Type >::setdata Type  w  ) 
 

Definition at line 304 of file matrixbk.cc.

References matrix< Type >::data, int32, matDEBUG, matrix< Type >::nsize, and bk_messages::print().

Referenced by coherence(), coherencefft(), coherencespace(), compcoherence(), convbuffer(), correlate(), goldstein(), ones(), matrix< Type >::operator=(), oversample(), polyval(), radarcodedem(), rangefilter(), and spectralfilt().

template<class Type>
void matrix< Type >::setrow uint  l,
Type  scalar
 

Definition at line 641 of file matrixbk.cc.

References matrix< Type >::data, matrix< Type >::ncols, and uint.

template<class Type>
void matrix< Type >::setrow uint  l,
const matrix< Type > &  L
 

Definition at line 620 of file matrixbk.cc.

References matrix< Type >::data, matERROR, matrix< Type >::ncols, matrix< Type >::nrows, matrix< Type >::nsize, bk_messages::print(), and uint.

Referenced by coregpm(), matrix< Type >::flipud(), productinfo::readphase(), and spatialphasefilt().

template<class Type>
void matrix< Type >::showdata  )  const
 

Definition at line 497 of file matrixbk.cc.

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

Referenced by main().

template<class Type>
uint matrix< Type >::size  )  const
 

Definition at line 560 of file matrixbk.cc.

References uint.

Referenced by compcoherence(), compinterfero(), diagxmat(), operator *(), operator-(), polyval(), BASELINE::polyval(), polyval1d(), radarcodedem(), resample(), and slant2hrodriguez().


Friends And Related Function Documentation

template<class Type>
void fftshift matrix< Type > &  A  )  [friend]
 

Definition at line 606 of file matrixbk.hh.

template<class Type>
void ifftshift matrix< Type > &  A  )  [friend]
 

Definition at line 630 of file matrixbk.hh.

template<class Type>
void myswap matrix< Type > &  A,
matrix< Type > &  B
[friend]
 

Definition at line 452 of file matrixbk.hh.

template<class Type>
ostream& operator<< ostream &  file,
const matrix< Type > &  A
[friend]
 

Definition at line 416 of file matrixbk.hh.

template<class Type>
istream& operator>> istream &  file,
matrix< Type > &  A
[friend]
 

Definition at line 433 of file matrixbk.hh.

template<class Type>
void readfile matrix< Type > &  Result,
const char *  file,
uint  filelines,
window  win,
window  winoffset
[friend]
 

Definition at line 506 of file matrixbk.hh.

template<class Type>
matrix<Type> sqrt const matrix< Type > &  A  )  [friend]
 

Definition at line 475 of file matrixbk.hh.

template<class Type>
void writefile ofstream &  file,
const matrix< Type > &  tobwritten,
window  win
[friend]
 

Definition at line 579 of file matrixbk.hh.

template<class Type>
void wshift matrix< Type > &  A,
int32  n
[friend]
 

Definition at line 657 of file matrixbk.hh.


Member Data Documentation

template<class Type>
Type** matrix< Type >::data [private]
 

Definition at line 321 of file matrixbk.hh.

Referenced by matrix< Type >::allocate(), matrix< Type >::clean(), matrix< Type >::conj(), matrix< Type >::fliplr(), matrix< Type >::flipud(), matrix< Type >::getcolumn(), matrix< Type >::getdata(), matrix< Type >::getrow(), matrix< Type >::matrix(), matrix< Type >::mypow(), matrix< Type >::operator *=(), matrix< Type >::operator()(), matrix< Type >::operator+=(), matrix< Type >::operator-=(), matrix< Type >::operator/=(), matrix< Type >::operator=(), matrix< Type >::operator==(), matrix< Type >::operator[](), matrix< Type >::resize(), matrix< Type >::setcolumn(), matrix< Type >::setdata(), matrix< Type >::setrow(), and matrix< Type >::~matrix().

template<class Type>
uint matrix< Type >::ncols [private]
 

Definition at line 323 of file matrixbk.hh.

Referenced by matrix< Type >::allocate(), matrix< Type >::conj(), matrix< Type >::fliplr(), matrix< Type >::flipud(), matrix< Type >::getcolumn(), matrix< Type >::getrow(), matrix< Type >::isvector(), matrix< Type >::matrix(), matrix< Type >::mypow(), matrix< Type >::operator *=(), matrix< Type >::operator+=(), matrix< Type >::operator-=(), matrix< Type >::operator/=(), matrix< Type >::operator=(), matrix< Type >::operator==(), matrix< Type >::resize(), matrix< Type >::setcolumn(), matrix< Type >::setdata(), matrix< Type >::setrow(), and matrix< Type >::~matrix().

template<class Type>
uint matrix< Type >::nrows [private]
 

Definition at line 322 of file matrixbk.hh.

Referenced by matrix< Type >::allocate(), matrix< Type >::conj(), matrix< Type >::fliplr(), matrix< Type >::flipud(), matrix< Type >::getcolumn(), matrix< Type >::isvector(), matrix< Type >::matrix(), matrix< Type >::mypow(), matrix< Type >::operator *=(), matrix< Type >::operator+=(), matrix< Type >::operator-=(), matrix< Type >::operator/=(), matrix< Type >::operator=(), matrix< Type >::operator==(), matrix< Type >::resize(), matrix< Type >::setcolumn(), matrix< Type >::setdata(), matrix< Type >::setrow(), and matrix< Type >::~matrix().

template<class Type>
uint matrix< Type >::nsize [private]
 

Definition at line 324 of file matrixbk.hh.

Referenced by matrix< Type >::allocate(), matrix< Type >::clean(), matrix< Type >::matrix(), matrix< Type >::operator *=(), matrix< Type >::operator+=(), matrix< Type >::operator-=(), matrix< Type >::operator/=(), matrix< Type >::operator=(), matrix< Type >::operator==(), matrix< Type >::resize(), matrix< Type >::setcolumn(), matrix< Type >::setdata(), matrix< Type >::setrow(), and matrix< Type >::~matrix().


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 15:58:28 2005 for Doris by doxygen 1.3.6