v0.10.0
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 }
FTensor::Tensor2_number_rhs_0
Definition: Tensor2_number.hpp:27
FTensor::Tensor2_number_1::iterA
A iterA
Definition: Tensor2_number.hpp:10
FTensor::Tensor2_number_0::iterA
A iterA
Definition: Tensor2_number.hpp:19
FTensor::Tensor2_number_1
Definition: Tensor2_number.hpp:9
FTensor::Tensor2_number_0::operator()
T operator()(const int N1) const
Definition: Tensor2_number.hpp:22
T
FTensor::Tensor2_number_rhs_1
Definition: Tensor2_number.hpp:30
FTensor::Tensor2_number_0
Definition: Tensor2_number.hpp:18
N1
static Number< 1 > N1
Definition: BasicFeTools.hpp:90
FTensor
JSON compatible output.
Definition: Christof_constructor.hpp:7
N
const int N
Definition: speed_test.cpp:3
FTensor::Tensor2_number_1::Tensor2_number_1
Tensor2_number_1(const A &a)
Definition: Tensor2_number.hpp:14
FTensor::Tensor2_number_0::Tensor2_number_0
Tensor2_number_0(const A &a)
Definition: Tensor2_number.hpp:23
FTensor::Tensor2_number_1::operator()
T operator()(const int N1) const
Definition: Tensor2_number.hpp:13