VectorBaseOperators.hpp File Reference


Detailed Description

Vector base class operators, including I/O, min(), dot(), comparisons, etc.

Definition in file VectorBaseOperators.hpp.

#include <fstream>
#include <vector>
#include <iomanip>

Include dependency graph for VectorBaseOperators.hpp:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  gpstk

Defines

#define VecShortwireComparisonOperator(func, op)

Functions

template<class T, class E>
std::ostream & operator<< (std::ostream &s, const ConstVectorBase< T, E > &a)
 Output operator for ConstVectorBase objects.
template<class T, class BaseClass>
sum (const ConstVectorBase< T, BaseClass > &l)
 Returns the sum of the elements of the vector.
template<class T, class BaseClass>
minabs (const ConstVectorBase< T, BaseClass > &l) throw (VectorException)
 Return the element with smallest absolute value in the vector.
template<class T, class BaseClass>
min (const ConstVectorBase< T, BaseClass > &l) throw (VectorException)
 Returns the smallest element of the vector.
template<class T, class BaseClass>
maxabs (const ConstVectorBase< T, BaseClass > &l)
 Return the element with largest absolute value in the vector.
template<class T, class BaseClass>
max (const ConstVectorBase< T, BaseClass > &l)
 Returns the largest element of the vector.
template<class T, class BaseClass, class BaseClass2>
dot (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns the dot product of the two vectors
template<class T, class BaseClass>
dot (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns the dot product of a vector and a scalar
template<class T, class BaseClass>
dot (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns the dot product of a scalar and a vector
template<class T, class BaseClass>
norm (const ConstVectorBase< T, BaseClass > &v)
 returns the norm of the vector
template<class T, class BaseClass, class BaseClass2>
Minkowski (const ConstVectorBase< T, BaseClass > &v, const ConstVectorBase< T, BaseClass2 > &w)
 return the Minkowski product of two vectors of length 4.
template<class T, class BaseClass1, class BaseClass2>
cosVec (const ConstVectorBase< T, BaseClass1 > &a, const ConstVectorBase< T, BaseClass2 > &b)
 finds the cosine between the two vectors
template<class T, class BaseClass, class BaseClass2>
bool eq (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool eq (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool eq (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool ne (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool ne (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool ne (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool lt (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool lt (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool lt (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool gt (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gt (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gt (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool ge (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool ge (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool ge (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool le (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool le (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool le (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.


Generated on Thu Feb 9 03:31:21 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1