/[escript]/trunk/paso/src/mmio.h
ViewVC logotype

Diff of /trunk/paso/src/mmio.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 633 by dhawcroft, Thu Mar 23 05:37:00 2006 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1    
2  /* $Id$ */  /* $Id$ */
3    
4  /*  /*******************************************************
5  ********************************************************************************   *
6  *               Copyright   2006 by ACcESS MNRF                                *   *           Copyright 2003-2007 by ACceSS MNRF
7  *                                                                              *   *       Copyright 2007 by University of Queensland
8  *                 http://www.access.edu.au                                     *   *
9  *           Primary Business: Queensland, Australia                            *   *                http://esscc.uq.edu.au
10  *     Licensed under the Open Software License version 3.0             *   *        Primary Business: Queensland, Australia
11  *        http://www.opensource.org/licenses/osl-3.0.php                        *   *  Licensed under the Open Software License version 3.0
12  ********************************************************************************   *     http://www.opensource.org/licenses/osl-3.0.php
13  */   *
14     *******************************************************/
15    
16  /*  /*
17  *   Matrix Market I/O library for ANSI C  *   Matrix Market I/O library for ANSI C
# Line 21  Line 23 
23  #ifndef MM_IO_H  #ifndef MM_IO_H
24  #define MM_IO_H  #define MM_IO_H
25    
26  #ifdef __cplusplus  #include <stdio.h>
 extern "C" {  
 #endif  
27    
28  #define MM_MAX_LINE_LENGTH 1025  #define MM_MAX_LINE_LENGTH 1025
29  #define MatrixMarketBanner "%%MatrixMarket"  #define MatrixMarketBanner "%%MatrixMarket"
# Line 134  int mm_is_valid(MM_typecode matcode);      / Line 134  int mm_is_valid(MM_typecode matcode);      /
134    
135  /*  high level routines */  /*  high level routines */
136    
137  int mm_write_mtx_crd(char fname[], int M, int N, int nz, int I[], int J[],  int mm_write_mtx_crd(char fname[], int M, int N, int nz, int i[], int j[],
138           double val[], MM_typecode matcode);           double val[], MM_typecode matcode);
139  int mm_read_mtx_crd_data(FILE *f, int M, int N, int nz, int I[], int J[],  int mm_read_mtx_crd_data(FILE *f, int M, int N, int nz, int i[], int j[],
140          double val[], MM_typecode matcode);          double val[], MM_typecode matcode);
141  int mm_read_mtx_crd_entry(FILE *f, int *I, int *J, double *real, double *img,  int mm_read_mtx_crd_entry(FILE *f, int *i, int *j, double *real, double *img,
142              MM_typecode matcode);              MM_typecode matcode);
143    
144  int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_,  int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_,
145                  double **val_, int **I_, int **J_);                  double **val_, int **I_, int **J_);
146    
 #ifdef __cplusplus  
 }  
 #endif  
   
147  #endif  #endif
148    
149  /*  /*

Legend:
Removed from v.633  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26