PSCF v1.4.0
temp.tpp
1
2 /*
3 * Vector assignment, a = b .
4 */
5 template <class Iterator, class T>
6 void AmIteratorTmpl<Iterator,T>::setEqual(T& a, T const & b)
7 { VecOp::assign(a, b); }
8
9 /*
10 * Compute and return the inner product of two vectors
11 */
12 template <class Iterator, class T>
13 double
14 AmIteratorTmpl<Iterator,T>::dotProduct(T const & a, T const & b)
15 { return VecOp::innerProduct(a, b); }
16
17 /*
18 * Compute and return the maximum magnitude element of a vector.
19 */
20 template <class Iterator, class T>
21 double AmIteratorTmpl<Iterator,T>::maxAbs(T const & a)
22 { return Reduce::maxAbs(a); }
23
24 /*
25 * Compute the vector difference a = b - c .
26 */
27 template <class Iterator, class T>
28 void AmIteratorTmpl<Iterator,T>::subVV(T& a, T const & b, T const & c)
29 { VecOp::subVV(a, b, c); }
30
31 /*
32 * Composite a += b*c for vectors a and b, scalar c .
33 */
34 template <class Iterator, class T>
35 void AmIteratorTmpl<Iterator,T>::addEqVc(T& a, T const & b, double c)
36 { VecOp::addEqVc(a, b, c); }
37