Blender V2.61 - r43446

subscript.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 #ifndef SUBSCRPT_H
00030 #define SUBSCRPT_H
00031 
00032 
00033 //---------------------------------------------------------------------
00034 // This definition describes the default TNT data type used for
00035 // indexing into TNT matrices and vectors.  The data type should
00036 // be wide enough to index into large arrays.  It defaults to an
00037 // "int", but can be overriden at compile time redefining TNT_SUBSCRIPT_TYPE,
00038 // e.g.
00039 // 
00040 //      g++ -DTNT_SUBSCRIPT_TYPE='unsigned int'  ...
00041 //
00042 //---------------------------------------------------------------------
00043 //
00044 
00045 #ifndef TNT_SUBSCRIPT_TYPE
00046 #define TNT_SUBSCRIPT_TYPE int
00047 #endif
00048 
00049 namespace TNT
00050 {
00051     typedef TNT_SUBSCRIPT_TYPE Subscript;
00052 }
00053 
00054 
00055 // () indexing in TNT means 1-offset, i.e. x(1) and A(1,1) are the
00056 // first elements.  This offset is left as a macro for future
00057 // purposes, but should not be changed in the current release.
00058 //
00059 //
00060 #define TNT_BASE_OFFSET (1)
00061 
00062 #endif
00063