Class gsl_matrix_wrap (o2scl)¶
-
class gsl_matrix_wrap¶
A simple convenience wrapper for GSL matrix 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_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.
-
inline gsl_matrix_wrap(gsl_matrix *m)¶