pele
Python energy landscape explorer
 All Classes Namespaces Functions Variables Typedefs
Public Types | Public Member Functions
pele::VecN< N > Class Template Reference

#include <vecn.h>

List of all members.

Public Types

typedef dtype * iterator
typedef dtype const * const_iterator

Public Member Functions

 VecN ()
 VecN (dtype const &d)
 VecN (pele::Array< dtype > const &x)
size_t size () const
dtype * data ()
dtype const * data () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
dtype & operator[] (const size_t i)
dtype const & operator[] (const size_t i) const
void assign (dtype const &d)
VecN< N > & operator= (pele::Array< double > const &rhs)
VecN< N > & operator+= (const VecN< N > &rhs)
VecN< N > & operator+= (const dtype &rhs)
VecN< N > & operator-= (const VecN< N > &rhs)
VecN< N > & operator-= (const dtype &rhs)
VecN< N > & operator*= (const VecN< N > &rhs)
VecN< N > & operator*= (const dtype &rhs)
VecN< N > & operator/= (const VecN< N > &rhs)
VecN< N > & operator/= (const dtype &rhs)
VecN< N > operator- (VecN< N > const &rhs) const
dtype sum () const
dtype prod () const

Detailed Description

template<size_t N>
class pele::VecN< N >

Definition at line 15 of file vecn.h.


Member Typedef Documentation

template<size_t N>
typedef dtype const* pele::VecN< N >::const_iterator

Definition at line 56 of file vecn.h.

template<size_t N>
typedef dtype* pele::VecN< N >::iterator

return iterators over data

Definition at line 55 of file vecn.h.


Constructor & Destructor Documentation

template<size_t N>
pele::VecN< N >::VecN ( ) [inline]

default constructor

Definition at line 24 of file vecn.h.

template<size_t N>
pele::VecN< N >::VecN ( dtype const &  d) [inline]

initialize with constant

Definition at line 29 of file vecn.h.

template<size_t N>
pele::VecN< N >::VecN ( pele::Array< dtype > const &  x) [inline]

initialize as copy of pele array

Definition at line 34 of file vecn.h.


Member Function Documentation

template<size_t N>
void pele::VecN< N >::assign ( dtype const &  d) [inline]

assign each element of the vector to be d

Definition at line 71 of file vecn.h.

template<size_t N>
iterator pele::VecN< N >::begin ( ) [inline]

Definition at line 57 of file vecn.h.

template<size_t N>
const_iterator pele::VecN< N >::begin ( ) const [inline]

Definition at line 59 of file vecn.h.

template<size_t N>
dtype* pele::VecN< N >::data ( ) [inline]

return pointer to data

Definition at line 49 of file vecn.h.

template<size_t N>
dtype const* pele::VecN< N >::data ( ) const [inline]

Definition at line 50 of file vecn.h.

template<size_t N>
iterator pele::VecN< N >::end ( ) [inline]

Definition at line 58 of file vecn.h.

template<size_t N>
const_iterator pele::VecN< N >::end ( ) const [inline]

Definition at line 60 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator*= ( const VecN< N > &  rhs) [inline]

Definition at line 123 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator*= ( const dtype &  rhs) [inline]

Definition at line 130 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator+= ( const VecN< N > &  rhs) [inline]

Definition at line 95 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator+= ( const dtype &  rhs) [inline]

Definition at line 102 of file vecn.h.

template<size_t N>
VecN<N> pele::VecN< N >::operator- ( VecN< N > const &  rhs) const [inline]

Definition at line 152 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator-= ( const VecN< N > &  rhs) [inline]

Definition at line 109 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator-= ( const dtype &  rhs) [inline]

Definition at line 116 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator/= ( const VecN< N > &  rhs) [inline]

Definition at line 138 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator/= ( const dtype &  rhs) [inline]

Definition at line 145 of file vecn.h.

template<size_t N>
VecN<N>& pele::VecN< N >::operator= ( pele::Array< double > const &  rhs) [inline]

copy the data in a pele::Array into this vector

Definition at line 81 of file vecn.h.

template<size_t N>
dtype& pele::VecN< N >::operator[] ( const size_t  i) [inline]

access an element in the vector

Definition at line 65 of file vecn.h.

template<size_t N>
dtype const& pele::VecN< N >::operator[] ( const size_t  i) const [inline]

Definition at line 66 of file vecn.h.

template<size_t N>
dtype pele::VecN< N >::prod ( ) const [inline]

returns the product of all elements (reduces the array)

Definition at line 175 of file vecn.h.

template<size_t N>
size_t pele::VecN< N >::size ( ) const [inline]

Definition at line 44 of file vecn.h.

template<size_t N>
dtype pele::VecN< N >::sum ( ) const [inline]

returns the sum of all elements (reduces the array)

Definition at line 164 of file vecn.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs