1 #ifndef _theplu_yat_utility_vector_ 2 #define _theplu_yat_utility_vector_ 33 #include "VectorMutable.h" 34 #include "Exception.h" 40 #include <gsl/gsl_vector.h> 73 explicit Vector(
size_t n,
double init_value=0);
131 explicit Vector(std::istream &,
char sep=
'\0');
153 void resize(
size_t,
double init_value=0);
175 gsl_vector* tmp = detail::create_gsl_vector_copy(rhs.
gsl_vector_p());
176 delete_allocated_memory();
201 delete_allocated_memory();
203 rhs.gsl_vector_p(NULL);
221 const Vector& assign(
const gsl_vector* rhs);
234 gsl_vector* create_gsl_vector_copy(
const VectorBase&)
const;
237 void delete_allocated_memory(
void);
249 void swap(Vector&, Vector&);
void resize(size_t, double init_value=0)
Resize Vector.
The Department of Theoretical Physics namespace as we define it.
const Vector & operator=(const Vector &)
The assignment operator.
const gsl_vector * const_vec_
pointer to underlying GSL vector
Definition: VectorBase.h:168
Vector & operator=(VectorExpression< T > &&rhs)
move assignment from vector expression
Definition: Vector.h:198
gsl_vector * gsl_vector_p(void)
This is the yat interface to GSL vector.
Definition: Vector.h:59
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
Vector(const VectorExpression< T > &other)
Constructor from a vector expression.
Definition: Vector.h:87
gsl_vector * vec_
Definition: VectorMutable.h:269
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
Vector(VectorExpression< T > &&other)
Move constructor from Vector expression.
Definition: Vector.h:105
Vector & operator=(const VectorExpression< T > &rhs)
assignment from vector expression
Definition: Vector.h:172
Vector(void)
The default constructor.
const gsl_vector * gsl_vector_p(void) const
return a GSL vector pointer
Definition: VectorExpression.h:110