SuperSCS  1.3.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
amatrix.h
Go to the documentation of this file.
1 /*
2  * The MIT License (MIT)
3  *
4  * Copyright (c) 2017 Pantelis Sopasakis (https://alphaville.github.io),
5  * Krina Menounou (https://www.linkedin.com/in/krinamenounou),
6  * Panagiotis Patrinos (http://homes.esat.kuleuven.be/~ppatrino)
7  * Copyright (c) 2012 Brendan O'Donoghue (bodonoghue85@gmail.com)
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a copy
10  * of this software and associated documentation files (the "Software"), to deal
11  * in the Software without restriction, including without limitation the rights
12  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13  * copies of the Software, and to permit persons to whom the Software is
14  * furnished to do so, subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included in all
17  * copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25  * SOFTWARE.
26  *
27  */
28 #ifndef AMATRIX_H_GUARD
29 #define AMATRIX_H_GUARD
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /* this struct defines the data matrix A */
36 
45  /* A is supplied in column compressed format */
49  scs_float *x; /* A values, size: NNZ A */
72 };
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 #endif
scs_int * i
The row-index of the matrix ( ).
Definition: amatrix.h:55
scs_float * x
Values of A.
Definition: amatrix.h:49
The sparse matrix A of the conic optimization problem.
Definition: amatrix.h:44
scs_int * p
Array of column pointers of A in CSC format ( ).
Definition: amatrix.h:63
int scs_int
Definition: glbopts.h:96
scs_int n
Number of columns ( ).
Definition: amatrix.h:71
scs_int m
Number of rows ( ).
Definition: amatrix.h:67
double scs_float
Definition: glbopts.h:100