Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Commit 9703b34

Browse files
committed
Improve documentation
1 parent 67f9167 commit 9703b34

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/main/java/com/ustermetrics/ecos4j/Model.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ public static String version() {
6464
* @param nExC the number of exponential cones.
6565
* @param gpr the sparse G matrix data (Column Compressed Storage CCS).
6666
* @param gjc the sparse G matrix column index (CCS).
67-
* @param gir the sparse G matrix row index (CCS).
67+
* @param gir the sparse G matrix row index (CCS). Entries within each column need to appear in order of
68+
* increasing row index.
6869
* @param c the cost function weights.
6970
* @param h the right-hand-side of the cone constraints.
7071
* @param apr the (optional) sparse A matrix data (CCS).
7172
* @param ajc the (optional) sparse A matrix column index (CCS).
72-
* @param air the (optional) sparse A matrix row index (CCS).
73+
* @param air the (optional) sparse A matrix row index (CCS). Entries within each column need to appear in order
74+
* of increasing row index.
7375
* @param b the (optional) right-hand-side of the equalities.
7476
* @see <a href="https://github.com/embotech/ecos">ECOS</a>
7577
*/
@@ -139,7 +141,8 @@ private static void checkMatrix(double[] mpr, long[] mjc, long[] mir, int nRows,
139141
* @param nExC the number of exponential cones.
140142
* @param gpr the sparse G matrix data (Column Compressed Storage CCS).
141143
* @param gjc the sparse G matrix column index (CCS).
142-
* @param gir the sparse G matrix row index (CCS).
144+
* @param gir the sparse G matrix row index (CCS). Entries within each column need to appear in order of
145+
* increasing row index.
143146
* @param c the cost function weights.
144147
* @param h the right-hand-side of the cone constraints.
145148
*/
@@ -163,12 +166,14 @@ public void setup(long l, long @NonNull [] q, long nExC, double @NonNull [] gpr,
163166
* @param nExC the number of exponential cones.
164167
* @param gpr the sparse G matrix data (Column Compressed Storage CCS).
165168
* @param gjc the sparse G matrix column index (CCS).
166-
* @param gir the sparse G matrix row index (CCS).
169+
* @param gir the sparse G matrix row index (CCS). Entries within each column need to appear in order of
170+
* increasing row index.
167171
* @param c the cost function weights.
168172
* @param h the right-hand-side of the cone constraints.
169173
* @param apr the (optional) sparse A matrix data (CCS).
170174
* @param ajc the (optional) sparse A matrix column index (CCS).
171-
* @param air the (optional) sparse A matrix row index (CCS).
175+
* @param air the (optional) sparse A matrix row index (CCS). Entries within each column need to appear in order
176+
* of increasing row index.
172177
* @param b the (optional) right-hand-side of the equalities.
173178
*/
174179
public void unsafeSetup(long l, long @NonNull [] q, long nExC, double @NonNull [] gpr, long @NonNull [] gjc,

0 commit comments

Comments
 (0)