1 #ifndef _theplu_yat_utility_vector_mutable_ 2 #define _theplu_yat_utility_vector_mutable_ 31 #include "VectorBase.h" 32 #include "VectorExpression.h" 33 #include "StrideIterator.h" 35 #include <gsl/gsl_vector.h> 94 void all(
double value);
134 virtual bool isview(
void)
const=0;
152 void swap(
size_t i,
size_t j);
166 using VectorBase::operator();
273 virtual const VectorMutable& assign(
const gsl_vector* rhs)=0;
void shuffle(VectorMutable &invec)
StrideIterator< double * > iterator
mutable iterator
Definition: VectorMutable.h:69
const_iterator begin(void) const
void swap(size_t i, size_t j)
Exchange elements i and j.
The Department of Theoretical Physics namespace as we define it.
VectorMutable & operator+=(const VectorExpression< T > &rhs)
Addition and assign operator.
Definition: VectorMutable.h:184
const gsl_vector * gsl_vector_p(void) const
VectorMutable(void)
default constructor
VectorMutable & operator=(const VectorExpression< T > &rhs)
assignment from vector expression
Definition: VectorMutable.h:256
VectorMutable & operator-=(const VectorExpression< T > &rhs)
Subtraction and assign operator.
Definition: VectorMutable.h:214
const VectorMutable & operator+=(const VectorBase &)
Addition and assign operator. VectorBase addition, .
gsl_vector * gsl_vector_p(void)
const_iterator end(void) const
const VectorMutable & operator-=(const VectorBase &)
Subtract and assign operator. VectorBase subtraction, .
virtual bool isview(void) const =0
virtual ~VectorMutable(void)
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
gsl_vector * vec_
Definition: VectorMutable.h:269
const VectorMutable & operator*=(double d)
Multiply with scalar and assign operator, .
An expression that can be converted to a Vector.
Definition: VectorExpression.h:67
This is the mutable interface to GSL vector.
Definition: VectorMutable.h:56
void div(const VectorBase &other)
This function performs element-wise division, .
void sort(VectorMutable &vec)
double & operator()(size_t i)
Element access operator.
const gsl_vector * gsl_vector_p(void) const
return a GSL vector pointer
Definition: VectorExpression.h:110
void mul(const VectorBase &other)
This function performs element-wise multiplication, .
double & reference
Definition: VectorMutable.h:64
const VectorMutable & operator=(const VectorMutable &)
assignment
Adaptor using a stride on underlying iterator.
Definition: StrideIterator.h:50
void reverse(void)
Reverse the order of elements in the VectorMutable.