Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

linalg Namespace Reference


Classes

class  linalg::ALInterp
class  linalg::MatrixPivoting
class  linalg::FPoint
class  linalg::LAS
class  linalg::AREALMark
class  linalg::AREALStreamIn
class  linalg::AREALStreamOut
class  linalg::LAStreamIn
class  linalg::LAStreamOut
class  linalg::AREALStrideStreamIn
class  linalg::AREALStrideStreamOut
class  linalg::LAStrideStreamIn
class  linalg::LAStrideStreamOut
class  linalg::AREALBlockStreamIn
class  linalg::AREALBlockStreamOut
class  linalg::LABlockStreamIn
class  linalg::LABlockStreamOut
class  linalg::DimSpec
struct  linalg::rowcol
struct  linalg::IRange
struct  linalg::IRangeStride
class  linalg::DimSpecSubranged
class  linalg::ConstElementAction
class  linalg::ElementAction
class  linalg::ConstElementAction2
class  linalg::LazyMatrix
class  linalg::MinMax
class  linalg::RWWatchDog
class  linalg::haar_matrix
class  linalg::LazyTransposedMatrix
class  linalg::Matrix
class  linalg::Matrix::ConstReference
class  linalg::Matrix::Reference
class  linalg::Vector
class  linalg::LazyMatrixProduct
class  linalg::LazyZeroMatrix
class  linalg::LazyUnitMatrix
class  linalg::LazyInverseMatrix
class  linalg::ElementWiseConstAction
class  linalg::ElementWiseAction
class  linalg::ElementWiseConst
struct  linalg::ElementWiseConst::ElementWiseConstRef
class  linalg::ElementWise
class  linalg::ElementWiseStrideConst
class  linalg::ElementWiseStride
class  linalg::MatrixDABase
class  linalg::ConstMatrixDA
class  linalg::MatrixDA
class  linalg::ConstMatrixColumn
class  linalg::MatrixColumn
class  linalg::ConstMatrixRow
class  linalg::MatrixRow
class  linalg::ConstMatrixDiag
class  linalg::MatrixDiag
struct  linalg::UnivariateFunctor
struct  linalg::MultivariateFunctor
struct  linalg::MaxDev
struct  linalg::GFS_Default
class  linalg::SVD
class  linalg::SVD_inv_mult

Functions

