v0.8.12
Public Member Functions | Private Attributes | List of all members
Tensor1_Expr< A, i > Class Template Reference

Public Member Functions

 Tensor1_Expr (A *a)
 
doubleoperator() (const int N)
 
double operator() (const int N) const
 
const A operator= (const Tensor1_Expr< Tensor1, 'i'> &result)
 

Private Attributes

A * iter
 

Detailed Description

template<class A, char i>
class Tensor1_Expr< A, i >

Definition at line 11 of file single.cpp.

Constructor & Destructor Documentation

◆ Tensor1_Expr()

template<class A, char i>
Tensor1_Expr< A, i >::Tensor1_Expr ( A *  a)

Definition at line 16 of file single.cpp.

16 : iter(a) {}

Member Function Documentation

◆ operator()() [1/2]

template<class A, char i>
double& Tensor1_Expr< A, i >::operator() ( const int  N)

Definition at line 17 of file single.cpp.

17 { return (*iter)(N); }
const int N
Definition: speed_test.cpp:3

◆ operator()() [2/2]

template<class A, char i>
double Tensor1_Expr< A, i >::operator() ( const int  N) const

Definition at line 18 of file single.cpp.

18 { return (*iter)(N); }
const int N
Definition: speed_test.cpp:3

◆ operator=()

template<class A, char i>
const A Tensor1_Expr< A, i >::operator= ( const Tensor1_Expr< Tensor1, 'i'> &  result)

Definition at line 20 of file single.cpp.

21  {
22  cout << "equaling" << endl;
23  iter->data0 = result(0);
24  iter->data1 = result(1);
25  iter->data2 = result(2);
26  return *iter;
27  }

Member Data Documentation

◆ iter

template<class A, char i>
A* Tensor1_Expr< A, i >::iter
private

Definition at line 13 of file single.cpp.


The documentation for this class was generated from the following file: