v0.6.10
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 template<class A, class T, int N>
6 {
7  A iterA;
8 public:
9  T operator()(const int N1) const
10  {
11  return iterA(N1,N);
12  }
13  Tensor2_number_1(A &a): iterA(a) {}
14 };
15 
16 template<class A, class T, int N>
18 {
19  A iterA;
20 public:
21  T operator()(const int N1) const
22  {
23  return iterA(N,N1);
24  }
25  Tensor2_number_0(A &a): iterA(a) {}
26 };
27 
28 template<class A, class T, int N>
30 {};
31 
32 template<class A, class T, int N>
34 {};
T operator()(const int N1) const
T operator()(const int N1) const
const int N
Definition: speed_test.cpp:3