v0.8.12
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> class Tensor2_number_1
9  {
10  A iterA;
11 
12  public:
13  T operator()(const int N1) const { return iterA(N1, N); }
14  Tensor2_number_1(const A &a) : iterA(a) {}
15  };
16 
17  template <class A, class T, int N> class Tensor2_number_0
18  {
19  A iterA;
20 
21  public:
22  T operator()(const int N1) const { return iterA(N, N1); }
23  Tensor2_number_0(const A &a) : iterA(a) {}
24  };
25 
26  template <class A, class T, int N> class Tensor2_number_rhs_0
27  {};
28 
29  template <class A, class T, int N> class Tensor2_number_rhs_1
30  {};
31 }
T operator()(const int N1) const
Fully Antisymmetric Levi-Civita Tensor.
T operator()(const int N1) const
const int N
Definition: speed_test.cpp:3