svd.cc File Reference
#include "wonton/support/svd.h"
#include <cstdio>
#include <vector>
#include <cmath>

Namespaces

 Wonton
 Factorize a number N into D equal (or nearly equal) factors.
 

Macros

#define MIN(x, y)   ( (x) < (y) ? (x) : (y) )
 
#define MAX(x, y)   ((x)>(y)?(x):(y))
 
#define SIGN(a, b)   ((b) >= 0.0 ? fabs(a) : -fabs(a))
 

Functions

int Wonton::svd (std::vector< std::vector< double > > &a, std::vector< double > &w, std::vector< std::vector< double > > &v)
 
void Wonton::svd_solve (const std::vector< std::vector< double > > &u, const std::vector< double > &w, const std::vector< std::vector< double > > &v, std::vector< double > &b, std::vector< double > &x)
 

Macro Definition Documentation

◆ MAX

#define MAX (   x,
 
)    ((x)>(y)?(x):(y))

◆ MIN

#define MIN (   x,
 
)    ( (x) < (y) ? (x) : (y) )

◆ SIGN

#define SIGN (   a,
 
)    ((b) >= 0.0 ? fabs(a) : -fabs(a))