v0.10.0
Christof_number.hpp
Go to the documentation of this file.
1 /* This is for expressions where a number is used for one slot, and
2  an index for the other, yielding a Tensor2_symmetric_Expr. */
3 
4 #pragma once
5 
6 namespace FTensor
7 {
8  template <class A, class T, int N> class Christof_number_0
9  {
10  const A iterA;
11 
12  public:
13  T operator()(const int N1, const int N2) const { return iterA(N, N1, N2); }
14  Christof_number_0(const A &a) : iterA(a) {}
15  };
16 }
T operator()(const int N1, const int N2) const
JSON compatible output.
static Number< 2 > N2
static Number< 1 > N1
const int N
Definition: speed_test.cpp:3