~ubuntu-branches/ubuntu/oneiric/suitesparse/oneiric

« back to all changes in this revision

Viewing changes to CSparse/Source/cs_usolve.c

  • Committer: Bazaar Package Importer
  • Author(s): Nick Ellery
  • Date: 2009-06-14 19:15:52 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090614191552-2hliya5q8n1quseu
Tags: 1:3.4.0-1ubuntu1
* Merge from debian unstable, remaining changes (LP: #387137):
  - debian/control:
    - demote libatlas-doc from recommends to suggests as it is not in main
    - drop recommends on doc-central as it is not in main

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
{
5
5
    int p, j, n, *Up, *Ui ;
6
6
    double *Ux ;
7
 
    if (!CS_CSC (U) || !x) return (0) ;                     /* check inputs */
 
7
    if (!CS_CSC (U) || !x) return (0) ;                     /* check inputs */
8
8
    n = U->n ; Up = U->p ; Ui = U->i ; Ux = U->x ;
9
9
    for (j = n-1 ; j >= 0 ; j--)
10
10
    {
11
 
        x [j] /= Ux [Up [j+1]-1] ;
12
 
        for (p = Up [j] ; p < Up [j+1]-1 ; p++)
13
 
        {
14
 
            x [Ui [p]] -= Ux [p] * x [j] ;
15
 
        }
 
11
        x [j] /= Ux [Up [j+1]-1] ;
 
12
        for (p = Up [j] ; p < Up [j+1]-1 ; p++)
 
13
        {
 
14
            x [Ui [p]] -= Ux [p] * x [j] ;
 
15
        }
16
16
    }
17
17
    return (1) ;
18
18
}