|
| Vec () |
| Default constructor. More...
|
|
| Vec (const Vec< D, T > &v) |
| Copy constructor. More...
|
|
| Vec (T const *v) |
| Constructor from a C-array. More...
|
|
| Vec (T s) |
| Constructor, initialize all elements to a common scalar value. More...
|
|
Vec< D, T > & | operator= (const Vec< D, T > &v) |
| Copy assignment. More...
|
|
Vec< D, T > & | operator= (T s) |
| Assignment all elements to the same scalar T value. More...
|
|
Vec< D, T > & | setToZero () |
| Set all elements to zero. More...
|
|
void | operator+= (const Vec< D, T > &dv) |
| Add vector dv to this vector. More...
|
|
void | operator-= (const Vec< D, T > &dv) |
| Subtract vector dv from this vector. More...
|
|
void | operator+= (T s) |
| Add a common scalar to all components. More...
|
|
void | operator-= (T s) |
| Subtract a common scalar from all components. More...
|
|
void | operator*= (T s) |
| Multiply this vector by scalar s. More...
|
|
const T & | operator[] (int i) const |
| Return one Cartesian element by value. More...
|
|
T & | operator[] (int i) |
| Return one element of the vector by references. More...
|
|
Vec< D, T > & | add (const Vec< D, T > &v1, const Vec< D, T > &v2) |
| Add vectors v1 and v2. More...
|
|
Vec< D, T > & | subtract (const Vec< D, T > &v1, const Vec< D, T > &v2) |
| Subtract vector v2 from v1. More...
|
|
Vec< D, T > & | multiply (const Vec< D, T > &v, T s) |
| Multiply a vector v by a scalar s. More...
|
|
Vec< D, T > & | negate (const Vec< D, T > &v) |
| Return negative of vector v. More...
|
|
Vec< D, T > & | negate () |
| Negate all elements of this vector. More...
|
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
| Serialize to/from an archive. More...
|
|
template<int D, typename T = int>
class Pscf::IntVec< D, T >
An IntVec<D, T> is a D-component vector of elements of integer type T.
Default of type T is T = int.
Definition at line 26 of file IntVec.h.