Operators acting on Tensor. More...
#include "inc/tensor/tensor.h"
#include "inc/tensor/tensor_prod.h"
#include "inc/tensor/tensor_norm.h"
#include "inc/tensor/tensorblock_operators.h"
Namespaces | |
namespace | syten |
Syten namespace. | |
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> | |
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 > const &t, SDef const &s) |
\( r_{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 > &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 > &&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 &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... | |
std::ostream & | syten::operator<< (std::ostream &out, Tensor< 0 > const &t) |
Prettyprinting for rank-0 tensors. More... | |
template<Rank rank> | |
std::ostream & | syten::operator<< (std::ostream &out, Tensor< rank > const &t) |
Prettyprinting for 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... | |
Operators acting on Tensor.