28 #ifndef SCS_NORMALIZE_H_GUARD
29 #define SCS_NORMALIZE_H_GUARD
34 #define MIN_SCALE (1e-3)
35 #define MAX_SCALE (1e3)
41 for (i = 0; i < w->
m; ++i) {
47 for (i = 0; i < w->
n; ++i) {
108 for (i = 0; i < w->
m; ++i) {
115 for (i = 0; i < w->
n; ++i) {
116 x[i] *= (E[i] * w->
sc_b);
118 for (i = 0; i < w->
m; ++i) {
119 y[i] *= (D[i] * w->
sc_c);
127 for (i = 0; i < w->
n; ++i) {
128 sol->
x[i] /= (E[i] * w->
sc_b);
130 for (i = 0; i < w->
m; ++i) {
131 sol->
y[i] /= (D[i] * w->
sc_c);
133 for (i = 0; i < w->
m; ++i) {
#define MIN_SCALE
Definition: normalize.h:34
scs_int m
Row dimension of .
Definition: scs.h:79
scs_float *RESTRICT c
The (possibly normalized) vector .
Definition: scs.h:142
scs_float scale
Definition: scs.h:313
scs_int do_super_scs
Definition: scs.h:386
void scs_normalize_bc(ScsWork *w)
Definition: normalize.h:37
scs_float sc_c
Scaling factor corresponding to .
Definition: scs.h:212
scs_float *RESTRICT s
Definition: scs.h:530
scs_float *RESTRICT u_t
Vector .
Definition: scs.h:99
scs_float *RESTRICT x
Definition: scs.h:522
void scs_unnormalize_sol(ScsWork *w, ScsSolution *sol)
Definition: normalize.h:123
#define MAX(a, b)
Definition: glbopts.h:123
scs_float meanNormRowA
Definition: scs.h:573
scs_float *RESTRICT *RESTRICT E
Definition: scs.h:572
scs_float *RESTRICT b
The (possibly normalized) vector .
Definition: scs.h:138
int scs_int
Definition: glbopts.h:96
scs_float sc_b
Scaling factor corresponding to .
Definition: scs.h:208
void scs_normalize_warm_start(ScsWork *w)
Definition: normalize.h:94
scs_float meanNormColA
Definition: scs.h:573
double scs_float
Definition: glbopts.h:100
scs_float *RESTRICT u
Vector .
Definition: scs.h:91
Workspace for SCS.
Definition: scs.h:75
scs_float *RESTRICT D
Definition: scs.h:572
scs_float scs_norm(const scs_float *RESTRICT v, scs_int len)
scs_int n
Column dimension of .
Definition: scs.h:83
scs_float *RESTRICT y
Definition: scs.h:526
void scs_scale_array(scs_float *RESTRICT a, const scs_float b, scs_int len)
ScsScaling *RESTRICT scal
contains the re-scaling data
Definition: scs.h:240
Primal-dual solution arrays.
Definition: scs.h:518
ScsSettings *RESTRICT stgs
contains solver settings specified by user
Definition: scs.h:236