v0.6.9
Tensor2_numeral.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>
6 {
7  A iterA;
8  const int N;
9 public:
10  T operator()(const int N1) const
11  {
12  return iterA(N1,N);
13  }
14  Tensor2_numeral_1(A &a, const int NN): iterA(a), N(NN) {}
15 };
16 
17 template<class A, class T>
19 {
20  A iterA;
21  const int N;
22 public:
23  T operator()(const int N1) const
24  {
25  return iterA(N,N1);
26  }
27  Tensor2_numeral_0(A &a, const int NN): iterA(a), N(NN) {}
28 };
T operator()(const int N1) const
Tensor2_numeral_1(A &a, const int NN)
T operator()(const int N1) const
Tensor2_numeral_0(A &a, const int NN)