int fsign (const float f)
double ali (const double q, const double x0, const double s, const Vector &y)
double ali (const double q, const Vector &x, const Vector &y)
long gcd (long, long)
long lg (unsigned long)
char * dtoa (double x, char cvt= 'g', int width=0, int prec=6)
unsigned int hashpjw (const char *)
unsigned int multiplicativehash (int)
unsigned int foldhash (double)
double abs (double arg)
float abs (float arg)
short abs (short arg)
long abs (long arg)
int sign (long arg)
int sign (double arg)
long sqr (long arg)
double sqr (double arg)
int even (long arg)
int odd (long arg)
long lcm (long x, long y)
void clearbit (long &x, long b)
int testbit (long x, long b)
double fminbr (const double ax, const double bx, UnivariateFunctor &f, const double tol)
void update_in_direction (FPoint &from, FPoint &to)
void compare (const Matrix &im1, const Matrix &im2, const char title[])
void verify_element_value (const Matrix &m, const REAL val)
void verify_matrix_identity (const Matrix &m1, const Matrix &m2)
void verify_element_value (const Matrix::ConstReference &m, const REAL val)
void verify_matrix_identity (const Matrix::ConstReference &m1, const Matrix &m2)
void verify_matrix_identity (const Matrix &m1, const Matrix::ConstReference &m2)
void verify_matrix_identity (const Matrix::ConstReference &m1, const Matrix::ConstReference &m2)
Matrixoperator *= (Matrix &m, const ConstMatrixDiag &diag)
const LazyTransposedMatrix transposed (const Matrix &proto)
ElementWiseConst of_every (const ConstMatrixColumn &mc)
ElementWise to_every (const MatrixColumn &mc)
ElementWiseStrideConst of_every (const ConstMatrixRow &mr)
ElementWiseStride to_every (const MatrixRow &mr)
ElementWiseStrideConst of_every (const ConstMatrixDiag &md)
ElementWiseStride to_every (const MatrixDiag &md)
void are_compatible (const Matrix &m1, const Matrix &m2)
Matrixoperator-= (Matrix &m, const double val)
Matrixoperator+= (Matrix &m, const double val)
Matrixoperator *= (Matrix &m, const double val)
Matrix::Referenceoperator-= (Matrix::Reference &m, const double val)
Matrix::Referenceoperator+= (Matrix::Reference &m, const double val)
Matrix::Referenceoperator *= (Matrix::Reference &m, const double val)
bool operator== (const Matrix &m, const REAL val)
bool operator!= (const Matrix &m, const REAL val)
bool operator== (const Matrix::ConstReference &m, const REAL val)
bool operator!= (const Matrix::ConstReference &m, const REAL val)
double zeroin (const double ax, const double bx, UnivariateFunctor &f, const double tol=DBL_EPSILON)
double hjmin (Vector &b, Vector &h, MultivariateFunctor &f)
double hjmin (Vector &b, const double h0, MultivariateFunctor &f)
double e2_norm (const Matrix &m1, const Matrix &m2)
ostream & operator<< (ostream &os, const DimSpec &dimspec)
ostream & operator<< (ostream &os, const AREALMark &mark)
ostream & operator<< (ostream &os, const rowcol &rc)
ostream & operator<< (ostream &os, const IRange range)
ostream & operator<< (ostream &os, const RWWatchDog &wd)
bool is_dummy_det_ref (double &determ_ref)
char min (char a, char b)
signed char min (signed char a, signed char b)
unsigned char min (unsigned char a, unsigned char b)
short min (short a, short b)
unsigned short min (unsigned short a, unsigned short b)
int min (int a, int b)
unsigned int min (unsigned int a, unsigned int b)
long min (long a, long b)
unsigned long min (unsigned long a, unsigned long b)
float min (float a, float b)
double min (double a, double b)
char max (char a, char b)
signed char max (signed char a, signed char b)
unsigned char max (unsigned char a, unsigned char b)
short max (short a, short b)
unsigned short max (unsigned short a, unsigned short b)
int max (int a, int b)
unsigned int max (unsigned int a, unsigned int b)
long max (long a, long b)
unsigned long max (unsigned long a, unsigned long b)
float max (float a, float b)
double max (double a, double b)
const char * xgetenv (const char *name, const char *default_value)
void _error (const char *message,...)
void message (const char *text,...)
size_t get_file_size (const char *file_name, GFS_Default &on_error)
char * xstrncpy (char *dest, const char *src, const int len)
int to_lower (const char c)
bool does_start_with_ci (const char *s1, const char *s2)
double pow (long x, long y)
double pow (double x, long y)
double start_timer (void)
double return_elapsed_time (const double last_time)
long int sqr (const int x)
double operator * (const Vector &v1, const Vector &v2)

Variables

void( setbit )(long &x, long b)
const char _Minuses []
const char _Asteriscs []
const char _Equals []
GFS_Default GFS_default
time_t time_set


Function Documentation

void linalg::_error const char *  message,
  ...
 

Definition at line 106 of file myenv.cpp.

References message().

Referenced by linalg::RWWatchDog::access_violation(), are_compatible(), linalg::ConstMatrixColumn::ConstMatrixColumn(), linalg::ConstMatrixRow::ConstMatrixRow(), linalg::Matrix::determinant(), linalg::ConstMatrixDiag::get_ref(), linalg::ConstMatrixRow::get_ref(), linalg::ConstMatrixColumn::get_ref(), linalg::AREALBlockStreamIn::get_ref(), linalg::AREALStrideStreamIn::get_ref(), linalg::AREALStreamIn::get_ref(), linalg::Matrix::invalid_matrix(), linalg::Matrix::invert(), linalg::Matrix::mult(), linalg::Vector::operator *=(), operator *=(), linalg::Matrix::operator *=(), linalg::GFS_Default::operator()(), linalg::Vector::operator()(), linalg::MatrixDABase::operator()(), linalg::Matrix::operator=(), linalg::AREALBlockStreamIn::peek_ref(), linalg::AREALStrideStreamIn::peek_ref(), linalg::AREALStreamIn::peek_ref(), linalg::ElementWiseStride::sqrt(), linalg::ElementWise::sqrt(), linalg::SVD::SVD(), linalg::SVD_inv_mult::SVD_inv_mult(), linalg::AREALBlockStreamIn::tell_prev(), linalg::AREALStrideStreamIn::tell_prev(), linalg::AREALStreamIn::tell_prev(), verify_element_value(), verify_matrix_identity(), and xgetenv().

