v0.6.10
Number.hpp
Go to the documentation of this file.
1 /* This index class allows you to explicitly use a part of a tensor.
2  If you want to explicitly list all of the indices, just use
3  int's. The usual way to do this is to declare a Number like
4 
5  Number<0> N; */
6 
7 template<const int N>
8 class Number
9 {
10 public:
11  Number() {};
12  operator int() const
13  {
14  return N;
15  }
16 };
Number()
Definition: Number.hpp:11
Definition: Number.hpp:8
const int N
Definition: speed_test.cpp:3