Dummy specialisation for zero-rank tensors. More...
#include <tensor.h>
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... | |
Dummy specialisation for zero-rank tensors.
Only used together with STensor
, which requires it to represent complete tensor-tensor products.