#include <mia/core/gsl_vector.hh>
Public Types | |
typedef const_vector_iterator | const_iterator |
typedef const double & | const_reference |
typedef vector_iterator | iterator |
typedef double & | reference |
typedef size_t | size_type |
typedef double | value_type |
typedef const gsl_vector * | vector_const_pointer_type |
typedef gsl_vector * | vector_pointer_type |
typedef gsl_vector | vector_type |
Public Member Functions | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | is_valid () const |
bool | is_writable () const |
operator Vector::vector_const_pointer_type () const | |
vector const pointer type operator to enable transparent calls to the GSL APL More... | |
operator Vector::vector_pointer_type () | |
vector pointer type operator to enable transparent calls to the GSL APL More... | |
const gsl_vector * | operator-> () const |
gsl_vector * | operator-> () |
Vector & | operator= (const Vector &other) |
Vector & | operator= (Vector &&other) |
value_type | operator[] (size_t i) const |
reference | operator[] (size_t i) |
void | print (std::ostream &os) const |
size_type | size () const |
Vector () | |
Vector (size_type size, bool clear) | |
Vector (size_type size, const double *init) | |
Vector (gsl_vector *holder) | |
Vector (const gsl_vector *holder) | |
Vector (const Vector &other) | |
Vector (Vector &&other) | |
~Vector () | |
Destructor. More... | |
Protected Member Functions | |
void | reset_holder (gsl_vector *holder) |
void | reset_holder (const gsl_vector *holder) |
This is a wrapper class around the GSL vector type. It provides a compatibility layer to make it possible to use STL algorithms and constructs.
Definition at line 37 of file gsl_vector.hh.
Definition at line 41 of file gsl_vector.hh.
typedef const double& gsl::Vector::const_reference |
Definition at line 45 of file gsl_vector.hh.
typedef vector_iterator gsl::Vector::iterator |
Definition at line 40 of file gsl_vector.hh.
typedef double& gsl::Vector::reference |
Definition at line 44 of file gsl_vector.hh.
typedef size_t gsl::Vector::size_type |
Definition at line 42 of file gsl_vector.hh.
typedef double gsl::Vector::value_type |
Definition at line 43 of file gsl_vector.hh.
typedef const gsl_vector* gsl::Vector::vector_const_pointer_type |
Definition at line 48 of file gsl_vector.hh.
typedef gsl_vector* gsl::Vector::vector_pointer_type |
Definition at line 47 of file gsl_vector.hh.
typedef gsl_vector gsl::Vector::vector_type |
Definition at line 46 of file gsl_vector.hh.
gsl::Vector::Vector | ( | ) |
Construct an empty vector without allocating the GSL data structures
gsl::Vector::Vector | ( | size_type | size, |
bool | clear | ||
) |
Construct a vector of given size
size | |
clear | if set to true set all values to zero at allocation |
gsl::Vector::Vector | ( | size_type | size, |
const double * | init | ||
) |
Construct a vector of given size and initialize it with the given data
size | |
init | double array that must be at least of size size |
gsl::Vector::Vector | ( | gsl_vector * | holder | ) |
Wrap a pre-constructed GSL vector. The passed GSL-vector will not be destroyed when the destructor is called. The values of the GSL vector can be changed
holder | the already allocated GSL vector |
gsl::Vector::Vector | ( | const gsl_vector * | holder | ) |
Wrap a pre-constructed GSL vector. The passed GSL-vector will not be destroyed when the destructor is called. The values of the GSL vector can not be changed
holder | the already allocated GSL vector |
gsl::Vector::Vector | ( | const Vector & | other | ) |
Copy constructor, does a deep copy of the internal data structures.
gsl::Vector::Vector | ( | Vector && | other | ) |
Move constructor, does move the internal data structure to the new object.
gsl::Vector::~Vector | ( | ) |
Destructor.
iterator gsl::Vector::begin | ( | ) |
const_iterator gsl::Vector::begin | ( | ) | const |
iterator gsl::Vector::end | ( | ) |
const_iterator gsl::Vector::end | ( | ) | const |
bool gsl::Vector::is_valid | ( | ) | const |
bool gsl::Vector::is_writable | ( | ) | const |
gsl::Vector::operator Vector::vector_const_pointer_type | ( | ) | const |
vector const pointer type operator to enable transparent calls to the GSL APL
gsl::Vector::operator Vector::vector_pointer_type | ( | ) |
vector pointer type operator to enable transparent calls to the GSL APL
const gsl_vector* gsl::Vector::operator-> | ( | ) | const |
gsl_vector* gsl::Vector::operator-> | ( | ) |
Copy operator, does a deep copy of the internal data structures.
Move operator, does move the internal data structure to the new object.
|
inline |
Element read only access operator
i |
Definition at line 141 of file gsl_vector.hh.
|
inline |
Element read only access operator
i |
Definition at line 151 of file gsl_vector.hh.
void gsl::Vector::print | ( | std::ostream & | os | ) | const |
|
inlineprotected |
Definition at line 179 of file gsl_vector.hh.
|
inlineprotected |
Definition at line 184 of file gsl_vector.hh.
size_type gsl::Vector::size | ( | ) | const |