Here is the call graph for this function:

long abs long  arg  )  [inline]
 

Definition at line 90 of file builtin.h.

Referenced by vuSimpleFVRCanvas::_substract(), PLBmp::AlmostEqual(), PLPixel8::BoxDist(), PLPixel32::BoxDist(), PLPixel24::BoxDist(), vuFourierCluster< SIZE, TYPE >::calcSliceDimensions(), and vuLightDial::OnMouseEvent().

short abs short  arg  )  [inline]
 

Definition at line 84 of file builtin.h.

float abs float  arg  )  [inline]
 

Definition at line 78 of file builtin.h.

double abs double  arg  )  [inline]
 

Definition at line 73 of file builtin.h.

double linalg::ali const double  q,
const Vector x,
const Vector y
 

Definition at line 267 of file ali.cpp.

References linalg::ALInterp::interpolate().

Here is the call graph for this function:

double linalg::ali const double  q,
const double  x0,
const double  s,
const Vector y
 

Definition at line 260 of file ali.cpp.

References linalg::ALInterp::interpolate().

Here is the call graph for this function:

void are_compatible const Matrix m1,
const Matrix m2
[inline]
 

Definition at line 1520 of file LinAlg.h.

References _error(), linalg::Matrix::info(), and linalg::Matrix::is_valid().

Referenced by linalg::ALInterp::ALInterp(), compare(), operator *(), linalg::Matrix::operator=(), linalg::Matrix::operator==(), and verify_matrix_identity().

Here is the call graph for this function:

void clearbit long &  x,
long  b
[inline]
 

Definition at line 138 of file builtin.h.

void linalg::compare const Matrix im1,
const Matrix im2,
const char  title[]
 

Definition at line 663 of file matrix1.cpp.

References are_compatible(), assert, linalg::AREALStreamIn::eof(), linalg::AREALStreamIn::get(), linalg::Matrix::info(), max, linalg::AREALStreamIn::peek(), REAL, and linalg::AREALStreamIn::seek().

Here is the call graph for this function:

bool linalg::does_start_with_ci const char *  s1,
const char *  s2
 

Definition at line 221 of file myenv.cpp.

References to_lower().

Here is the call graph for this function:

char* dtoa double  x,
char  cvt = 'g',
int  width = 0,
int  prec = 6
 

double e2_norm const Matrix m1,
const Matrix m2
 

Definition at line 540 of file matrix1.cpp.

References of_every(), and linalg::ElementWiseStrideConst::sum_squares().

Here is the call graph for this function:

int even long  arg  )  [inline]
 

Definition at line 118 of file builtin.h.

double linalg::fminbr const double  a,
const double  b,
UnivariateFunctor &  f,
const double  tol = DBL_EPSILON
 

Definition at line 66 of file fminbr.cpp.

References assure.

unsigned int foldhash double   ) 
 

int fsign const float  f  )  [inline, static]
 

Definition at line 152 of file ali.cpp.

Referenced by linalg::ALInterp::ALInterp().

long gcd long  ,
long 
 

Referenced by lcm().

size_t linalg::get_file_size const char *  file_name,
GFS_Default &  on_error = GFS_default
 

Definition at line 189 of file myenv.cpp.

unsigned int hashpjw const char *   ) 
 

double hjmin Vector b,
const double  h0,
MultivariateFunctor &  f
 

double hjmin Vector b,
Vector h,
MultivariateFunctor &  f
 

bool is_dummy_det_ref double &  determ_ref  )  [static]
 

Definition at line 59 of file matrix_inv.cpp.

Referenced by linalg::Matrix::invert().

long lcm long  x,
long  y
[inline]
 

Definition at line 128 of file builtin.h.

References gcd().

Here is the call graph for this function:

long lg unsigned  long  ) 
 

