subscrpt.h

来自「在linux下面实现的单纯性算法的源代码」· C头文件 代码 · 共 43 行

H
43
字号
// Template Numerical Toolkit (TNT) for Linear Algebra //// R. Pozo// Applied and Computational Mathematics Division// National Institute of Standards and Technology//Chris Siefert's namespace-free version - 5/20/99#ifndef SUBSCRPT_H#define SUBSCRPT_H//---------------------------------------------------------------------// This definition describes the default TNT data type used for// indexing into TNT matrices and vectors.  The data type should// be wide enough to index into large arrays.  It defaults to an// "int", but can be overriden at compile time redefining TNT_SUBSCRIPT_TYPE,// e.g.// //      g++ -DTNT_SUBSCRIPT_TYPE='unsigned int'  ...////---------------------------------------------------------------------//#ifndef TNT_SUBSCRIPT_TYPE#define TNT_SUBSCRIPT_TYPE int#endif//namespace TNT//{    typedef TNT_SUBSCRIPT_TYPE Subscript;//}// () indexing in TNT means 1-offset, i.e. x(1) and A(1,1) are the// first elements.  This offset is left as a macro for future// purposes, but should not be changed in the current release.////#define TNT_BASE_OFFSET (1)#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?