v0.7.2
Tensor2_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 another, yielding a Tensor1_Expr. */
3 
4 #pragma once
5 
6 namespace FTensor
7 {
8  template<class A, class T, int N>
10  {
11  A iterA;
12  public:
13  T operator()(const int N1) const
14  {
15  return iterA(N1,N);
16  }
17  Tensor2_number_1(A &a): iterA(a) {}
18  };
19 
20  template<class A, class T, int N>
22  {
23  A iterA;
24  public:
25  T operator()(const int N1) const
26  {
27  return iterA(N,N1);
28  }
29  Tensor2_number_0(A &a): iterA(a) {}
30  };
31 
32  template<class A, class T, int N>
34  {};
35 
36  template<class A, class T, int N>
38  {};
39 }
T operator()(const int N1) const
JSON compatible output.
T operator()(const int N1) const
const int N
Definition: speed_test.cpp:3