Thank you for your interest in contributing to SCS! For detailed guidelines, see the contribution docs.
# Build
make
# Build and run tests
make test
./out/run_tests_direct
./out/run_tests_indirect
# Build with options
make DLONG=1 USE_LAPACK=1
# Clean everything
make purgeThe spectral-cone tests are skipped by default.
USE_SPECTRAL_CONESdefaults to0(seescs.mk), so a defaultmake testreports the spectral-cone tests asskipped(the summary line at the end of a run counts and names them) and exercises none ofsrc/spectral_cones/— while still printingALL TESTS PASSED. If you touch the log-determinant, nuclear-norm, sum-of-largest or ell1 cone code, build and test with the flag enabled:make test USE_SPECTRAL_CONES=1 ./out/run_tests_direct
- Fork the repo and create a feature branch from
master - Make your changes
- Run the test suite to ensure nothing is broken
- Submit a pull request against
master
- C99 with
-Wall -Wwrite-strings -pedantic -Werror=incompatible-pointer-types - Internal functions use the
SCS(name)macro (expands to_scs_name) - Public API functions use the
scs_prefix directly - Types:
scs_float(double/float),scs_int(int/long long)
| Directory | Contents |
|---|---|
include/ |
Public API and internal headers |
src/ |
Core solver implementation |
linsys/ |
Linear solver backends (pluggable) |
test/ |
Test suite (minunit framework) |
docs/src/ |
Sphinx documentation source |
| Topic | Reference |
|---|---|
| Algorithm, termination criteria, scaling | docs/src/algorithm/ (online) |
| Linear solver backends and the KKT system | docs/src/linear_solver/ (online) |
| Adding a new linear solver backend | Implementing a new linear solver — implement ScsLinSysWork and the functions in include/linsys.h; see linsys/ for seven worked examples |
| Supported cones and their data layout | docs/src/api/cones.rst (online) |
| Compile-time flags | docs/src/api/compile_flags.rst (online) |