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