Blender V2.61 - r43446

fortran.h

Go to the documentation of this file.
00001 
00004 /*
00005 
00006 *
00007 * Template Numerical Toolkit (TNT): Linear Algebra Module
00008 *
00009 * Mathematical and Computational Sciences Division
00010 * National Institute of Technology,
00011 * Gaithersburg, MD USA
00012 *
00013 *
00014 * This software was developed at the National Institute of Standards and
00015 * Technology (NIST) by employees of the Federal Government in the course
00016 * of their official duties. Pursuant to title 17 Section 105 of the
00017 * United States Code, this software is not subject to copyright protection
00018 * and is in the public domain.  The Template Numerical Toolkit (TNT) is
00019 * an experimental system.  NIST assumes no responsibility whatsoever for
00020 * its use by other parties, and makes no guarantees, expressed or implied,
00021 * about its quality, reliability, or any other characteristic.
00022 *
00023 * BETA VERSION INCOMPLETE AND SUBJECT TO CHANGE
00024 * see http://math.nist.gov/tnt for latest updates.
00025 *
00026 */
00027 
00028 
00029 
00030 // Header file to define C/Fortran conventions (Platform specific)
00031 
00032 #ifndef FORTRAN_H
00033 #define FORTRAN_H
00034 
00035 // help map between C/C++ data types and Fortran types
00036 
00037 typedef int     Fortran_integer;
00038 typedef float   Fortran_float;
00039 typedef double  Fortran_double;
00040 
00041 
00042 typedef Fortran_double *fda_;        // (in/out) double precision array
00043 typedef const Fortran_double *cfda_; // (in) double precsion array
00044 
00045 typedef Fortran_double *fd_;        // (in/out)  single double precision
00046 typedef const Fortran_double *cfd_; // (in) single double precision
00047 
00048 typedef Fortran_float *ffa_;        // (in/out) float precision array
00049 typedef const Fortran_float *cffa_; // (in) float precsion array
00050 
00051 typedef Fortran_float *ff_;         // (in/out)  single float precision
00052 typedef const Fortran_float *cff_;  // (in) single float precision
00053 
00054 typedef Fortran_integer *fia_;          // (in/out)  single integer array
00055 typedef const Fortran_integer *cfia_;   // (in) single integer array
00056 
00057 typedef Fortran_integer *fi_;           // (in/out)  single integer
00058 typedef const Fortran_integer *cfi_;    // (in) single integer
00059 
00060 typedef char *fch_;                // (in/out) single character
00061 typedef char *cfch_;               // (in) single character
00062 
00063 
00064 #ifndef TNT_SUBSCRIPT_TYPE
00065 #define TNT_SUBSCRIPT_TYPE TNT::Fortran_integer
00066 #endif
00067 
00068 #endif // FORTRAN_H
00069