vector. More...
#include <assert.h>
#include <vector>
Include dependency graph for vectorop.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | lemga |
| namespace | lemga::op |
Functions | |
| template<typename R, typename N> | |
| vector< R > & | lemga::op::operator+= (vector< R > &u, const vector< N > &v) |
| u += v. | |
| template<typename R> | |
| vector< R > | lemga::op::operator- (const vector< R > &v) |
| -v. | |
| template<typename R, typename N> | |
| R | lemga::op::inner_product (const R &u, const N &v) |
| Inner product of u and v. | |
| template<typename RET, typename R, typename N> | |
| RET | lemga::op::inner_product (const vector< R > &u, const vector< N > &v) |
| template<typename R, typename N> | |
| vector< R > & | lemga::op::operator *= (vector< R > &v, const N &r) |
| v *= r. | |
vector.
Let u and v be two vectos and r be a scalar. This file defines the following operators:
gcc, turn options -Wconversion or -Wall on).Definition in file vectorop.h.
1.4.6