vendor/scs/include/linsys.h in scs-0.4.0 vs vendor/scs/include/linsys.h in scs-0.4.1
- old
+ new
@@ -21,19 +21,19 @@
* @param P `P` data matrix, `n x n`.
* @param diag_r `R > 0` diagonal entries of length `m + n`.
* @return Linear system solver workspace.
*
*/
-ScsLinSysWork *SCS(init_lin_sys_work)(const ScsMatrix *A, const ScsMatrix *P,
- const scs_float *diag_r);
+ScsLinSysWork *scs_init_lin_sys_work(const ScsMatrix *A, const ScsMatrix *P,
+ const scs_float *diag_r);
/**
* Frees `ScsLinSysWork` structure and associated allocated memory.
*
* @param w Linear system private workspace.
*/
-void SCS(free_lin_sys_work)(ScsLinSysWork *w);
+void scs_free_lin_sys_work(ScsLinSysWork *w);
/**
* Solves the linear system as required by SCS at each iteration:
* \f[
* \begin{bmatrix}
@@ -46,31 +46,31 @@
*
* @param w Linear system private workspace.
* @param b Right hand side, contains solution at the end.
* @param s Contains warm-start (may be NULL).
* @param tol Tolerance required for the system solve.
- * @return status < 0 indicates failure.
+ * @return status != 0 indicates failure.
*
*/
-scs_int SCS(solve_lin_sys)(ScsLinSysWork *w, scs_float *b, const scs_float *s,
- scs_float tol);
+scs_int scs_solve_lin_sys(ScsLinSysWork *w, scs_float *b, const scs_float *s,
+ scs_float tol);
/**
* Update the linsys workspace when `R` is changed. For example, a
* direct method for solving the linear system might need to update the
* factorization of the matrix.
*
* @param w Linear system private workspace.
* @param new_diag_r Updated `diag_r`, diagonal entries of R.
*
*/
-void SCS(update_lin_sys_diag_r)(ScsLinSysWork *w, const scs_float *new_diag_r);
+void scs_update_lin_sys_diag_r(ScsLinSysWork *w, const scs_float *new_diag_r);
/**
* Name of the linear solver.
*
* @return name of method.
*/
-const char *SCS(get_lin_sys_method)(void);
+const char *scs_get_lin_sys_method(void);
#ifdef __cplusplus
}
#endif