Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
subscript.h
1 /*
2 This file is distributed as part of the BIAS library (Basic ImageAlgorithmS)
3 but it has not been developed by the authors of BIAS.
4 
5 For copyright, author and license information see below.
6 */
7 
8 
9 /*
10 *
11 * Template Numerical Toolkit (TNT): Linear Algebra Module
12 *
13 * Mathematical and Computational Sciences Division
14 * National Institute of Technology,
15 * Gaithersburg, MD USA
16 *
17 *
18 * This software was developed at the National Institute of Standards and
19 * Technology (NIST) by employees of the Federal Government in the course
20 * of their official duties. Pursuant to title 17 Section 105 of the
21 * United States Code, this software is not subject to copyright protection
22 * and is in the public domain. The Template Numerical Toolkit (TNT) is
23 * an experimental system. NIST assumes no responsibility whatsoever for
24 * its use by other parties, and makes no guarantees, expressed or implied,
25 * about its quality, reliability, or any other characteristic.
26 *
27 * BETA VERSION INCOMPLETE AND SUBJECT TO CHANGE
28 * see http://math.nist.gov/tnt for latest updates.
29 *
30 */
31 
32 
33 #ifndef SUBSCRPT_H
34 #define SUBSCRPT_H
35 
36 
37 //---------------------------------------------------------------------
38 // This definition describes the default TNT data type used for
39 // indexing into TNT matrices and vectors. The data type should
40 // be wide enough to index into large arrays. It defaults to an
41 // "int", but can be overriden at compile time redefining TNT_SUBSCRIPT_TYPE,
42 // e.g.
43 //
44 // g++ -DTNT_SUBSCRIPT_TYPE='unsigned int' ...
45 //
46 //---------------------------------------------------------------------
47 //
48 
49 #ifndef TNT_SUBSCRIPT_TYPE
50 #define TNT_SUBSCRIPT_TYPE int
51 #endif
52 
53 namespace TNT
54 {
55  typedef TNT_SUBSCRIPT_TYPE Subscript;
56 }
57 
58 
59 // () indexing in TNT means 1-offset, i.e. x(1) and A(1,1) are the
60 // first elements. This offset is left as a macro for future
61 // purposes, but should not be changed in the current release.
62 //
63 //
64 #define TNT_BASE_OFFSET (1)
65 
66 #endif
TNT_SUBSCRIPT_TYPE Subscript
Definition: subscript.h:55