~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/cdhc/dagstndn.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "local_proto.h"
5
5
 
6
6
 
7
 
double *dagostino_d(double *x, int n)
 
7
double *Cdhc_dagostino_d(double *x, int n)
8
8
{
9
9
    int i;
10
10
    static double y[2];
18
18
    for (i = 0; i < n; ++i)
19
19
        xcopy[i] = x[i];
20
20
 
21
 
    qsort(xcopy, n, sizeof(double), dcmp);
 
21
    qsort(xcopy, n, sizeof(double), Cdhc_dcmp);
22
22
 
23
23
    for (i = 0; i < n; ++i) {
24
24
        t += xcopy[i] * ((i + 1) - 0.5 * (n + 1));