Soeren Gebbert c841fe5874 Fixed some OpenMP related bugs. Removed obsolete comments from Makefile. пре 15 година
..
test c841fe5874 Fixed some OpenMP related bugs. Removed obsolete comments from Makefile. пре 15 година
ATLAS_wrapper_blas_level_1.c 28a3d85493 Head section correction. New matrix conversion functions added. пре 15 година
DEPEND db49180dd7 welcome to GRASS 7.0.svn пре 17 година
Makefile 002bbe23df Keep all library dependencies in Grass.make пре 15 година
README db49180dd7 welcome to GRASS 7.0.svn пре 17 година
TODO e22f18b97e Enhanced documentaion of the gmath doxygen file. Fixed several doxygen documentation issues. пре 15 година
blas_level_1.c 28a3d85493 Head section correction. New matrix conversion functions added. пре 15 година
blas_level_2.c e6774c02d1 New band matrix functions. Implemented new conjugate gradent band matrix пре 15 година
blas_level_3.c 28a3d85493 Head section correction. New matrix conversion functions added. пре 15 година
brent.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
ccmath_grass_wrapper.c 28a3d85493 Head section correction. New matrix conversion functions added. пре 15 година
dalloc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
del2g.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the пре 15 година
eigen_tools.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the пре 15 година
fft.c cbb63d89e4 Correct order of rows, cols arguments to fftw_plan_dft_2d пре 16 година
findzc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
gauss.c e22f18b97e Enhanced documentaion of the gmath doxygen file. Fixed several doxygen documentation issues. пре 15 година
getg.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
gmathlib.dox e6774c02d1 New band matrix functions. Implemented new conjugate gradent band matrix пре 15 година
ialloc.c e22f18b97e Enhanced documentaion of the gmath doxygen file. Fixed several doxygen documentation issues. пре 15 година
la.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the пре 15 година
lu.c 9cdef39111 Various files have moved from lib/gis to lib/gmath: пре 16 година
max_pow2.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
mult.c 49b8066c8f Added a new library to grass called ccmath (LGPL license) to replace the пре 15 година
rand1.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
solvers_classic_iter.c 28a3d85493 Head section correction. New matrix conversion functions added. пре 15 година
solvers_direct.c 28a3d85493 Head section correction. New matrix conversion functions added. пре 15 година
solvers_direct_cholesky_band.c c841fe5874 Fixed some OpenMP related bugs. Removed obsolete comments from Makefile. пре 15 година
solvers_krylov.c e6774c02d1 New band matrix functions. Implemented new conjugate gradent band matrix пре 15 година
sparse_matrix.c e6774c02d1 New band matrix functions. Implemented new conjugate gradent band matrix пре 15 година
symmetric_band_matrix.c c841fe5874 Fixed some OpenMP related bugs. Removed obsolete comments from Makefile. пре 15 година

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;
}