double max double  a,
double  b
[inline]
 

Definition at line 63 of file LinAlg/minmax.h.

float max float  a,
float  b
[inline]
 

Definition at line 61 of file LinAlg/minmax.h.

unsigned long max unsigned long  a,
unsigned long  b
[inline]
 

Definition at line 59 of file LinAlg/minmax.h.

long max long  a,
long  b
[inline]
 

Definition at line 58 of file LinAlg/minmax.h.

unsigned int max unsigned int  a,
unsigned int  b
[inline]
 

Definition at line 56 of file LinAlg/minmax.h.

int max int  a,
int  b
[inline]
 

Definition at line 55 of file LinAlg/minmax.h.

unsigned short max unsigned short  a,
unsigned short  b
[inline]
 

Definition at line 53 of file LinAlg/minmax.h.

short max short  a,
short  b
[inline]
 

Definition at line 52 of file LinAlg/minmax.h.

unsigned char max unsigned char  a,
unsigned char  b
[inline]
 

Definition at line 50 of file LinAlg/minmax.h.

signed char max signed char  a,
signed char  b
[inline]
 

Definition at line 48 of file LinAlg/minmax.h.

char max char  a,
char  b
[inline]
 

Definition at line 46 of file LinAlg/minmax.h.

Referenced by linalg::SVD::bidiagonalize().

void linalg::message const char *  message,
  ...
 

Definition at line 144 of file myenv.cpp.

Referenced by _error(), linalg::SVD_inv_mult::fill_in(), linalg::SVD::info(), linalg::ALInterp::interpolate(), linalg::Matrix::print(), and verify_element_value().

double min double  a,
double  b
[inline]
 

Definition at line 44 of file LinAlg/minmax.h.

float min float  a,
float  b
[inline]
 

Definition at line 42 of file LinAlg/minmax.h.

unsigned long min unsigned long  a,
unsigned long  b
[inline]
 

Definition at line 40 of file LinAlg/minmax.h.

long min long  a,
long  b
[inline]
 

Definition at line 39 of file LinAlg/minmax.h.

unsigned int min unsigned int  a,
unsigned int  b
[inline]
 

Definition at line 37 of file LinAlg/minmax.h.

int min int  a,
int  b
[inline]
 

Definition at line 36 of file LinAlg/minmax.h.

unsigned short min unsigned short  a,
unsigned short  b
[inline]
 

Definition at line 34 of file LinAlg/minmax.h.

short min short  a,
short  b
[inline]
 

Definition at line 33 of file LinAlg/minmax.h.

unsigned char min unsigned char  a,
unsigned char  b
[inline]
 

Definition at line 31 of file LinAlg/minmax.h.

signed char min signed char  a,
signed char  b
[inline]
 

Definition at line 29 of file LinAlg/minmax.h.

char min char  a,
char  b
[inline]
 

Definition at line 27 of file LinAlg/minmax.h.

unsigned int multiplicativehash int   ) 
 

int odd long  arg  )  [inline]
 

Definition at line 123 of file builtin.h.

ElementWiseStrideConst of_every const ConstMatrixDiag &  md  )  [inline]
 

Definition at line 1403 of file LinAlg.h.

Referenced by e2_norm(), linalg::Matrix::e2_norm(), linalg::Vector::norm_1(), linalg::Vector::norm_2_sqr(), linalg::Vector::norm_inf(), operator!=(), and operator==().

ElementWiseStrideConst of_every const ConstMatrixRow &  mr  )  [inline]
 

Definition at line 1328 of file LinAlg.h.

ElementWiseConst of_every const ConstMatrixColumn &  mc  )  [inline]
 

Definition at line 1271 of file LinAlg.h.

Referenced by linalg::SVD_inv_mult::fill_in().

double operator * const Vector v1,
const Vector v2
 

Definition at line 95 of file vector.cpp.

References are_compatible(), linalg::Matrix::elements, linalg::Matrix::nelems, and REAL.

Here is the call graph for this function:

Matrix::Reference& operator *= Matrix::Reference &  m,
const double  val
[inline]
 

Definition at line 1633 of file LinAlg.h.

References to_every().

Here is the call graph for this function:

