SyTen
tensor_operators.h File Reference

Operators acting on Tensor. More...

+ Include dependency graph for tensor_operators.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 syten
 The topmost namespace for this project.
 

Functions

template<Rank rank>
bool syten::operator!= (Tensor< rank > const &a, Tensor< rank > const &b)
 Returns true if the absolute value of the difference between a and b is large. More...
 
template<Rank rank>
Tensor< rank > syten::operator* (SDef const &s, Tensor< rank > const &t)
 \( r_{i\ldots} = s \cdot t_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > syten::operator* (Tensor< rank > const &t, SDef const &s)
 \( r_{i\ldots} = s \cdot t_{i\ldots} \) More...
 
template<Rank rank>
SDef syten::operator* (Tensor< rank > const &a, Tensor< rank > const &b)
 \( r = \sum_{i\ldots} a^\star_{i\ldots} b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > & syten::operator*= (Tensor< rank > &t, SDef const &s)
 \( t_{i\ldots} = s \cdot t_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > syten::operator*= (Tensor< rank > &&t, SDef const &s)
 \( t_{i\ldots} = s \cdot t_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > syten::operator+ (Tensor< rank > const &a, Tensor< rank > const &b)
 \( r_{i\ldots} = a_{i\ldots} + b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > & syten::operator+= (Tensor< rank > &a, Tensor< rank > const &b)
 \( a_{i\ldots} = a_{i\ldots} + b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > & syten::operator+= (Tensor< rank > &a, Tensor< rank > &&b)
 \( a_{i\ldots} = a_{i\ldots} + b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > syten::operator- (Tensor< rank > const &a, Tensor< rank > const &b)
 \( r_{i\ldots} = a_{i\ldots} - b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > & syten::operator-= (Tensor< rank > &a, Tensor< rank > const &b)
 \( a_{i\ldots} = a_{i\ldots} - b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > syten::operator-= (Tensor< rank > &&a, Tensor< rank > const &b)
 \( a_{i\ldots} = a_{i\ldots} - b_{i\ldots} \) More...
 
template<Rank rank>
Tensor< rank > syten::operator/ (Tensor< rank > const &t, SDef const &s)
 \( r_{i\ldots} = t_{i\ldots}/s \) More...
 
template<Rank rank>
Tensor< rank > & syten::operator/= (Tensor< rank > &t, SDef const &s)
 \( t_{i\ldots} = t_{i\ldots}/s \) More...
 
template<Rank rank>
std::ostreamsyten::operator<< (std::ostream &out, Tensor< rank > const &t)
 Prettyprinting for tensors. More...
 
std::ostreamsyten::operator<< (std::ostream &out, Tensor< 0 > const &t)
 Prettyprinting for rank-0 tensors. More...
 
template<Rank rank>
bool syten::operator== (Tensor< rank > const &a, Tensor< rank > const &b)
 Returns true if a and b are identical up to error sqrt(N)·ε where N is the average of the number of dense entries in a and b and ε is SYTEN_SMALL_THRESHOLD. More...
 

Detailed Description

Operators acting on Tensor.