SyTen
tensor_norm.h File Reference

Calculates tensor norms. More...

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

Namespaces

 syten
 Syten namespace.
 

Functions

template<Rank rank>
SRDef syten::norm (Tensor< rank > const &a, SourceLocation location=SourceLocation::current())
 Calculates the norm of a tensor as the scalar product with itself. More...
 
template<Rank rank>
void syten::normalise (Tensor< rank > &a, SourceLocation location=SourceLocation::current())
 Scales the supplied tensor a by its norm. More...
 
template<Rank rank>
Tensor< rank > syten::normalised (Tensor< rank > a, SourceLocation location=SourceLocation::current())
 Destroys the input state and returns it normalised. More...
 
template<Rank rank>
SRDef syten::normSqd (Tensor< rank > const &a, SourceLocation location=SourceLocation::current())
 Calculates the squared norm of a tensor as the scalar product with itself. More...
 
template<Rank rank>
SDef syten::overlap (Tensor< rank > const &a, Tensor< rank > const &b)
 Calculates the overlap between two tensors as their scalar product. More...
 

Detailed Description

Calculates tensor norms.