v0.14.0
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> class Number
12  {
13  public:
14  Number(){};
15  operator int() const { return N; }
16  };
17 }
FTensor
JSON compatible output.
Definition: Christof_constructor.hpp:6
FTensor::Number
Definition: Number.hpp:11
FTensor::Number::Number
Number()
Definition: Number.hpp:14
N
const int N
Definition: speed_test.cpp:3
convert.int
int
Definition: convert.py:64