Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-19 09:56:39

0001 /* block/gsl_block_complex_double.h
0002  * 
0003  * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
0004  * 
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 3 of the License, or (at
0008  * your option) any later version.
0009  * 
0010  * This program is distributed in the hope that it will be useful, but
0011  * WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * General Public License for more details.
0014  * 
0015  * You should have received a copy of the GNU General Public License
0016  * along with this program; if not, write to the Free Software
0017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018  */
0019 
0020 #ifndef __GSL_BLOCK_COMPLEX_DOUBLE_H__
0021 #define __GSL_BLOCK_COMPLEX_DOUBLE_H__
0022 
0023 #include <stdlib.h>
0024 #include <gsl/gsl_errno.h>
0025 
0026 #undef __BEGIN_DECLS
0027 #undef __END_DECLS
0028 #ifdef __cplusplus
0029 # define __BEGIN_DECLS extern "C" {
0030 # define __END_DECLS }
0031 #else
0032 # define __BEGIN_DECLS /* empty */
0033 # define __END_DECLS /* empty */
0034 #endif
0035 
0036 __BEGIN_DECLS
0037 
0038 struct gsl_block_complex_struct
0039 {
0040   size_t size;
0041   double *data;
0042 };
0043 
0044 typedef struct gsl_block_complex_struct gsl_block_complex;
0045 
0046 gsl_block_complex *gsl_block_complex_alloc (const size_t n);
0047 gsl_block_complex *gsl_block_complex_calloc (const size_t n);
0048 void gsl_block_complex_free (gsl_block_complex * b);
0049 
0050 int gsl_block_complex_fread (FILE * stream, gsl_block_complex * b);
0051 int gsl_block_complex_fwrite (FILE * stream, const gsl_block_complex * b);
0052 int gsl_block_complex_fscanf (FILE * stream, gsl_block_complex * b);
0053 int gsl_block_complex_fprintf (FILE * stream, const gsl_block_complex * b, const char *format);
0054 
0055 int gsl_block_complex_raw_fread (FILE * stream, double * b, const size_t n, const size_t stride);
0056 int gsl_block_complex_raw_fwrite (FILE * stream, const double * b, const size_t n, const size_t stride);
0057 int gsl_block_complex_raw_fscanf (FILE * stream, double * b, const size_t n, const size_t stride);
0058 int gsl_block_complex_raw_fprintf (FILE * stream, const double * b, const size_t n, const size_t stride, const char *format);
0059 
0060 size_t gsl_block_complex_size (const gsl_block_complex * b);
0061 double * gsl_block_complex_data (const gsl_block_complex * b);
0062 
0063 __END_DECLS
0064 
0065 #endif /* __GSL_BLOCK_COMPLEX_DOUBLE_H__ */