v0.14.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  {
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  {
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
JSON compatible output.
Definition: Christof_constructor.hpp:6
FTensor::Tensor2_number_rhs_1
Definition: Tensor2_number.hpp:29
FTensor::Tensor2_number_0::operator()
T operator()(const int N1) const
Definition: Tensor2_number.hpp:22
FTensor::Tensor2_number_0::iterA
A iterA
Definition: Tensor2_number.hpp:19
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::Tensor2_number_1
Definition: Tensor2_number.hpp:8
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor2_number_0
Definition: Tensor2_number.hpp:17
FTensor::Tensor2_number_0::Tensor2_number_0
Tensor2_number_0(const A &a)
Definition: Tensor2_number.hpp:23
N
const int N
Definition: speed_test.cpp:3
FTensor::Tensor2_number_1::iterA
A iterA
Definition: Tensor2_number.hpp:10
FTensor::Tensor2_number_rhs_0
Definition: Tensor2_number.hpp:26
FTensor::Tensor2_number_1::operator()
T operator()(const int N1) const
Definition: Tensor2_number.hpp:13
FTensor::Tensor2_number_1::Tensor2_number_1
Tensor2_number_1(const A &a)
Definition: Tensor2_number.hpp:14