|
PSCF v1.5.0
|
A RealVec<D, T> is D-component vector with elements of floating type T. More...
#include <RealVec.h>
Constructors | |
| static const int | Width = 25 |
| Width of field per Cartesian coordinate in stream IO. | |
| static const int | Precision = 17 |
| Precision in stream IO of RealVec<D, T> coordinates. | |
| RealVec () | |
| Default constructor. | |
| RealVec (const RealVec< D, T > &v) | |
| Copy constructor. | |
| RealVec (T const *v) | |
| Construct from C array. | |
| RealVec (T s) | |
| Constructor, initialize all elements to a scalar value. | |
Additional Inherited Members | |
| Public Member Functions inherited from Pscf::Vec< D, double > | |
| Vec () | |
| Default constructor. | |
| Vec< D, double > & | operator= (const Vec< D, double > &v) |
| Copy assignment. | |
| Vec< D, double > & | setToZero () |
| Set all elements to zero. | |
| void | operator+= (const Vec< D, double > &dv) |
| Add vector dv to this vector. | |
| void | operator-= (const Vec< D, double > &dv) |
| Subtract vector dv from this vector. | |
| void | operator*= (double s) |
| Multiply this vector by scalar s. | |
| const double & | operator[] (int i) const |
| Return one Cartesian element by value. | |
| Vec< D, double > & | add (const Vec< D, double > &v1, const Vec< D, double > &v2) |
| Add vectors v1 and v2. | |
| Vec< D, double > & | subtract (const Vec< D, double > &v1, const Vec< D, double > &v2) |
| Subtract vector v2 from v1. | |
| Vec< D, double > & | multiply (const Vec< D, double > &v, double s) |
| Multiply a vector v by a scalar s. | |
| Vec< D, double > & | negate (const Vec< D, double > &v) |
| Return negative of vector v. | |
| void | serialize (Archive &ar, const unsigned int version) |
| Serialize to/from an archive. | |
A RealVec<D, T> is D-component vector with elements of floating type T.
Default of type T is T = double.
|
inline |
Default constructor.
Definition at line 136 of file RealVec.h.
References Util::operator!=(), and RealVec().
Referenced by RealVec().
|
inline |
|
inline |
|
inlineexplicit |
|
static |
Width of field per Cartesian coordinate in stream IO.
Definition at line 70 of file RealVec.h.
Referenced by Pscf::operator<<().
|
static |
Precision in stream IO of RealVec<D, T> coordinates.
Definition at line 73 of file RealVec.h.
Referenced by Pscf::operator<<().