v0.13.1
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
6namespace FTensor
7{
8 template <class A, class T> class Tensor2_numeral_1
9 {
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 {
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}
static Number< 1 > N1
constexpr double a
T operator()(const int N1) const
Tensor2_numeral_0(A &a, const int NN)
Tensor2_numeral_1(A &a, const int NN)
T operator()(const int N1) const
const double T
Tensors class implemented by Walter Landry.
Definition: FTensor.hpp:51
double A