blob: 0df9c04d9c77da2e6fbbec969ce45207cf293549 [file] [log] [blame]
Austin Schuh9049e202022-02-20 17:34:16 -08001#ifndef SCALING_H
2# define SCALING_H
3
4# ifdef __cplusplus
5extern "C" {
6# endif // ifdef __cplusplus
7
8// Functions to scale problem data
9# include "types.h"
10# include "lin_alg.h"
11# include "constants.h"
12
13// Enable data scaling if EMBEDDED is disabled or if EMBEDDED == 2
14# if EMBEDDED != 1
15
16/**
17 * Scale problem matrices
18 * @param work Workspace
19 * @return exitflag
20 */
21c_int scale_data(OSQPWorkspace *work);
22# endif // if EMBEDDED != 1
23
24
25/**
26 * Unscale problem matrices
27 * @param work Workspace
28 * @return exitflag
29 */
30c_int unscale_data(OSQPWorkspace *work);
31
32
33/**
34 * Unscale solution
35 * @param work Workspace
36 * @return exitflag
37 */
38c_int unscale_solution(OSQPWorkspace *work);
39
40# ifdef __cplusplus
41}
42# endif // ifdef __cplusplus
43
44#endif // ifndef SCALING_H