SyTen
stensor_prod.cpp File Reference

Implementation for inc/stensor/stensor_prod.h More...

+ Include dependency graph for stensor_prod.cpp:

Namespaces

namespace  syten
 Syten namespace.
 
namespace  syten::STensorImpl
 Contains all ‘smart’ tensor related classes and functions.
 
namespace  syten::STensorImpl::Autodiff
 Contains classes and functions to deal with autodifferentiation of STensor objects.
 

Functions

void syten::STensorImpl::Autodiff::create_product_differentiable (STensorProxy const &a, STensorProxy const &b, STensor &return_value)
 Sets the compute nodes of the tensor return_value to represent the product of tensor proxies a and b. More...
 
STensor syten::STensorImpl::norm (STensor const &t, SourceLocation const &loc=SourceLocation::current())
 Returns the norm of a tensor as a rank-0 STensor. More...
 
STensor syten::STensorImpl::normSqd (STensor const &t, SourceLocation const &loc=SourceLocation::current())
 Returns the squared norm of a tensor. More...
 
STensor syten::STensorImpl::overlap (STensor const &a, STensor const &b, SourceLocation const &loc=SourceLocation::current())
 Takes the overlap of two STensor objects. More...
 
STensor syten::STensorImpl::prod (SDef const &value, STensorProxy const &tensor)
 Scales the tensor tensor by the scalar value value. More...
 
STensor syten::STensorImpl::prod (STensorProxy const &a, STensorProxy const &b, SourceLocation const &loc=SourceLocation::current())
 Contracts tensors a and b over all common indices. More...
 
STensor syten::STensorImpl::prod (STensorProxy const &tensor, SDef const &value)
 Scales the tensor tensor by the scalar value value. More...
 
template<Rank ra, Rank rb, Rank... nums>
STensor syten::STensorImpl::prod_impl (SourceLocation const &loc, STensorProxy const &a, STensorProxy const &b, std::index_sequence< nums... >={})
 Helper for STensor-STensor products. More...
 
template<Rank ra, Rank rb, Rank rc>
STensor syten::STensorImpl::prod_impl_impl (SourceLocation const &location, STensorProxy const &a, STensorProxy const &b, std::array< int, ra > const &c_a, std::array< int, rb > const &c_b, Vec< SBasis > result_basis, Vec< Index > ferm_r)
 Second helper for STensor-STensor products. More...
 
SRDef syten::STensorImpl::snorm (STensor const &t, SourceLocation const &loc=SourceLocation::current())
 Returns the norm of a tensor as a standard scalar. More...
 

Detailed Description

Implementation for inc/stensor/stensor_prod.h