Blender  V2.59
subscript.h
Go to the documentation of this file.
00001 
00005 /*
00006 
00007 *
00008 * Template Numerical Toolkit (TNT): Linear Algebra Module
00009 *
00010 * Mathematical and Computational Sciences Division
00011 * National Institute of Technology,
00012 * Gaithersburg, MD USA
00013 *
00014 *
00015 * This software was developed at the National Institute of Standards and
00016 * Technology (NIST) by employees of the Federal Government in the course
00017 * of their official duties. Pursuant to title 17 Section 105 of the
00018 * United States Code, this software is not subject to copyright protection
00019 * and is in the public domain.  The Template Numerical Toolkit (TNT) is
00020 * an experimental system.  NIST assumes no responsibility whatsoever for
00021 * its use by other parties, and makes no guarantees, expressed or implied,
00022 * about its quality, reliability, or any other characteristic.
00023 *
00024 * BETA VERSION INCOMPLETE AND SUBJECT TO CHANGE
00025 * see http://math.nist.gov/tnt for latest updates.
00026 *
00027 */
00028 
00029 
00030 #ifndef SUBSCRPT_H
00031 #define SUBSCRPT_H
00032 
00033 
00034 //---------------------------------------------------------------------
00035 // This definition describes the default TNT data type used for
00036 // indexing into TNT matrices and vectors.  The data type should
00037 // be wide enough to index into large arrays.  It defaults to an
00038 // "int", but can be overriden at compile time redefining TNT_SUBSCRIPT_TYPE,
00039 // e.g.
00040 // 
00041 //      g++ -DTNT_SUBSCRIPT_TYPE='unsigned int'  ...
00042 //
00043 //---------------------------------------------------------------------
00044 //
00045 
00046 #ifndef TNT_SUBSCRIPT_TYPE
00047 #define TNT_SUBSCRIPT_TYPE int
00048 #endif
00049 
00050 namespace TNT
00051 {
00052     typedef TNT_SUBSCRIPT_TYPE Subscript;
00053 }
00054 
00055 
00056 // () indexing in TNT means 1-offset, i.e. x(1) and A(1,1) are the
00057 // first elements.  This offset is left as a macro for future
00058 // purposes, but should not be changed in the current release.
00059 //
00060 //
00061 #define TNT_BASE_OFFSET (1)
00062 
00063 #endif
00064