|
| From: | Patrick Alken |
| Subject: | Re: [Bug-gsl] Missing gsl_vector_size(const gsl_vector*) |
| Date: | Fri, 8 Jan 2016 09:23:09 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
The gsl_vector and gsl_matrix structs are documented in the manual so accessing the size parameters shouldn't be an issue. The _get and _set functions are needed since they are a bit more complex than just accessing an element in an array.
On 01/08/2016 04:06 AM, Torbjörn Rathsman wrote:
It is possible to use accessor functions to retrieve or set data, but it is
not possible to access its size that way. Suggestion:
Add the function
inline gsl_vector_size(const gsl_vector* v)
{
return v->size;
}
| [Prev in Thread] | Current Thread | [Next in Thread] |