File: SparseMatrix.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 (38 lines) | stat: -rw-r--r-- 1,216 bytes parent folder | download
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
%module "Math::GSL::SparseMatrix"

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

%{
    #include "gsl/gsl_spmatrix.h"
%}

#if MG_GSL_NUM_VERSION >= 2006
// ignore gsl_spmatrix_uchar_norm1, gsl_spmatrix_char_norm1, ...
  %rename ("%(regex:/^gsl_spmatrix_char.*/$ignore/)s") "";
  %rename ("%(regex:/^gsl_spmatrix_uchar.*/$ignore/)s") "";
  %rename ("%(regex:/^gsl_spmatrix_uint.*/$ignore/)s") "";
  %rename ("%(regex:/^gsl_spmatrix_ulong.*/$ignore/)s") "";
  %rename ("%(regex:/^gsl_spmatrix_ushort.*/$ignore/)s") "";
  %include "gsl/gsl_spmatrix.h"
  %include "gsl/gsl_spmatrix_double.h"
  %include "gsl/gsl_spmatrix_complex_long_double.h"
  %include "gsl/gsl_spmatrix_complex_float.h"
  %include "gsl/gsl_spmatrix_long_double.h"
  %include "gsl/gsl_spmatrix_uint.h"
  %include "gsl/gsl_spmatrix_double.h"
  %include "gsl/gsl_spmatrix_complex_double.h"
  %include "gsl/gsl_spmatrix_char.h"
  %include "gsl/gsl_spmatrix_uchar.h"
  %include "gsl/gsl_spmatrix_int.h"
  %include "gsl/gsl_spmatrix_short.h"
  %include "gsl/gsl_spmatrix_float.h"
  %include "gsl/gsl_spmatrix_ushort.h"
#else
  %include "legacy/gsl-2.5/gsl_spmatrix.h"
#endif


%include "../pod/SparseMatrix.pod"