TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
sum.hpp File Reference
#include "./clef.hpp"
#include "../basic_functions.hpp"
#include "../exceptions.hpp"

Detailed Description

Provides functions to sum an expression over a single or multiple domains.

Definition in file sum.hpp.

Go to the source code of this file.

Functions

template<typename Expr , int N, typename D >
decltype(auto) nda::clef::sum (Expr const &ex, clef::pair< N, D > d)
 Sum an expression over a 1-dimensional domain.
 
template<typename Expr , typename D0 , typename D1 , typename... Ds>
auto nda::clef::sum (Expr const &ex, D0 &&d0, D1 &&d1, Ds &&...ds)
 Sum an expression over a multi-dimensional domain.