blob: 6f8fa8859f6cb50298518ab107378c0e43f9d06e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*** Matrix and vector example ***/
%module Matrix
%{
#include <math.h>
%}
%include guilemain.i
%include matrix.i
%include vector.i
// Include the math library so we can get some random numbers and
// other stuff
%include math.i
%{
/* Add drand48 declaration as it is posix only and is not in stdlib.h when using strict c99 and later */
extern double drand48(void);
%}
extern double drand48(void);
|