yat  0.16pre
Public Types | Public Member Functions | List of all members
theplu::yat::utility::BasicVector< Derived > Class Template Reference

#include <yat/utility/BasicVector.h>

Public Types

typedef Derived derived_type
 

Public Member Functions

double operator() (size_t i) const
 access element i
 
const gsl_vector * gsl_vector_p (void) const
 
size_t size (void) const
 

Detailed Description

template<class Derived>
class theplu::yat::utility::BasicVector< Derived >

yat uses template expression to implement fast linear algebra operators such as Vector and Matrix multiplication.

This class defines the interface for a vector and is the base class of both VectorBase and VectorExpression. Functions that work on both usual VectorBase and on [temporary] VectorExpression pass a BasicVector<T>.

The class only defines the interface and does not implement anything. All functions must be implemented by derived classes.

Since
new in yat 0.15

Member Typedef Documentation

template<class Derived>
typedef Derived theplu::yat::utility::BasicVector< Derived >::derived_type

Class that inherits from BasicVector

Member Function Documentation

template<class Derived>
const gsl_vector* theplu::yat::utility::BasicVector< Derived >::gsl_vector_p ( void  ) const
inline
Returns
a gsl vector pointer
template<class Derived>
size_t theplu::yat::utility::BasicVector< Derived >::size ( void  ) const
inline
Returns
number of elements in vector

The documentation for this class was generated from the following file:

Generated on Thu Jan 10 2019 02:54:20 for yat by  doxygen 1.8.11