mcpele  1.0.0
The Monte Carlo Python Energy Landscape Explorer
 All Classes Namespaces Functions Variables Typedefs
Public Types | Public Member Functions
pele::MatrixNM< N, M > Class Template Reference

#include <vecn.h>

List of all members.

Public Types

typedef dtype * iterator
typedef dtype const * const_iterator

Public Member Functions

 MatrixNM ()
 MatrixNM (dtype const &d)
 MatrixNM (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
void assign (dtype const &d)
dtype const & operator() (size_t i, size_t j) const
dtype & operator() (size_t i, size_t j)
std::pair< size_t, size_t > shape () const
MatrixNM< N, M > & operator*= (dtype const &rhs)
double trace ()
MatrixNM< N, M > operator- (MatrixNM< N, M > const &rhs) const

Detailed Description

template<size_t N, size_t M>
class pele::MatrixNM< N, M >

Definition at line 186 of file vecn.h.


Member Typedef Documentation

template<size_t N, size_t M>
typedef dtype const* pele::MatrixNM< N, M >::const_iterator

Definition at line 232 of file vecn.h.

template<size_t N, size_t M>
typedef dtype* pele::MatrixNM< N, M >::iterator

return iterators over data

Definition at line 231 of file vecn.h.


Constructor & Destructor Documentation

template<size_t N, size_t M>
pele::MatrixNM< N, M >::MatrixNM ( ) [inline]

default constructor

Definition at line 196 of file vecn.h.

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

initialize with constant

Definition at line 201 of file vecn.h.

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

initialize as copy of pele array

Definition at line 206 of file vecn.h.


Member Function Documentation

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

assign each element of the vector to be d

Definition at line 241 of file vecn.h.

template<size_t N, size_t M>
iterator pele::MatrixNM< N, M >::begin ( ) [inline]

Definition at line 233 of file vecn.h.

template<size_t N, size_t M>
const_iterator pele::MatrixNM< N, M >::begin ( ) const [inline]

Definition at line 235 of file vecn.h.

template<size_t N, size_t M>
dtype* pele::MatrixNM< N, M >::data ( ) [inline]

return pointer to data

Definition at line 225 of file vecn.h.

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

Definition at line 226 of file vecn.h.

template<size_t N, size_t M>
iterator pele::MatrixNM< N, M >::end ( ) [inline]

Definition at line 234 of file vecn.h.

template<size_t N, size_t M>
const_iterator pele::MatrixNM< N, M >::end ( ) const [inline]

Definition at line 236 of file vecn.h.

template<size_t N, size_t M>
dtype const& pele::MatrixNM< N, M >::operator() ( size_t  i,
size_t  j 
) const [inline]

provide access to matrix element at row i and column j

Definition at line 251 of file vecn.h.

template<size_t N, size_t M>
dtype& pele::MatrixNM< N, M >::operator() ( size_t  i,
size_t  j 
) [inline]

Definition at line 255 of file vecn.h.

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

Definition at line 265 of file vecn.h.

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

Definition at line 281 of file vecn.h.

template<size_t N, size_t M>
std::pair<size_t, size_t> pele::MatrixNM< N, M >::shape ( ) const [inline]

Definition at line 260 of file vecn.h.

template<size_t N, size_t M>
size_t pele::MatrixNM< N, M >::size ( ) const [inline]

Definition at line 220 of file vecn.h.

template<size_t N, size_t M>
double pele::MatrixNM< N, M >::trace ( ) [inline]

Definition at line 272 of file vecn.h.


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