v0.7.2
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 #pragma once
8 
9 namespace FTensor
10 {
11  template<const int N>
12  class Number
13  {
14  public:
15  Number() {};
16  operator int() const
17  {
18  return N;
19  }
20  };
21 }
JSON compatible output.
const int N
Definition: speed_test.cpp:3