~ubuntu-branches/ubuntu/saucy/argyll/saucy

« back to all changes in this revision

Viewing changes to numlib/svd.h

  • Committer: Package Import Robot
  • Author(s): Christian Marillat
  • Date: 2012-04-25 07:46:07 UTC
  • mfrom: (1.2.2) (13.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20120425074607-yjqadetw8kum9skc
Tags: 1.4.0-4
Should Build-Depends on libusb-dev (Closes: #670329).

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
/* Solve the equation A.x = b using SVD */
54
54
/* (The w[] values are thresholded for best accuracy) */
55
55
/* Return non-zero if no solution found */
 
56
/* !!! Note that A[][] will be changed !!! */
56
57
int svdsolve(
57
58
double **a,             /* A[0..m-1][0..n-1] input A[][], will return U[][] */
58
59
double b[],             /* B[0..m-1]  Right hand side of equation, return solution */
60
61
int      n              /* Number of unknowns */
61
62
);
62
63
 
 
64
/* Solve the equation A.x = b using SVD */
 
65
/* The top s out of n singular values will be used */
 
66
/* Return non-zero if no solution found */
 
67
/* !!! Note that A[][] will be changed !!! */
 
68
int svdsolve_s(
 
69
double **a,             /* A[0..m-1][0..n-1] input A[][], will return U[][] */
 
70
double b[],             /* B[0..m-1]  Right hand side of equation, return solution */
 
71
int      m,             /* Number of equations */
 
72
int      n,             /* Number of unknowns */
 
73
int      s              /* Number of unknowns */
 
74
);
 
75
 
63
76
/* Solve the equation A.x = b using Direct calculation, LU or SVD as appropriate */
64
77
/* Return non-zero if no solution found */
 
78
/* !!! Note that A[][] will be changed !!! */
65
79
int gen_solve_se(
66
80
double **a,             /* A[0..m-1][0..n-1] input A[][], will return U[][] */
67
81
double b[],             /* B[0..m-1]  Right hand side of equation, return solution */