Calculates tensor norms. More...
#include "inc/tensor/tensor_prod.h"
Namespaces | |
namespace | 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... | |
Calculates tensor norms.