Matrix& operator *= Matrix m,
const double  val
[inline]
 

Definition at line 1626 of file LinAlg.h.

References to_every().

Here is the call graph for this function:

Matrix & linalg::operator *= Matrix m,
const ConstMatrixDiag &  diag
 

Definition at line 263 of file matrix_sub.cpp.

References _error(), assert, linalg::AREALStreamIn::eof(), linalg::AREALStrideStreamIn::eof(), linalg::AREALStreamOut::get(), linalg::AREALStrideStreamIn::get(), and REAL.

Here is the call graph for this function:

bool operator!= const Matrix::ConstReference &  m,
const REAL  val
[inline]
 

Definition at line 1643 of file LinAlg.h.

References of_every().

Here is the call graph for this function:

bool operator!= const Matrix m,
const REAL  val
[inline]
 

Definition at line 1639 of file LinAlg.h.

References of_every().

Here is the call graph for this function:

Matrix::Reference& operator+= Matrix::Reference &  m,
const double  val
[inline]
 

Definition at line 1631 of file LinAlg.h.

References to_every().

Here is the call graph for this function:

Matrix& operator+= Matrix m,
const double  val
[inline]
 

Definition at line 1624 of file LinAlg.h.

References to_every().

Here is the call graph for this function:

Matrix::Reference& operator-= Matrix::Reference &  m,
const double  val
[inline]
 

Definition at line 1629 of file LinAlg.h.

References to_every().

Here is the call graph for this function:

Matrix& operator-= Matrix m,
const double  val
[inline]
 

Definition at line 1622 of file LinAlg.h.

References to_every().

Here is the call graph for this function:

ostream& operator<< ostream &  os,
const RWWatchDog &  wd
 

Definition at line 587 of file matrix1.cpp.

References linalg::RWWatchDog::q_engaged(), linalg::RWWatchDog::q_exclusive(), and linalg::RWWatchDog::ref_count.

Here is the call graph for this function:

ostream& operator<< ostream &  os,
const IRange  range
 

Definition at line 568 of file matrix1.cpp.

References linalg::IRange::lwb, and linalg::IRange::upb.

ostream& operator<< ostream &  os,
const rowcol &  rc
 

Definition at line 563 of file matrix1.cpp.

References linalg::rowcol::col, and linalg::rowcol::row.

ostream& operator<< ostream &  os,
const AREALMark &  mark
 

Definition at line 556 of file matrix1.cpp.

References linalg::AREALMark::offset.

ostream& operator<< ostream &  os,
const DimSpec &  dimspec
 

Definition at line 550 of file matrix1.cpp.

References linalg::DimSpec::col_lwb, linalg::DimSpec::ncols, linalg::DimSpec::nrows, and linalg::DimSpec::row_lwb.

bool operator== const Matrix::ConstReference &  m,
const REAL  val
[inline]
 

Definition at line 1641 of file LinAlg.h.

References of_every().

Here is the call graph for this function:

bool operator== const Matrix m,
const REAL  val
[inline]
 

Definition at line 1637 of file LinAlg.h.

References of_every().

Here is the call graph for this function:

double linalg::pow double  x,
long  y
 

Definition at line 271 of file myenv.cpp.

double linalg::pow long  x,
long  y
 

Definition at line 236 of file myenv.cpp.

double linalg::return_elapsed_time const double  Last_Time  ) 
 

Definition at line 320 of file myenv.cpp.

References time_set.

int sign double  arg  )  [inline]
 

Definition at line 101 of file builtin.h.

int sign long  arg  )  [inline]
 

Definition at line 96 of file builtin.h.

long int sqr const int  x  )  [inline]
 

Definition at line 41 of file myenv.h.

double sqr double  arg  )  [inline, static]
 

Definition at line 112 of file builtin.h.

long sqr long  arg  )  [inline, static]
 

Definition at line 106 of file builtin.h.

Referenced by linalg::SVD::left_householder(), and linalg::SVD::right_householder().

double linalg::start_timer void   ) 
 

Definition at line 312 of file myenv.cpp.

References time_set.

int testbit long  x,
long  b
[inline]
 

Definition at line 143 of file builtin.h.

ElementWiseStride to_every const MatrixDiag &  md  )  [inline]
 

