Hello,

I need to write a generic function to perform operations on matrices. The matrices passed as arguments may be of arbitrary dimensions, so I need my procedure to get the dimensions somehow, best directly from the matrix object (as the information is stored there already).

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.

Regards,
vQ

--
Waclaw Kusnierczyk

Bioinformatics and Gene Regulation Group
Department of Computer and Information Science
Norwegian University of Science and Technology
Sem Saelands vei 7, 7491 Trondheim, Norway

Theoretical Plant Modeling Lab, iPlant G2P Modeling Tools WG
Department of Agronomy
Kansas State University
Throckmorton Plant Sciences Center, Manhattan, KS 66506, USA


_______________________________________________
Help-gsl mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to