v0.14.0
Loading...
Searching...
No Matches
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
9namespace FTensor
10{
11 template <const int N> class Number
12 {
13 public:
14 Number(){};
15 operator int() const { return N; }
16 };
17}
Tensors class implemented by Walter Landry.
Definition: FTensor.hpp:51
const int N
Definition: speed_test.cpp:3