SyTen
syten::IdentityDenseTensorImpl::IdentityDenseTensor< rank, Scalar > Struct Template Reference

Implementation for syten::IdentityDenseTensor. More...

#include <identity.h>

+ Collaboration diagram for syten::IdentityDenseTensorImpl::IdentityDenseTensor< rank, Scalar >:

Public Types

typedef std::array< Index, rankCoord
 A set of indices uniquely describing one element. More...
 

Public Member Functions

Index dim (Index which) const
 Return the size of the which-th dimension, 1-indexed. More...
 
Coord getDims () const
 Return an array of dimensions. More...
 
 IdentityDenseTensor ()
 Creates a scalar zero-dimensional tensor. More...
 
 IdentityDenseTensor (Coord dims_, Index offset_=0)
 Creates an identity dense tensors of the specified dimension and optionally with the specified offset (rank-3 only). More...
 
 operator DenseTensor< rank, Scalar > () const
 Conversion to a standard dense tensor. More...
 
Scalar const & operator[] (Coord coordinates) const
 Return the element at specified index position. More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int in_version)
 Boost serialisation support. More...
 
Size size () const
 Return the number of stored elements. More...
 

Public Attributes

Coord dims
 List of dimensions. More...
 
Index offset
 relevant only for rank-3 tensors, offset of the third dimension relative to the standard choice. More...
 

Static Public Attributes

static constexpr unsigned int version = 3
 Bump this if any of the above change. More...
 

Detailed Description

template<Rank rank, typename Scalar = SDef>
struct syten::IdentityDenseTensorImpl::IdentityDenseTensor< rank, Scalar >

Implementation for syten::IdentityDenseTensor.


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