#include <vector_interface.h>
◆ size_type
template<typename TValueType >
◆ value_type
template<typename TValueType >
◆ vector_type
template<typename TValueType >
◆ Vector() [1/3]
template<typename TValueType >
◆ Vector() [2/3]
template<typename TValueType >
◆ ~Vector()
template<typename TValueType >
◆ Vector() [3/3]
template<typename TValueType >
◆ add()
template<typename TValueType >
template<typename V >
bool Vector< TValueType >::add |
( |
const V & |
u | ) |
|
add/set/get a local vector
The local vector type must provide the following members:
- size() - length of local vector
- index(size_t i) - global index for component i
- operator[](size_t i) - access to value of component i
◆ defragment()
template<typename TValueType >
void Vector< TValueType >::defragment |
( |
| ) |
|
◆ dotprod()
template<typename TValueType >
double Vector< TValueType >::dotprod |
( |
const Vector< TValueType > & |
w | ) |
|
returns v.T w, that is the dotprod of this vector and w
◆ get()
template<typename TValueType >
template<typename V >
bool Vector< TValueType >::get |
( |
V & |
u | ) |
const |
◆ norm()
template<typename TValueType >
double Vector< TValueType >::norm |
( |
| ) |
const |
|
inline |
return sqrt(sum values[i]^2) (euclidian norm)
◆ operator*=()
template<typename TValueType >
◆ operator+=()
template<typename TValueType >
void Vector< TValueType >::operator+= |
( |
const Vector< TValueType > & |
v | ) |
|
◆ operator-=()
template<typename TValueType >
void Vector< TValueType >::operator-= |
( |
const Vector< TValueType > & |
v | ) |
|
◆ operator=() [1/2]
template<typename TValueType >
void Vector< TValueType >::operator= |
( |
const Vector< TValueType > & |
v | ) |
|
◆ operator=() [2/2]
template<typename TValueType >
double Vector< TValueType >::operator= |
( |
double |
d | ) |
|
assign double d to whole Vector
◆ operator[]() [1/2]
template<typename TValueType >
access element i of the vector
◆ operator[]() [2/2]
template<typename TValueType >
◆ resize()
template<typename TValueType >
bool Vector< TValueType >::resize |
( |
size_t |
new_length, |
|
|
bool |
bCopyValues = true |
|
) |
| |
◆ set() [1/2]
template<typename TValueType >
template<typename V >
bool Vector< TValueType >::set |
( |
const V & |
u | ) |
|
◆ set() [2/2]
template<typename TValueType >
bool Vector< TValueType >::set |
( |
double |
d | ) |
|
assign double d to whole Vector
◆ set_random()
template<typename TValueType >
bool Vector< TValueType >::set_random |
( |
double |
from, |
|
|
double |
to |
|
) |
| |
◆ size()
template<typename TValueType >
size_t Vector< TValueType >::size |
( |
| ) |
|
The documentation for this class was generated from the following file: