v0.14.0
Loading...
Searching...
No Matches
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
6namespace 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}
static Number< 1 > N1
constexpr double a
T operator()(const int N1) const
T operator()(const int N1) const
Tensors class implemented by Walter Landry.
Definition FTensor.hpp:51
const int N
Definition speed_test.cpp:3