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);
92 #ifdef YAT_HAVE_RVALUE 133 explicit Vector(std::istream &,
char sep=
'\0');
155 void resize(
size_t,
double init_value=0);
177 gsl_vector* tmp = detail::create_gsl_vector_copy(rhs.
gsl_vector_p());
178 delete_allocated_memory();
183 #ifdef YAT_HAVE_RVALUE 204 delete_allocated_memory();
206 rhs.gsl_vector_p(NULL);
225 const Vector& assign(
const gsl_vector* rhs);
238 gsl_vector* create_gsl_vector_copy(
const VectorBase&)
const;
241 void delete_allocated_memory(
void);
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:201
gsl_vector * gsl_vector_p(void)
const gsl_vector * gsl_vector_p(void) const
return a GSL vector pointer
Definition: VectorExpression.h:112
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
void swap(Vector &, Vector &)
Swap Vector elements by copying.
This is the mutable interface to GSL vector.
Definition: VectorMutable.h:56
Vector(VectorExpression< T > &&other)
Move constructor from Vector expression.
Definition: Vector.h:106
Vector & operator=(const VectorExpression< T > &rhs)
assignment from vector expression
Definition: Vector.h:174
Vector(void)
The default constructor.