Skip to content

Commit ac3dcc8

Browse files
committed
fix formatting
1 parent 3e82355 commit ac3dcc8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cpp/src/dual_simplex/cusparse_view.cu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ void my_cusparsespmv_preprocess(cusparseHandle_t handle,
116116
static cusparseSpMVAlg_t get_spmv_alg(int num_rows)
117117
{
118118
// The older version of ALG2 has a bug with single row matrices
119-
if (num_rows == 1 && (CUSPARSE_VER_MAJOR <= 12 && CUSPARSE_VER_MINOR <= 6 && CUSPARSE_VER_PATCH <= 2)) { return CUSPARSE_SPMV_CSR_ALG1; }
119+
if (num_rows == 1 &&
120+
(CUSPARSE_VER_MAJOR <= 12 && CUSPARSE_VER_MINOR <= 6 && CUSPARSE_VER_PATCH <= 2)) {
121+
return CUSPARSE_SPMV_CSR_ALG1;
122+
}
120123
return CUSPARSE_SPMV_CSR_ALG2;
121124
}
122125

docs/cuopt/source/cuopt-python/lp-qp-milp/examples/simple_qp_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def main():
3737

3838
# Add constraint: x + y >= 1
3939
prob.addConstraint(x + y >= 1)
40-
prob.addConstraint(0.75*x + y <= 1)
40+
prob.addConstraint(0.75 * x + y <= 1)
4141

4242
# Set quadratic objective: minimize x^2 + y^2
4343
# Using Variable * Variable to create quadratic terms

0 commit comments

Comments
 (0)