JDFTx  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scaled< T > Struct Template Reference

Template to avoid (delay) scaling operations on linear objects. More...

#include <scaled.h>

Public Member Functions

 scaled (const T &data, double scale=1.0)
 
 operator T () const
 apply scale
 
scaled< T > & operator*= (double s)
 merge scale operation into pending scale factor
 

Public Attributes

const T & data
 linear object reference
 
double scale
 pending scale factor
 

Detailed Description

template<typename T>
struct scaled< T >

Template to avoid (delay) scaling operations on linear objects.


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