~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/libcola/conjugate_gradient.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _CONJUGATE_GRADIENT_H
 
2
#define _CONJUGATE_GRADIENT_H
 
3
 
 
4
#include <valarray>
 
5
 
 
6
double
 
7
inner(std::valarray<double> const &x, 
 
8
      std::valarray<double> const &y);
 
9
 
 
10
void 
 
11
conjugate_gradient(double **A, 
 
12
                   double *x, 
 
13
                   double *b, 
 
14
                   unsigned n, 
 
15
                   double tol,
 
16
           unsigned max_iterations);
 
17
void 
 
18
conjugate_gradient(std::valarray<double> const &A, 
 
19
                   std::valarray<double> &x, 
 
20
                   std::valarray<double> const &b, 
 
21
                   unsigned n, double tol,
 
22
                   unsigned max_iterations);
 
23
#endif // _CONJUGATE_GRADIENT_H