blitz Version 1.0.2
Loading...
Searching...
No Matches
ranks.h
Go to the documentation of this file.
1#ifndef BZ_RANKS_H
2#define BZ_RANKS_H
3
4namespace blitz {
5
6/*
7 * Rank numbers start with zero, which may be confusing to users coming
8 * from Fortran. To make code more readable, the following constants
9 * may help. Example: instead of
10 *
11 * int firstRankExtent = A.extent(0);
12 *
13 * One can write:
14 *
15 * int firstRankExtent = A.extent(firstRank);
16 */
17
18const int firstRank = 0;
19const int secondRank = 1;
20const int thirdRank = 2;
21const int fourthRank = 3;
22const int fifthRank = 4;
23const int sixthRank = 5;
24const int seventhRank = 6;
25const int eighthRank = 7;
26const int ninthRank = 8;
27const int tenthRank = 9;
28const int eleventhRank = 10;
29
30const int firstDim = 0;
31const int secondDim = 1;
32const int thirdDim = 2;
33const int fourthDim = 3;
34const int fifthDim = 4;
35const int sixthDim = 5;
36const int seventhDim = 6;
37const int eighthDim = 7;
38const int ninthDim = 8;
39const int tenthDim = 9;
40const int eleventhDim = 10;
41
42}
43
44#endif
Definition: array-impl.h:66
const int secondRank
Definition: ranks.h:19
const int ninthRank
Definition: ranks.h:26
const int tenthRank
Definition: ranks.h:27
const int tenthDim
Definition: ranks.h:39
const int secondDim
Definition: ranks.h:31
const int seventhRank
Definition: ranks.h:24
const int fifthDim
Definition: ranks.h:34
const int eighthDim
Definition: ranks.h:37
const int ninthDim
Definition: ranks.h:38
const int eighthRank
Definition: ranks.h:25
const int fourthDim
Definition: ranks.h:33
const int fifthRank
Definition: ranks.h:22
const int thirdDim
Definition: ranks.h:32
const int firstRank
Definition: ranks.h:18
const int eleventhDim
Definition: ranks.h:40
const int firstDim
Definition: ranks.h:30
const int fourthRank
Definition: ranks.h:21
const int sixthDim
Definition: ranks.h:35
const int seventhDim
Definition: ranks.h:36
const int thirdRank
Definition: ranks.h:20
const int sixthRank
Definition: ranks.h:23
const int eleventhRank
Definition: ranks.h:28