Markus Neteler d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) %!s(int64=8) %!d(string=hai) anos
..
test d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) %!s(int64=8) %!d(string=hai) anos
ATLAS_wrapper_blas_level_1.c e02aa2e241 Typo fixes %!s(int64=13) %!d(string=hai) anos
DEPEND db49180dd7 welcome to GRASS 7.0.svn %!s(int64=17) %!d(string=hai) anos
Makefile b013575a2b add build support for OpenMP (https://trac.osgeo.org/grass/ticket/657) %!s(int64=13) %!d(string=hai) anos
README db49180dd7 welcome to GRASS 7.0.svn %!s(int64=17) %!d(string=hai) anos
TODO d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) %!s(int64=8) %!d(string=hai) anos
blas_level_1.c 9f261a7fd6 move prototypes from include/ to include/defs %!s(int64=13) %!d(string=hai) anos
blas_level_2.c 6859a2bc8e gmath lib: fix typos %!s(int64=12) %!d(string=hai) anos
blas_level_3.c e7a4e6b933 Patch to fix various spelling errors (see https://trac.osgeo.org/grass/ticket/3088) %!s(int64=8) %!d(string=hai) anos
brent.c e740471b68 update FSF mailing address (https://trac.osgeo.org/grass/ticket/1422) %!s(int64=13) %!d(string=hai) anos
ccmath_grass_wrapper.c 28a3d85493 Head section correction. New matrix conversion functions added. %!s(int64=15) %!d(string=hai) anos
dalloc.c 8265a991b4 size_t: update gmath lib %!s(int64=12) %!d(string=hai) anos
del2g.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the %!s(int64=15) %!d(string=hai) anos
eigen_tools.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the %!s(int64=15) %!d(string=hai) anos
fft.c e740471b68 update FSF mailing address (https://trac.osgeo.org/grass/ticket/1422) %!s(int64=13) %!d(string=hai) anos
findzc.c e740471b68 update FSF mailing address (https://trac.osgeo.org/grass/ticket/1422) %!s(int64=13) %!d(string=hai) anos
gauss.c 498f194bcc Replace rand/random/lrand48/etc with lib/gis random number functions %!s(int64=10) %!d(string=hai) anos
getg.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ %!s(int64=16) %!d(string=hai) anos
gmathlib.dox e6774c02d1 New band matrix functions. Implemented new conjugate gradent band matrix %!s(int64=15) %!d(string=hai) anos
ialloc.c 8265a991b4 size_t: update gmath lib %!s(int64=12) %!d(string=hai) anos
la.c efdbbad0bf more precise warning %!s(int64=9) %!d(string=hai) anos
lu.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) %!s(int64=8) %!d(string=hai) anos
max_pow2.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ %!s(int64=16) %!d(string=hai) anos
mult.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the %!s(int64=15) %!d(string=hai) anos
rand1.c 498f194bcc Replace rand/random/lrand48/etc with lib/gis random number functions %!s(int64=10) %!d(string=hai) anos
solvers_classic_iter.c 28a3d85493 Head section correction. New matrix conversion functions added. %!s(int64=15) %!d(string=hai) anos
solvers_direct.c 2b21089a0a typo in code comment %!s(int64=13) %!d(string=hai) anos
solvers_direct_cholesky_band.c 7869e1ed87 gmath lib: adjust G_percent() %!s(int64=12) %!d(string=hai) anos
solvers_krylov.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) %!s(int64=8) %!d(string=hai) anos
sparse_matrix.c e6774c02d1 New band matrix functions. Implemented new conjugate gradent band matrix %!s(int64=15) %!d(string=hai) anos
symmetric_band_matrix.c c841fe5874 Fixed some OpenMP related bugs. Removed obsolete comments from Makefile. %!s(int64=15) %!d(string=hai) anos

README

Date: Wed, 27 Sep 2000 15:41:24 +0000
From: David D Gray

I have checked in the gmath stuff to CVS. This directory might later
contain other kinds of generic routine (fft is one that comes to mind in
view of the investigations into NR). But for now there is only the
BLAS/LAPACK wrappers and supporting structure in la.c.

I thought to follow the libc in separating maths stuff to a separate
directory, even though they are G_*() functions.

I believe it is fairly intuitive to use - developers should use
G_matrix_init() to create a matrix. A vector can be built with setting
cols (or rows as appropriate) to 1. A G_vector_init() might be useful,
but it would have to distinguish between a row and column vector, (is it
needed?). Then use G_[set,get]_matrix_element() to set or retrieve
elements. No-one should need to ever worry about Fortran peculiarities
(like declaring doublereal variables, or calling a foo_() ).

Currently there are: add matrices A+B (doesn't use BLAS), multiply A.B,
invert A^-1, solve simple linear system A.X=B for X given B. Others are
easy to add as required.

David
-----------------------------------

Getting BLAS/LAPACK (one package):

http://netlib.bell-labs.com/netlib/master/readme.html
http://www.netlib.org

http://www.netlib.org/lapack/

Compiling of LAPACK (be sure to have "." in PATH):

Linux:
cd LAPACK
cp INSTALL/make.inc.LINUX make.inc
#now edit Makefile and
#comment line 11 and uncomment line 12 (to include "blaslib" compilation)
#compile with
make

Solaris:
cd LAPACK
cp INSTALL/make.inc.SUN4SOL2 make.inc
#now edit Makefile and
#comment line 11 and uncomment line 12 (to include "blaslib" compilation)
#compile with
make

etc.

See INSTALL/ for further platforms.

--------------------------------------------------------------------
Usage:

Sample Makefile:

MODULE_TOPDIR = /path/to/grass

PGM = test

LIBES = $(GMATHLIB) $(GISLIB)
DEPENDENCIES = $(GMATHLIB) $(GISLIB)

include $(MODULE_TOPDIR)/include/Make/Module.make


Sample module source:

#include
#include
#include

int main (int argc, char *argv[])
{
mat_struct *matrix;

matrix = G_matrix_init (3, 3, 1);
G_matrix_free (matrix);

return 0;
}