YARP
Yet Another Robot Platform
gsl_structs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation; either version 2 of the License, or (at your option) any later
8  * version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef YARP_GSL_IMPL_GSL_COMPATIBILITY_H
21 #define YARP_GSL_IMPL_GSL_COMPATIBILITY_H
22 
23 /*
24  * This file defines types for binary compatibility with the GSL.
25  */
26 
27 #include <cstddef>
28 
29 
30 #ifndef gsl_block
31 typedef struct
32 {
33  size_t size;
34  double *data;
35 } gsl_block;
36 #endif
37 
38 #ifndef gsl_vector
39 struct gsl_vector
40 {
41  size_t size;
42  size_t stride;
43  double *data;
45  int owner;
46 };
47 #endif
48 
49 #ifndef gsl_matrix
50 struct gsl_matrix
51 {
52  size_t size1;
53  size_t size2;
54  size_t tda;
55  double * data;
57  int owner;
58 };
59 #endif
60 
61 #endif // YARP_GSL_IMPL_GSL_COMPATIBILITY_H
gsl_block::data
double * data
Definition: gsl_structs.h:34
gsl_vector::owner
int owner
Definition: gsl_structs.h:45
gsl_matrix::size1
size_t size1
Definition: gsl_structs.h:52
gsl_vector::size
size_t size
Definition: gsl_structs.h:41
gsl_vector::data
double * data
Definition: gsl_structs.h:43
gsl_vector::stride
size_t stride
Definition: gsl_structs.h:42
gsl_vector
Definition: gsl_structs.h:40
gsl_vector::block
gsl_block * block
Definition: gsl_structs.h:44
gsl_block
Definition: gsl_structs.h:32
gsl_matrix::size2
size_t size2
Definition: gsl_structs.h:53
gsl_matrix::data
double * data
Definition: gsl_structs.h:55
gsl_matrix
Definition: gsl_structs.h:51
gsl_matrix::tda
size_t tda
Definition: gsl_structs.h:54
gsl_block::size
size_t size
Definition: gsl_structs.h:33
gsl_matrix::block
gsl_block * block
Definition: gsl_structs.h:56
gsl_matrix::owner
int owner
Definition: gsl_structs.h:57