-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchaos.i
41 lines (33 loc) · 1.14 KB
/
chaos.i
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
35
36
37
38
39
40
41
%module chaos
%{
#define SWIG_FILE_WITH_INIT
%}
%include "numpy.i"
%init %{
import_array();
%}
%apply (int* INPLACE_ARRAY1, int DIM1) {(int* start_ints, int n)}
%inline %{
void collatz(int *start_ints, int n);
%}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* x_points, int N)}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* y_points, int M)}
%inline %{
void henon(double *x_points, int N, double *y_points, int M, double a, double b, int steps);
%}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* x_points, int N)}
%inline %{
void logistics_map(double *x_points, int N, double r, int steps);
%}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* x_points, int N)}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* y_points, int M)}
%inline %{
void tinkerbell(double *x_points, int N, double *y_points, int M, double a, double b,
double c, double d, int steps);
%}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* x_points, int N)}
%apply (double* INPLACE_ARRAY1, int DIM1) {(double* y_points, int M)}
%inline %{
void bogdanov(double *x_points, int N, double *y_points, int M, double eps, double k,
double mew, int steps);
%}