fs_vector.h File Reference

Implementation of class TBCI::FS_Vector. More...

#include "basics.h"
#include "bvector.h"

Include dependency graph for fs_vector.h:

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

Go to the source code of this file.

Namespaces

namespace  TBCI
namespace  std

Classes

class  TBCI::FSVecErr
 exception class More...
class  TBCI::FS_Vector< dims, T >
 Implementation of fixed sized Vectors (template argument) which is favorable for small Vectors, where the overhead of dynamically allocating and freeing memory and it's management is too expensive. More...

Defines

#define FSV_ASS_FSV(op)
#define FSV_NOASS_FSV(op)
#define FSV_ASS_T(op)
#define FSV_NOASS_T(op)
#define FSV_MEM_FRD(nm, op)

Functions

template<unsigned dims, typename T>
std::ostream & TBCI::operator<< (std::ostream &os, const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
std::istream & TBCI::operator>> (std::istream &in, FS_Vector< dims, T > &v)
template<unsigned dims, typename T>
TBCI::dot (const FS_Vector< dims, T > &fv1, const FS_Vector< dims, T > &fv2)
template<unsigned dims, typename T, unsigned long dims2>
FS_Vector< dims, T > TBCI::slice (const FS_Vector< dims, T > &fv, const unsigned long s, const unsigned long e)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::emul (const FS_Vector< dims, T > &f1, const FS_Vector< dims, T > &f2)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::cemul (const FS_Vector< dims, T > &f1, const FS_Vector< dims, T > &f2)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::ediv (const FS_Vector< dims, T > &f1, const FS_Vector< dims, T > &f2)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::cediv (const FS_Vector< dims, T > &f1, const FS_Vector< dims, T > &f2)
template<unsigned dims, typename T>
double TBCI::fabssqr (const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::operator* (const T &v, const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::operator+ (const T &v, const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
FS_Vector< dims, T > TBCI::operator- (const T &v, const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
TBCI::min (const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
TBCI::max (const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
TBCI::sum (const FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
double std::fabs (const TBCI::FS_Vector< dims, T > &fv)
template<unsigned dims, typename T>
std::abs (const TBCI::FS_Vector< dims, T > &fv)


Detailed Description

Implementation of class TBCI::FS_Vector.

Definition in file fs_vector.h.


Define Documentation

#define FSV_ASS_FSV ( op   ) 

Value:

template <unsigned dims, typename T>                    \
inline FS_Vector<dims,T>& FS_Vector<dims,T>::operator op (const FS_Vector <dims,T>& fv) \
{                                                       \
  for (unsigned long i = 0; i < dims; ++i)              \
        x[i] op fv[i];                                  \
  return *this;                                         \
}

Definition at line 284 of file fs_vector.h.

#define FSV_ASS_T ( op   ) 

Value:

template <unsigned dims, typename T>                    \
inline FS_Vector<dims,T>& FS_Vector<dims,T>::operator op (const T& v) \
{                                                       \
  for (unsigned long i = 0; i < dims; ++i)              \
        x[i] op v;                                      \
  return *this;                                         \
}

Definition at line 309 of file fs_vector.h.

#define FSV_MEM_FRD ( nm,
op   ) 

Value:

template <unsigned dims, typename T>                                    \
INLINE FS_Vector<dims,T> FS_Vector<dims,T>:: nm (const T& v) const      \
{                                                                       \
        FS_Vector<dims,T> res;                                          \
        for (unsigned long i = 0; i < dims; ++i)                        \
                res.x[i] = v op x[i];                                   \
        return res;                                                     \
}

Definition at line 547 of file fs_vector.h.

#define FSV_NOASS_FSV ( op   ) 

Value:

template <unsigned dims, typename T>                    \
inline FS_Vector<dims,T> FS_Vector<dims,T>::operator op (const FS_Vector <dims,T>& fv) const \
{                                                       \
  FS_Vector <dims,T> rv;                                \
  for (unsigned long i = 0; i < dims; ++i)              \
        rv[i] = x[i] op fv[i];                          \
  return rv;                                            \
}

Definition at line 296 of file fs_vector.h.

#define FSV_NOASS_T ( op   ) 

Value:

template <unsigned dims, typename T>                    \
inline FS_Vector<dims,T> FS_Vector<dims,T>::operator op (const T& v) const \
{                                                       \
  FS_Vector<dims,T> rv;                                 \
  for (unsigned long i = 0; i < dims; ++i)              \
        rv[i] = x[i] op v;                              \
  return rv;                                            \
}

Definition at line 323 of file fs_vector.h.


Generated on Wed Nov 20 09:27:59 2013 for TBCI Numerical high perf. C++ Library by  doxygen 1.5.6