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::ScalarContainer Class Referencefinal

#include <ScalarContainer.hh>

+ Inheritance diagram for Hammer::MultiDimensional::ScalarContainer:
+ Collaboration diagram for Hammer::MultiDimensional::ScalarContainer:

Public Member Functions

 ScalarContainer ()
 
 ScalarContainer (const Serial::FBComplex *input)
 
size_t rank () const override
 
IndexList dims () const override
 
LabelsList labels () const override
 
size_t numValues () const override
 
size_t dataSize () const override
 
size_t entrySize () const override
 
IndexType labelToIndex (IndexLabel label) const override
 
IndexPairList getSameLabelPairs (const IContainer &other, const UniqueLabelsList &indices) const override
 
IndexPairList getSpinLabelPairs () const override
 
bool isSameShape (const IContainer &other) const override
 
bool canAddAt (const IContainer &subContainer, IndexLabel coord, IndexType position) const override
 
reference element (const IndexList &coords={}) override
 
ElementType element (const IndexList &coords={}) const override
 
reference element (IndexList::const_iterator start, IndexList::const_iterator end) override
 
ElementType element (IndexList::const_iterator start, IndexList::const_iterator end) const override
 
bool compare (const IContainer &other) const override
 
TensorData clone () const override
 
void clear () override
 
IContaineroperator*= (double value) override
 
IContaineroperator*= (const ElementType value) override
 
IContainerconjugate () override
 
SerialType write (flatbuffers::FlatBufferBuilder *msgwriter) const override
 
- Public Member Functions inherited from Hammer::MultiDimensional::IContainer
virtual ~IContainer ()
 
 IContainer ()
 
 IContainer (const IContainer &)=default
 
 IContainer (IContainer &&)=default
 
IContaineroperator= (const IContainer &)=default
 
IContaineroperator= (IContainer &&)=default
 

Private Attributes

ElementType _data
 

Additional Inherited Members

- Public Types inherited from Hammer::MultiDimensional::IContainer
using ElementType = std::complex< double >
 
using reference = ElementType &
 
using const_reference = const ElementType &
 
using SerialType = std::pair< flatbuffers::Offset< void >, Serial::FBTensorTypes >
 

Detailed Description

Definition at line 29 of file ScalarContainer.hh.

Constructor & Destructor Documentation

Hammer::MultiDimensional::ScalarContainer::ScalarContainer ( )

Definition at line 23 of file ScalarContainer.cc.

Hammer::MultiDimensional::ScalarContainer::ScalarContainer ( const Serial::FBComplex *  input)

Definition at line 27 of file ScalarContainer.cc.

Member Function Documentation

bool Hammer::MultiDimensional::ScalarContainer::canAddAt ( const IContainer subContainer,
IndexLabel  coord,
IndexType  position 
) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 76 of file ScalarContainer.cc.

void Hammer::MultiDimensional::ScalarContainer::clear ( )
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 123 of file ScalarContainer.cc.

TensorData Hammer::MultiDimensional::ScalarContainer::clone ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 119 of file ScalarContainer.cc.

bool Hammer::MultiDimensional::ScalarContainer::compare ( const IContainer other) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 114 of file ScalarContainer.cc.

IContainer & Hammer::MultiDimensional::ScalarContainer::conjugate ( )
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 138 of file ScalarContainer.cc.

size_t Hammer::MultiDimensional::ScalarContainer::dataSize ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 49 of file ScalarContainer.cc.

IndexList Hammer::MultiDimensional::ScalarContainer::dims ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 37 of file ScalarContainer.cc.

ScalarContainer::reference Hammer::MultiDimensional::ScalarContainer::element ( const IndexList coords = {})
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 81 of file ScalarContainer.cc.

ScalarContainer::ElementType Hammer::MultiDimensional::ScalarContainer::element ( const IndexList coords = {}) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 89 of file ScalarContainer.cc.

ScalarContainer::reference Hammer::MultiDimensional::ScalarContainer::element ( IndexList::const_iterator  start,
IndexList::const_iterator  end 
)
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 98 of file ScalarContainer.cc.

ScalarContainer::ElementType Hammer::MultiDimensional::ScalarContainer::element ( IndexList::const_iterator  start,
IndexList::const_iterator  end 
) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 106 of file ScalarContainer.cc.

size_t Hammer::MultiDimensional::ScalarContainer::entrySize ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 53 of file ScalarContainer.cc.

IndexPairList Hammer::MultiDimensional::ScalarContainer::getSameLabelPairs ( const IContainer other,
const UniqueLabelsList indices 
) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 62 of file ScalarContainer.cc.

IndexPairList Hammer::MultiDimensional::ScalarContainer::getSpinLabelPairs ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 67 of file ScalarContainer.cc.

bool Hammer::MultiDimensional::ScalarContainer::isSameShape ( const IContainer other) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 72 of file ScalarContainer.cc.

LabelsList Hammer::MultiDimensional::ScalarContainer::labels ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 41 of file ScalarContainer.cc.

IndexType Hammer::MultiDimensional::ScalarContainer::labelToIndex ( IndexLabel  label) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 57 of file ScalarContainer.cc.

size_t Hammer::MultiDimensional::ScalarContainer::numValues ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 45 of file ScalarContainer.cc.

IContainer & Hammer::MultiDimensional::ScalarContainer::operator*= ( double  value)
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 128 of file ScalarContainer.cc.

IContainer & Hammer::MultiDimensional::ScalarContainer::operator*= ( const ElementType  value)
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 133 of file ScalarContainer.cc.

size_t Hammer::MultiDimensional::ScalarContainer::rank ( ) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 33 of file ScalarContainer.cc.

ScalarContainer::SerialType Hammer::MultiDimensional::ScalarContainer::write ( flatbuffers::FlatBufferBuilder *  msgwriter) const
overridevirtual

Implements Hammer::MultiDimensional::IContainer.

Definition at line 144 of file ScalarContainer.cc.

Member Data Documentation

ElementType Hammer::MultiDimensional::ScalarContainer::_data
private

Definition at line 68 of file ScalarContainer.hh.


The documentation for this class was generated from the following files: