File: matrix.c

package info (click to toggle)
libgsl-ruby 1.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,524 kB
  • ctags: 8,554
  • sloc: ansic: 62,030; ruby: 17,791; makefile: 17; sh: 15
file content (39 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (4)
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
/*
  matrix.c
  Ruby/GSL: Ruby extension library for GSL (GNU Scientific Library)
    (C) Copyright 2001-2006 by Yoshiki Tsunesada

  Ruby/GSL is free software: you can redistribute it and/or modify it
  under the terms of the GNU General Public License.
  This library is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY.
*/

/*
  This code uses "templates_on.h" and "templates_off.h",
  which are provided by the GSL source.
 */

#include "rb_gsl_config.h"
#include "rb_gsl_array.h"
#include "rb_gsl_histogram.h"
#include "rb_gsl_complex.h"
#include "rb_gsl_poly.h"
#ifdef HAVE_NARRAY_H
#include "rb_gsl_with_narray.h"
#endif

int gsl_linalg_matmult_int(const gsl_matrix_int *A, 
			   const gsl_matrix_int *B, gsl_matrix_int *C);

#define BASE_DOUBLE
#include "templates_on.h"
#include "matrix_source.c"
#include "templates_off.h"
#undef  BASE_DOUBLE

#define BASE_INT
#include "templates_on.h"
#include "matrix_source.c"
#include "templates_off.h"
#undef  BASE_INT