SyTen
syten::Tensor< 0 > Struct Reference

Dummy specialisation for zero-rank tensors. More...

#include <tensor.h>

+ Collaboration diagram for syten::Tensor< 0 >:

Classes

struct  Undefined
 Exception to be thrown if this class is used improperly in place of a normal-rank tensor. More...
 

Public Member Functions

 operator SDef () const
 Conversion to a scalar value. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned int const in_version)
 Boost serialisation. More...
 
Index size () const
 size() implementation, always returns 1. More...
 
 Tensor ()=default
 Default ctor. More...
 
 Tensor (SDef const &v)
 Conversion from a scalar value. More...
 

Public Attributes

std::array< Direction, 0 > dirs = {}
 Zero-entry directions array. More...
 
SDef value
 Stored scalar value. More...
 

Static Public Attributes

static constexpr Rank this_rank = 0
 Rank of this tensor. More...
 
static constexpr unsigned int version = 2
 Bump this if one of the above changes. More...
 

Detailed Description

Dummy specialisation for zero-rank tensors.

Only used together with STensor, which requires it to represent complete tensor-tensor products.


The documentation for this struct was generated from the following file: