Skip to content

Commit b4e7461

Browse files
committed
fix docu of SparseSymLinearSolverInterface::EMatrixFormat
- CSR_Format gives the upper triangular matrix, not the lower - see #638
1 parent 29ea7c6 commit b4e7461

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Algorithm/LinearSolvers/IpSparseSymLinearSolverInterface.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Ipopt
2020
* This defines the general interface to linear solvers for sparse
2121
* symmetric indefinite matrices. The matrices can be provided
2222
* either in "triplet format" (like for Harwell's MA27 solver), or
23-
* in compressed sparse row (CSR) format for the lower triangular
23+
* in compressed sparse row (CSR) format for the upper triangular
2424
* part of the symmetric matrix.
2525
*
2626
* The solver should be able to compute the inertia of the matrix,
@@ -101,13 +101,13 @@ class SparseSymLinearSolverInterface: public AlgorithmStrategyObject
101101
{
102102
/** Triplet (MA27) format */
103103
Triplet_Format,
104-
/** Compressed sparse row format for lower triangular part, with 0 offset */
104+
/** Compressed sparse row format for upper triangular part, with 0 offset */
105105
CSR_Format_0_Offset,
106-
/** Compressed sparse row format for lower triangular part, with 1 offset */
106+
/** Compressed sparse row format for upper triangular part, with 1 offset */
107107
CSR_Format_1_Offset,
108-
/** Compressed sparse row format for both lwr and upr parts, with 0 offset */
108+
/** Compressed sparse row format for both lower and upper parts, with 0 offset */
109109
CSR_Full_Format_0_Offset,
110-
/** Compressed sparse row format for both lwr and upr parts, with 1 offset */
110+
/** Compressed sparse row format for both lower and upper parts, with 1 offset */
111111
CSR_Full_Format_1_Offset
112112
};
113113

0 commit comments

Comments
 (0)