Skip to content

Commit

Permalink
validate nuclear cone
Browse files Browse the repository at this point in the history
  • Loading branch information
dance858 committed Nov 11, 2024
1 parent 5cc8b31 commit 676041d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cones.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ scs_int SCS(validate_cones)(const ScsData *d, const ScsCone *k) {
return -1;
}
for (i = 0; i < k->nucsize; ++i) {
if (k->nuc_m[i] < 1 || k->nuc_n[i] < 1 || k->nuc_n[i] < k->nuc_m[i]) {
if (k->nuc_m[i] < 1 || k->nuc_n[i] < 1 || k->nuc_n[i] > k->nuc_m[i]) {
scs_printf("nuclear norm cone dimension error\n");
return -1;
}
Expand Down

0 comments on commit 676041d

Please sign in to comment.