Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hammer::MultiDimensional::Ops Namespace Reference

The MultiDimensional namespace contains the tensor algebra algorithms. More...

Classes

class  AddAt
 
class  Convert
 
class  Divide
 
class  Dot
 
class  Multiply
 
class  Optimize
 
class  OuterSquare
 
class  Sum
 
class  Trace
 

Functions

static pair< bool, bool > isSameDot (const OuterElemIterator::EntryType &a, const OuterElemIterator::EntryType &b, const DotGroupType &info, const DotGroupType &infoOther)
 
template<size_t N, typename U , typename... Types>
enable_if< is_convertible
< vector< U >, typename
tuple_element< N, tuple
< Types...> >::type >::value,
bool >::type 
matchPartitions (const tuple< Types...> &data, U value)
 
template<size_t N, typename U , typename... Types>
enable_if< is_convertible
< vector< U >, typename
tuple_element< N, tuple
< Types...> >::type >::value,
void >::type 
addPartitionEntry (tuple< Types...> &data, U value)
 
template<size_t N, typename... Types>
enable_if<(N< sizeof...(Types)),
void >::type 
appendPartitionEntries (const tuple< Types...> &from, tuple< Types...> &to)
 
bool shouldBeSparse (size_t fill, size_t total)
 

Detailed Description

The MultiDimensional namespace contains the tensor algebra algorithms.

Function Documentation

template<size_t N, typename U , typename... Types>
enable_if<is_convertible<vector<U>, typename tuple_element<N, tuple<Types...> >::type>::value, void>::type Hammer::MultiDimensional::Ops::addPartitionEntry ( tuple< Types...> &  data,
value 
)

Definition at line 886 of file Dot.cc.

template<size_t N, typename... Types>
enable_if<(N < sizeof...(Types)), void>::type Hammer::MultiDimensional::Ops::appendPartitionEntries ( const tuple< Types...> &  from,
tuple< Types...> &  to 
)

Definition at line 892 of file Dot.cc.

static pair<bool, bool> Hammer::MultiDimensional::Ops::isSameDot ( const OuterElemIterator::EntryType &  a,
const OuterElemIterator::EntryType &  b,
const DotGroupType &  info,
const DotGroupType &  infoOther 
)
static
Todo:
IMPLEMENT

Definition at line 210 of file Dot.cc.

template<size_t N, typename U , typename... Types>
enable_if<is_convertible<vector<U>, typename tuple_element<N, tuple<Types...> >::type>::value, bool>::type Hammer::MultiDimensional::Ops::matchPartitions ( const tuple< Types...> &  data,
value 
)

Definition at line 879 of file Dot.cc.

bool Hammer::MultiDimensional::Ops::shouldBeSparse ( size_t  fill,
size_t  total 
)
inline

Definition at line 43 of file Optimize.hh.