yat  0.21pre
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

◆ derived_type

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

Class that inherits from BasicVector

Member Function Documentation

◆ gsl_vector_p()

template<class Derived>
const gsl_vector* theplu::yat::utility::BasicVector< Derived >::gsl_vector_p ( void  ) const
inline
Returns
a gsl vector pointer

◆ size()

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 Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14