At Thu, 16 Jun 2011 13:07:07 -0500,
Waclaw Kusnierczyk wrote:
> I can't find appropriate routines in the interface -- I'm thinking about 
> something like
> 
>      int nrows = gsl_matrix_size1(const gsl_matrix *m);
> 
> It's possible to write code like
> 
>      int nrows = m->size1;
> 
> but I'd prefer to avoid breaking the abstraction barrier.

No need to worry about that - the matrix and vector structs are part
of the API, it is ok to use the struct parameters for them.  They
definitely won't change.

If it's a concern you can wrap them in a macro.

_______________________________________________
Help-gsl mailing list
Help-gsl@gnu.org
https://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to