Wondercoll
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
cxsvd.cpp File Reference
#include "_cxcore.h"
#include <float.h>

Macros

#define icvGivens_64f(n, x, y, c, s)
 
#define icvGivens_32f(n, x, y, c, s)
 
#define MAX_ITERS   30
 

Functions

CV_IMPL void cvSVD (CvArr *aarr, CvArr *warr, CvArr *uarr, CvArr *varr, int flags)
 
CV_IMPL void cvSVBkSb (const CvArr *warr, const CvArr *uarr, const CvArr *varr, const CvArr *barr, CvArr *xarr, int flags)
 

Macro Definition Documentation

#define icvGivens_32f (   n,
  x,
  y,
  c,
 
)
Value:
{ \
int _i; \
float* _x = (x); \
float* _y = (y); \
for( _i = 0; _i < n; _i++ ) \
{ \
double t0 = _x[_i]; \
double t1 = _y[_i]; \
_x[_i] = (float)(t0*c + t1*s); \
_y[_i] = (float)(-t0*s + t1*c);\
} \
}
#define icvGivens_64f (   n,
  x,
  y,
  c,
 
)
Value:
{ \
int _i; \
double* _x = (x); \
double* _y = (y); \
for( _i = 0; _i < n; _i++ ) \
{ \
double t0 = _x[_i]; \
double t1 = _y[_i]; \
_x[_i] = t0*c + t1*s; \
_y[_i] = -t0*s + t1*c; \
} \
}
#define MAX_ITERS   30

Function Documentation

CV_IMPL void cvSVBkSb ( const CvArr warr,
const CvArr uarr,
const CvArr varr,
const CvArr barr,
CvArr xarr,
int  flags 
)
CV_IMPL void cvSVD ( CvArr aarr,
CvArr warr,
CvArr uarr,
CvArr varr,
int  flags 
)