1 #ifndef _theplu_yat_utility_vector_mutable_
2 #define _theplu_yat_utility_vector_mutable_
31 #include "VectorBase.h"
32 #include "StrideIterator.h"
34 #include <gsl/gsl_vector.h>
93 void all(
double value);
133 virtual bool isview(
void)
const=0;
151 void swap(
size_t i,
size_t j);
165 using VectorBase::operator();
const gsl_vector * gsl_vector_p(void) const
void shuffle(VectorMutable &invec)
StrideIterator< double * > iterator
mutable iterator
Definition: VectorMutable.h:68
void swap(size_t i, size_t j)
Exchange elements i and j.
const_iterator begin(void) const
VectorMutable(void)
default constructor
const VectorMutable & operator+=(const VectorBase &)
Addition and assign operator. VectorBase addition, .
gsl_vector * gsl_vector_p(void)
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:52
gsl_vector * vec_
Definition: VectorMutable.h:218
const VectorMutable & operator*=(double d)
Multiply with scalar and assign operator, .
const_iterator end(void) const
This is the mutable interface to GSL vector.
Definition: VectorMutable.h:55
void div(const VectorBase &other)
This function performs element-wise division, .
void sort(VectorMutable &vec)
double & operator()(size_t i)
Element access operator.
void mul(const VectorBase &other)
This function performs element-wise multiplication, .
double & reference
Definition: VectorMutable.h:63
Adaptor using a stride on underlying iterator.
Definition: StrideIterator.h:45
void reverse(void)
Reverse the order of elements in the VectorMutable.