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 <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to