summaryrefslogtreecommitdiff
path: root/global.h
blob: 755282f670b719f9a5133571bc5884a247e61f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __GLOBAL_INCLUDED__
#define __GLOBAL_INCLUDED__

/**
 * global.h
 * --------
 *
 * purpose: define global structs and parameters
 *
 * @author ilhan oezgen, www.wahyd.tu-berlin.de
 * @date   27 apr 17
 **/


/**
 * define a diagonal matrix -- functionality of the 
 * matrix is implemented in diagonal.c
 *
 * len_c : number of columns in original matrix
 * len_r : number of columns in original matrix
 **/
struct diag {

  double* values;
  int* ids;

  int len_c;
  int len_r;
  int len_d;
  int len_id;

};

#endif