QMCPACK
AntiSymTensor< T, 1 > Class Template Reference
+ Collaboration diagram for AntiSymTensor< T, 1 >:

Classes

class  AssignProxy
 

Public Types

enum  { ElemDim = 2 }
 
using Type_t = T
 

Public Member Functions

 AntiSymTensor ()
 
 AntiSymTensor (const AntiSymTensor< T, 1 > &)
 
 ~AntiSymTensor ()
 
AntiSymTensor< T, 1 > & operator= (const AntiSymTensor< T, 1 > &)
 
template<class T1 >
AntiSymTensor< T, 1 > & operator= (const AntiSymTensor< T1, 1 > &)
 
AntiSymTensor< T, 1 > & operator= (const T &rhs)
 
template<class T1 >
AntiSymTensor< T, 1 > & operator+= (const AntiSymTensor< T1, 1 > &)
 
template<class T1 >
AntiSymTensor< T, 1 > & operator-= (const AntiSymTensor< T1, 1 > &)
 
template<class T1 >
AntiSymTensor< T, 1 > & operator*= (const AntiSymTensor< T1, 1 > &)
 
AntiSymTensor< T, 1 > & operator*= (const T &)
 
template<class T1 >
AntiSymTensor< T, 1 > & operator/= (const AntiSymTensor< T1, 1 > &)
 
AntiSymTensor< T, 1 > & operator/= (const T &)
 
int len (void) const
 
int size (void) const
 
int get_Size (void) const
 
Type_t operator() (unsigned int i, unsigned int j) const
 
AssignProxy operator() (unsigned int i, unsigned int j)
 
Type_t operator[] (unsigned int i) const
 
Type_t operator() (unsigned int i) const
 
bool operator== (const AntiSymTensor< T, 1 > &that) const
 
bool operator!= (const AntiSymTensor< T, 1 > &that) const
 

Private Types

enum  { Size = 0 }
 

Static Private Attributes

static T Zero
 

Friends

class AssignProxy
 

Detailed Description

template<class T>
class qmcplusplus::AntiSymTensor< T, 1 >

Definition at line 300 of file AntiSymTensor.h.

Member Typedef Documentation

◆ Type_t

using Type_t = T

Definition at line 303 of file AntiSymTensor.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ElemDim 

Definition at line 304 of file AntiSymTensor.h.

◆ anonymous enum

anonymous enum
private
Enumerator
Size 

Definition at line 449 of file AntiSymTensor.h.

Constructor & Destructor Documentation

◆ AntiSymTensor() [1/2]

AntiSymTensor ( )
inline

Definition at line 310 of file AntiSymTensor.h.

310 {}

◆ AntiSymTensor() [2/2]

AntiSymTensor ( const AntiSymTensor< T, 1 > &  )
inline

Definition at line 313 of file AntiSymTensor.h.

313 {}

◆ ~AntiSymTensor()

~AntiSymTensor ( )
inline

Definition at line 315 of file AntiSymTensor.h.

315 {}

Member Function Documentation

◆ get_Size()

int get_Size ( void  ) const
inline

Definition at line 357 of file AntiSymTensor.h.

References AntiSymTensor< T, D >::Size.

◆ len()

int len ( void  ) const
inline

Definition at line 355 of file AntiSymTensor.h.

References AntiSymTensor< T, D >::Size.

◆ operator!=()

bool operator!= ( const AntiSymTensor< T, 1 > &  that) const
inline

Definition at line 429 of file AntiSymTensor.h.

429 { return !(*this == that); }

◆ operator()() [1/3]

Type_t operator() ( unsigned int  i,
unsigned int  j 
) const
inline

Definition at line 388 of file AntiSymTensor.h.

References PAssert.

389  {
390  PAssert(i == j);
391  return T(0.0);
392  }
#define PAssert(condition)
Definition: OhmmsTinyMeta.h:61

◆ operator()() [2/3]

AssignProxy operator() ( unsigned int  i,
unsigned int  j 
)
inline

Definition at line 400 of file AntiSymTensor.h.

References AntiSymTensor< T, D >::AssignProxy, and PAssert.

401  {
402  PAssert(i == j);
404  }
#define PAssert(condition)
Definition: OhmmsTinyMeta.h:61

◆ operator()() [3/3]

Type_t operator() ( unsigned int  i) const
inline

Definition at line 420 of file AntiSymTensor.h.

References PAssert.

421  {
422  PAssert(i == 0);
424  }
#define PAssert(condition)
Definition: OhmmsTinyMeta.h:61

◆ operator*=() [1/2]

AntiSymTensor<T, 1>& operator*= ( const AntiSymTensor< T1, 1 > &  )
inline

Definition at line 340 of file AntiSymTensor.h.

341  {
342  return *this;
343  }

◆ operator*=() [2/2]

AntiSymTensor<T, 1>& operator*= ( const T &  )
inline

Definition at line 344 of file AntiSymTensor.h.

344 { return *this; }

◆ operator+=()

AntiSymTensor<T, 1>& operator+= ( const AntiSymTensor< T1, 1 > &  )
inline

Definition at line 328 of file AntiSymTensor.h.

329  {
330  return *this;
331  }

◆ operator-=()

AntiSymTensor<T, 1>& operator-= ( const AntiSymTensor< T1, 1 > &  )
inline

Definition at line 334 of file AntiSymTensor.h.

335  {
336  return *this;
337  }

◆ operator/=() [1/2]

AntiSymTensor<T, 1>& operator/= ( const AntiSymTensor< T1, 1 > &  )
inline

Definition at line 347 of file AntiSymTensor.h.

348  {
349  return *this;
350  }

◆ operator/=() [2/2]

AntiSymTensor<T, 1>& operator/= ( const T &  )
inline

Definition at line 351 of file AntiSymTensor.h.

351 { return *this; }

◆ operator=() [1/3]

AntiSymTensor<T, 1>& operator= ( const AntiSymTensor< T, 1 > &  )
inline

Definition at line 318 of file AntiSymTensor.h.

318 { return *this; }

◆ operator=() [2/3]

AntiSymTensor<T, 1>& operator= ( const AntiSymTensor< T1, 1 > &  )
inline

Definition at line 320 of file AntiSymTensor.h.

321  {
322  return *this;
323  }

◆ operator=() [3/3]

AntiSymTensor<T, 1>& operator= ( const T &  rhs)
inline

Definition at line 324 of file AntiSymTensor.h.

324 { return *this; }

◆ operator==()

bool operator== ( const AntiSymTensor< T, 1 > &  that) const
inline

Definition at line 428 of file AntiSymTensor.h.

428 { return true; }

◆ operator[]()

Type_t operator[] ( unsigned int  i) const
inline

Definition at line 412 of file AntiSymTensor.h.

References PAssert.

413  {
414  PAssert(i == 0);
416  }
#define PAssert(condition)
Definition: OhmmsTinyMeta.h:61

◆ size()

int size ( void  ) const
inline

Definition at line 356 of file AntiSymTensor.h.

356 { return sizeof(*this); }

Friends And Related Function Documentation

◆ AssignProxy

friend class AssignProxy
friend

Definition at line 446 of file AntiSymTensor.h.

Member Data Documentation

◆ Zero

T Zero
staticprivate

Definition at line 457 of file AntiSymTensor.h.


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