Skip to content

Commit

Permalink
fix docu of SparseSymLinearSolverInterface::EMatrixFormat
Browse files Browse the repository at this point in the history
- CSR_Format gives the upper triangular matrix, not the lower
- see #638
  • Loading branch information
svigerske committed Feb 2, 2023
1 parent 29ea7c6 commit b4e7461
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Algorithm/LinearSolvers/IpSparseSymLinearSolverInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Ipopt
* This defines the general interface to linear solvers for sparse
* symmetric indefinite matrices. The matrices can be provided
* either in "triplet format" (like for Harwell's MA27 solver), or
* in compressed sparse row (CSR) format for the lower triangular
* in compressed sparse row (CSR) format for the upper triangular
* part of the symmetric matrix.
*
* The solver should be able to compute the inertia of the matrix,
Expand Down Expand Up @@ -101,13 +101,13 @@ class SparseSymLinearSolverInterface: public AlgorithmStrategyObject
{
/** Triplet (MA27) format */
Triplet_Format,
/** Compressed sparse row format for lower triangular part, with 0 offset */
/** Compressed sparse row format for upper triangular part, with 0 offset */
CSR_Format_0_Offset,
/** Compressed sparse row format for lower triangular part, with 1 offset */
/** Compressed sparse row format for upper triangular part, with 1 offset */
CSR_Format_1_Offset,
/** Compressed sparse row format for both lwr and upr parts, with 0 offset */
/** Compressed sparse row format for both lower and upper parts, with 0 offset */
CSR_Full_Format_0_Offset,
/** Compressed sparse row format for both lwr and upr parts, with 1 offset */
/** Compressed sparse row format for both lower and upper parts, with 1 offset */
CSR_Full_Format_1_Offset
};

Expand Down

0 comments on commit b4e7461

Please sign in to comment.