TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
nda::operation

#include <nda/sym_grp.hpp>

Detailed Description

A structure to capture combinations of complex conjugation and sign flip operations.

Definition at line 47 of file sym_grp.hpp.

Public Member Functions

template<typename T >
operator() (T const &x) const
 Function call operator to apply the operation to a value.
 
operation operator* (operation const &rhs)
 Multiplication operator for two operations.
 

Public Attributes

bool cc = false
 Boolean value indicating a complex conjugation operation.
 
bool sgn = false
 Boolean value indicating a sign flip operation.
 

Member Function Documentation

◆ operator()()

template<typename T >
T nda::operation::operator() ( T const & x) const
inline

Function call operator to apply the operation to a value.

Template Parameters
TValue type.
Parameters
xValue to which the operation is applied.
Returns
The value after the operation has been applied.

Definition at line 73 of file sym_grp.hpp.

◆ operator*()

operation nda::operation::operator* ( operation const & rhs)
inline

Multiplication operator for two operations.

The sign flip (complex conjugation) operation is set to true in the resulting product iff one of the two (exclusive or!) input operations has the sign flip (complex conjugation) operation set to true.

Parameters
rhsRight hand side operation.
Returns
The resulting operation.

Definition at line 63 of file sym_grp.hpp.


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