v0.7.26
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 #pragma once
5 
6 namespace FTensor
7 {
8  template <class A, class T> class Tensor2_numeral_1
9  {
10  A iterA;
11  const int N;
12 
13  public:
14  T operator()(const int N1) const { return iterA(N1, N); }
15  Tensor2_numeral_1(A &a, const int NN) : iterA(a), N(NN) {}
16  };
17 
18  template <class A, class T> class Tensor2_numeral_0
19  {
20  A iterA;
21  const int N;
22 
23  public:
24  T operator()(const int N1) const { return iterA(N, N1); }
25  Tensor2_numeral_0(A &a, const int NN) : iterA(a), N(NN) {}
26  };
27 }
Tensor2_numeral_1(A &a, const int NN)
Fully Antisymmetric Levi-Civita Tensor.
T operator()(const int N1) const
Tensor2_numeral_0(A &a, const int NN)
T operator()(const int N1) const