Class gsl_matrix_wrap (o2scl)

O2scl : Class List

class gsl_matrix_wrap

A simple convenience wrapper for GSL matrix objects.

Warning

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

Public Functions

inline gsl_matrix_wrap(gsl_matrix *m)

Create a wrapper given gsl_matrix object m.

inline double operator()(size_t i, size_t j) const

Access the matrix by the indices.

inline size_t size1() const

Return the size in the first index.

inline size_t size2() const

Return the size in the second index.

Protected Attributes

const double *d

A pointer to the data.

size_t sz1

The size of the first index.

size_t sz2

The size of the second index.

size_t tda

The matrix stride.