Repository navigation
v0.2.1
v0.2.1
What's New in v0.2.1
Generalized low-rank quadratic term. The objective now supports the form
where D is an optional rank × rank middle matrix. When omitted, D defaults to the identity and the previous version. D may be diagonal, sparse, dense, or indefinite — no PSD requirement.
Testing
test/test_lowrank_middle_D.py exercises six cases, each cross-checked against an equivalent formulation:
| Case | Reference |
|---|---|
D = I |
matches no-D baseline |
1-D diag D (PSD) |
matches folded R' = sqrt(D) R |
2-D dense D (PSD) |
matches folded R' = L^T R (Cholesky D = L L^T) |
Indefinite dense D |
matches explicit Q_eff = R^T D R |
Sparse CSR D |
matches dense D with same values |
Sparse CSR diagonal-only D |
detected as DIAG, matches 1-D path |
Compatibility
- Public ABI break:
create_qp_problemsignature changed (one extra parameter). C callers must update. - Python API: additive; existing code continues to work unchanged.