~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to CHOLMOD/Check/cholmod_read.c

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/* ========================================================================== */
4
4
 
5
5
/* -----------------------------------------------------------------------------
6
 
 * CHOLMOD/Check Module.  Version 1.3.  Copyright (C) 2005-2006,
7
 
 * Timothy A. Davis.
 
6
 * CHOLMOD/Check Module.  Copyright (C) 2005-2006, Timothy A. Davis.
8
7
 * The CHOLMOD/Check Module is licensed under Version 2.1 of the GNU
9
8
 * Lesser General Public License.  See lesser.txt for a text of the license.
10
9
 * CHOLMOD is also available under other licenses; contact authors for details.
519
518
    cholmod_triplet *T ;
520
519
    double l1, l2 ;
521
520
    Int nitems, xtype, unknown, k, nshould, is_lower, is_upper, one_based, i, j,
522
 
        imax, jmax, ignore, skew_symmetric, p, complex_symmetric ;
 
521
        imax, jmax, skew_symmetric, p, complex_symmetric ;
523
522
    size_t s, nnz2, extra ;
524
523
    int ok = TRUE ;
525
524
 
896
895
)
897
896
{
898
897
    double x, z ;
899
 
    double *Xx ;
 
898
    double *Xx = NULL ;
900
899
    cholmod_dense *X ;
901
 
    Int nitems, xtype, nshould, i, j, k, kup, first ;
 
900
    Int nitems, xtype = -1, nshould = 0, i, j, k, kup, first ;
902
901
 
903
902
    /* ---------------------------------------------------------------------- */
904
903
    /* quick return for empty matrix */
1287
1286
 
1288
1287
    if (*mtype == CHOLMOD_TRIPLET)
1289
1288
    {
1290
 
        /* read in the triplet matrix */
 
1289
        /* read in the triplet matrix, converting to unsymmetric format if
 
1290
         * prefer == 1 */
1291
1291
        T = read_triplet (f, nrow, ncol, nnz, stype, prefer == 1, buf, Common) ;
1292
1292
        if (prefer == 0)
1293
1293
        {