File: Matrix.i

package info (click to toggle)
libmath-gsl-perl 0.45-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 192,156 kB
  • sloc: ansic: 895,524; perl: 24,682; makefile: 12
file content (44 lines) | stat: -rw-r--r-- 1,268 bytes parent folder | download | duplicates (2)
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
42
43
44
// Red Pill or Blue Pill ?
%module "Math::GSL::Matrix"

%include "typemaps.i"
%include "gsl_typemaps.i"
%include "renames.i"

%rename ("%(regex:/^gsl_matrix_char.*/$ignore/)s") "";
%rename ("%(regex:/^gsl_matrix_uchar.*/$ignore/)s") "";
%rename ("%(regex:/^gsl_matrix_uint.*/$ignore/)s") "";
%rename ("%(regex:/^gsl_matrix_ulong.*/$ignore/)s") "";
%rename ("%(regex:/^gsl_matrix_ushort.*/$ignore/)s") "";

%apply int *OUTPUT { size_t *imin, size_t *imax, size_t *jmin, size_t *jmax };
%apply double *OUTPUT { double * min_out, double * max_out };

%{
    #include "gsl/gsl_inline.h"
    #include "gsl/gsl_blas_types.h"
    #include "gsl/gsl_matrix.h"
    #include "gsl/gsl_complex.h"
    #include "gsl/gsl_vector_double.h"
    #include "gsl/gsl_matrix_double.h"
    #include "gsl/gsl_matrix_int.h"
    #include "gsl/gsl_matrix_complex_double.h"
    #include "gsl/gsl_matrix_char.h"

    #include "../c/Matrix.c"
%}

%include "gsl/gsl_inline.h"
%include "gsl/gsl_blas_types.h"
%include "gsl/gsl_matrix.h"
%include "gsl/gsl_complex.h"
%include "gsl/gsl_vector_double.h"
%include "gsl/gsl_matrix_double.h"
%include "gsl/gsl_matrix_int.h"
%include "gsl/gsl_matrix_complex_double.h"
%include "gsl/gsl_matrix_char.h"

%include "../c/Matrix.h"


%include "../pod/Matrix.pod"