v0.13.1
Index.hpp
Go to the documentation of this file.
1/* A simple index class that tells the operators which template to
2 instantiate. The usual way to do this is to declare an index like
3
4 Index<'i',3> i;
5
6 It is important that each differently named index has a different
7 template parameter. So
8
9 Index<'i',3> i;
10 Index<'j',3> j; // Good
11
12 is the right way, and
13
14 Index<'i',3> i,j; // Bad
15
16 is likely to lead to errors, since the program thinks that i and j
17 are identical. */
18
19#pragma once
20
21namespace FTensor
22{
23 template <char i, int Dim> class Index
24 {
25 public:
26 Index() {}
27 };
28}
Tensors class implemented by Walter Landry.
Definition: FTensor.hpp:51