Definition at line 1432 of file LinAlg.h.

Referenced by operator *=(), operator+=(), operator-=(), linalg::Matrix::operator=(), and linalg::Vector::operator=().

ElementWiseStride to_every const MatrixRow &  mr  )  [inline]
 

Definition at line 1359 of file LinAlg.h.

ElementWise to_every const MatrixColumn &  mc  )  [inline]
 

Definition at line 1288 of file LinAlg.h.

Referenced by linalg::SVD_inv_mult::fill_in().

int to_lower const char  c  )  [inline, static]
 

Definition at line 213 of file myenv.cpp.

Referenced by does_start_with_ci().

const LazyTransposedMatrix transposed const Matrix proto  )  [inline]
 

Definition at line 770 of file LinAlg.h.

References linalg::Matrix::is_valid().

Referenced by SOptimizer::minimize().

Here is the call graph for this function:

void update_in_direction FPoint &  from,
FPoint &  to
 

Definition at line 145 of file hjmin.cpp.

References linalg::FPoint::fproc, linalg::FPoint::fval, and linalg::FPoint::x.

void verify_element_value const Matrix::ConstReference &  m,
const REAL  val
[inline]
 

Definition at line 692 of file LinAlg.h.

References linalg::Matrix::ConstReference::ref().

Here is the call graph for this function:

void linalg::verify_element_value const Matrix m,
const REAL  val
 

Definition at line 732 of file matrix1.cpp.

References _error(), linalg::Matrix::apply(), linalg::MaxDev::found_val, linalg::MaxDev::imax, linalg::MaxDev::jmax, linalg::MaxDev::max_dev, message(), and REAL.

Here is the call graph for this function:

void verify_matrix_identity const Matrix::ConstReference &  m1,
const Matrix::ConstReference &  m2
[inline]
 

Definition at line 700 of file LinAlg.h.

References linalg::Matrix::ConstReference::ref().

Referenced by verify_matrix_identity().

Here is the call graph for this function:

void verify_matrix_identity const Matrix m1,
const Matrix::ConstReference &  m2
[inline]
 

Definition at line 697 of file LinAlg.h.

References linalg::Matrix::ConstReference::ref(), and verify_matrix_identity().

Here is the call graph for this function:

void verify_matrix_identity const Matrix::ConstReference &  m1,
const Matrix m2
[inline]
 

Definition at line 694 of file LinAlg.h.

References linalg::Matrix::ConstReference::ref(), and verify_matrix_identity().

Here is the call graph for this function:

void linalg::verify_matrix_identity const Matrix m1,
const Matrix m2
 

Definition at line 752 of file matrix1.cpp.

References _error(), are_compatible(), linalg::AREALStreamIn::get(), linalg::AREALStreamIn::peek(), and linalg::AREALStreamIn::seek().

Here is the call graph for this function:

const char * linalg::xgetenv const char *  name,
const char *  default_value
 

Definition at line 82 of file myenv.cpp.

References _error().

Here is the call graph for this function:

char * linalg::xstrncpy char *  dest,
const char *  src,
const int  len
 

Definition at line 202 of file myenv.cpp.

double linalg::zeroin const double  ax,
const double  bx,
UnivariateFunctor &  f,
const double  tol = DBL_EPSILON
 

Definition at line 60 of file zeroin.cpp.

References assure.


Variable Documentation

const char linalg::_Asteriscs
 

Initial value:

 "\
*******************************************************************************"

Definition at line 64 of file myenv.cpp.

const char linalg::_Equals
 

Initial value:

 "\
==============================================================================="

Definition at line 67 of file myenv.cpp.

const char linalg::_Minuses
 

Initial value:

 "\
-------------------------------------------------------------------------------"

Definition at line 61 of file myenv.cpp.

Referenced by linalg::Matrix::print().

struct linalg::GFS_Default linalg::GFS_default
 

void( linalg::setbit)(long &x, long b)
 

Definition at line 133 of file builtin.h.

time_t linalg::time_set [static]
 

Definition at line 310 of file myenv.cpp.

Referenced by return_elapsed_time(), and start_timer().


Generated on Wed Dec 15 21:22:09 2004 for vuVolume by  doxygen 1.3.9.1