home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / gnuplot.lha / gnuplot / src / matrix.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-01  |  1.1 KB  |  48 lines

  1. /* $Id: matrix.h 1.1 1993/08/01 04:21:55 cg Exp cg $ */
  2.  
  3. /*
  4.  *    Header file: public functions in matrix.c
  5.  *
  6.  *
  7.  *    Copyright of this module:   Carsten Grammes, 1993
  8.  *      Experimental Physics, University of Saarbruecken, Germany
  9.  *
  10.  *    Internet address: cagr@rz.uni-sb.de
  11.  *
  12.  *    Permission to use, copy, and distribute this software and its
  13.  *    documentation for any purpose with or without fee is hereby granted,
  14.  *    provided that the above copyright notice appear in all copies and
  15.  *    that both that copyright notice and this permission notice appear
  16.  *    in supporting documentation.
  17.  *
  18.  *      This software is provided "as is" without express or implied warranty.
  19.  */
  20.  
  21.  
  22. #ifndef MATRIX_H
  23. #define MATRIX_H
  24.  
  25. #ifdef EXT
  26. #undef EXT
  27. #endif
  28.  
  29. #ifdef MATRIX_MAIN
  30. #define EXT
  31. #else
  32. #define EXT extern
  33. #endif
  34.  
  35.  
  36. /******* public functions ******/
  37.  
  38. EXT double  *vec (int n);
  39. EXT int     *ivec (int n);
  40. EXT double  **matr (int r, int c);
  41. EXT void    free_matr (double **m, int r);
  42. EXT void    redim_vec (double **v, int n);
  43. EXT void    redim_ivec (int **v, int n);
  44. EXT void    solve (double **a, int n, double **b, int m);
  45. EXT void    inverse (double **src, double **dst, int n);
  46.  
  47. #endif
  48.