[GRASS-dev] undefined reference to G_alloc_matrix()
Glynn Clements
glynn at gclements.plus.com
Sun Aug 3 12:41:19 EDT 2008
Yann Chemin wrote:
> I added the few lines of code of G_alloc_matrix() inside my code,
> since otherwise it would indeed require the whole suite of advanced
> math libraries
> to be able to use it, and in this case I just needed a trusted Grass way to
> allocate to images in memory for a small module (gipe/i.eb.h_SEBAL01).
>
> I would go to move those G_alloc_(i)(f)matrix() to libgis somewhere,
> as they dont particularly require anything to work.
Also, libgmath has two distinct representations for matrices and
vectors. The G_alloc_{i,f,}{matrix,vector} functions just return a
pointer or an array of pointers, while G_matrix_init() returns a
mat_struct. The latter is used with the BLAS/LAPACK functions.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list