Class gsl_vector_wrap (o2scl)

O2scl : Class List

class gsl_vector_wrap

A simple convenience wrapper for GSL vector objects.

9/16/24: This class is currently used in fit_linear_ts.cpp and several of the linalg testing codes.

Warning

This uses typecasts on externally allocated GSL pointers and is not safe or fully const-correct.

Public Functions

inline gsl_vector_wrap(gsl_vector *v)

Create a wrapper given gsl_vector object v.

inline double operator[](size_t i) const

Access a vector element by the index.

inline size_t size()

Return the vector size.

Private Members

const double *d

A pointer to the data.

size_t sz

The vector size.