This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 1507 | Differences between
and this patch

Collapse All | Expand All

(-)a/Eigen/src/PaStiXSupport/PaStiXSupport.h (-14 lines)
Lines 103-122 namespace internal Link Here
103
        ++mat.innerIndexPtr()[i];
103
        ++mat.innerIndexPtr()[i];
104
    }
104
    }
105
  }
105
  }
106
107
  // Convert to C-style Numbering
108
  template <typename MatrixType>
109
  void fortran_to_c_numbering (MatrixType& mat)
110
  {
111
    // Check the Numbering
112
    if (mat.outerIndexPtr()[0] == 1)
113
    {
114
      for(Index i = 0; i <= mat.rows(); ++i)
115
        --mat.outerIndexPtr()[i];
116
      for(Index i = 0; i < mat.nonZeros(); ++i)
117
        --mat.innerIndexPtr()[i];
118
    }
119
  }
120
}
106
}
121
107
122
// This is the base class to interface with PaStiX functions.
108
// This is the base class to interface with PaStiX functions.

Return to bug 1507