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')
156 void resize(
size_t,
double init_value=0);
178 gsl_vector* tmp = detail::create_gsl_vector_copy(rhs.
gsl_vector_p());
179 delete_allocated_memory();
184 #ifdef YAT_HAVE_RVALUE 205 delete_allocated_memory();
207 rhs.gsl_vector_p(NULL);
226 const Vector& assign(
const gsl_vector* rhs);
239 gsl_vector* create_gsl_vector_copy(
const VectorBase&)
const;
242 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
VectorMutable(void)
default constructor
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
Class to report errors associated with IO operations.
Definition: Exception.h:109
Vector & operator=(const VectorExpression< T > &rhs)
assignment from vector expression
Definition: Vector.h:175
Vector(void)
The default constructor.