ExaFMM 1
Fast-multipole Method for exascale systems
Public Member Functions | Private Attributes | Friends
vec< N, T > Class Template Reference

Custom vector type for small vectors. More...

#include <vec.h>

Collaboration diagram for vec< N, T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vec ()
 vec (const T &b)
 vec (const vec &b)
 ~vec ()
const vecoperator= (const T b)
const vecoperator+= (const T b)
const vecoperator-= (const T b)
const vecoperator*= (const T b)
const vecoperator/= (const T b)
const vecoperator= (const vec &b)
const vecoperator+= (const vec &b)
const vecoperator-= (const vec &b)
const vecoperator*= (const vec &b)
const vecoperator/= (const vec &b)
vec operator+ (const vec &b) const
vec operator- (const vec &b) const
vec operator* (const vec &b) const
vec operator/ (const vec &b) const
T & operator[] (int i)
const T & operator[] (int i) const
 operator T * ()
 operator const T * () const

Private Attributes

a [N]

Friends

std::ostream & operator<< (std::ostream &s, const vec &a)
norm (const vec &b)

Detailed Description

template<int N, typename T>
class vec< N, T >

Custom vector type for small vectors.

Definition at line 27 of file vec.h.


Constructor & Destructor Documentation

template<int N, typename T>
vec< N, T >::vec ( ) [inline]

Definition at line 31 of file vec.h.

template<int N, typename T>
vec< N, T >::vec ( const T &  b) [inline]

Definition at line 32 of file vec.h.

template<int N, typename T>
vec< N, T >::vec ( const vec< N, T > &  b) [inline]

Definition at line 35 of file vec.h.

template<int N, typename T>
vec< N, T >::~vec ( ) [inline]

Definition at line 38 of file vec.h.


Member Function Documentation

template<int N, typename T>
vec< N, T >::operator const T * ( ) const [inline]

Definition at line 106 of file vec.h.

template<int N, typename T>
vec< N, T >::operator T * ( ) [inline]

Definition at line 105 of file vec.h.

template<int N, typename T>
vec vec< N, T >::operator* ( const vec< N, T > &  b) const [inline]

Definition at line 89 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator*= ( const vec< N, T > &  b) [inline]

Definition at line 71 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator*= ( const T  b) [inline]

Definition at line 51 of file vec.h.

template<int N, typename T>
vec vec< N, T >::operator+ ( const vec< N, T > &  b) const [inline]

Definition at line 79 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator+= ( const T  b) [inline]

Definition at line 43 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator+= ( const vec< N, T > &  b) [inline]

Definition at line 63 of file vec.h.

template<int N, typename T>
vec vec< N, T >::operator- ( const vec< N, T > &  b) const [inline]

Definition at line 84 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator-= ( const vec< N, T > &  b) [inline]

Definition at line 67 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator-= ( const T  b) [inline]

Definition at line 47 of file vec.h.

template<int N, typename T>
vec vec< N, T >::operator/ ( const vec< N, T > &  b) const [inline]

Definition at line 94 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator/= ( const vec< N, T > &  b) [inline]

Definition at line 75 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator/= ( const T  b) [inline]

Definition at line 55 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator= ( const T  b) [inline]

Definition at line 39 of file vec.h.

template<int N, typename T>
const vec& vec< N, T >::operator= ( const vec< N, T > &  b) [inline]

Definition at line 59 of file vec.h.

template<int N, typename T>
T& vec< N, T >::operator[] ( int  i) [inline]

Definition at line 99 of file vec.h.

template<int N, typename T>
const T& vec< N, T >::operator[] ( int  i) const [inline]

Definition at line 102 of file vec.h.


Friends And Related Function Documentation

template<int N, typename T>
T norm ( const vec< N, T > &  b) [friend]

Definition at line 111 of file vec.h.

template<int N, typename T>
std::ostream& operator<< ( std::ostream &  s,
const vec< N, T > &  a 
) [friend]

Definition at line 107 of file vec.h.


Member Data Documentation

template<int N, typename T>
T vec< N, T >::a[N] [private]

Definition at line 29 of file vec.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines