JDFTx  1.7.0
symmetricMatrix3< scalar > Struct Template Reference

Symmetric matrix that stores only non-redundant entries (with limited operations) More...

#include <matrix3.h>

Public Member Functions

__hostanddev__ symmetricMatrix3 (scalar xx=scalar(), scalar yy=scalar(), scalar zz=scalar(), scalar yz=scalar(), scalar zx=scalar(), scalar xy=scalar())
 
__hostanddev__ symmetricMatrix3 (const matrix3<> &m)
 Initialize from regular matrix.
 
__hostanddev__ operator matrix3< scalar > () const
 Convert to regular matrix (for most operations)
 
__hostanddev__ symmetricMatrix3< scalar > operator* (scalar s) const
 Scale.
 
__hostanddev__ symmetricMatrix3< scalar > & operator+= (symmetricMatrix3< scalar > m)
 Accumulate.
 

Public Attributes

scalar xx
 
scalar yy
 
scalar zz
 
scalar yz
 
scalar zx
 
scalar xy
 

Detailed Description

template<typename scalar = double>
struct symmetricMatrix3< scalar >

Symmetric matrix that stores only non-redundant entries (with limited operations)


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