[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] accessing matrix dimensions?

From: Brian Gough
Subject: Re: [Help-gsl] accessing matrix dimensions?
Date: Fri, 17 Jun 2011 22:59:54 +0100
User-agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/23.3 Mule/6.0 (HANACHIRUSATO)

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]