GSL-1.4-demo
所属分类:数值算法/人工智能
开发工具:Visual C++
文件大小:3KB
下载次数:3
上传日期:2012-06-12 09:27:41
上 传 者:
JF1984
说明: GSL 1.4 demo The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.
(GSL 1.4 demo The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.)
文件列表:
GSL 1.4 demo\demo.dsp (10059, 2003-03-06)
GSL 1.4 demo\demo.dsw (531, 2001-08-21)
GSL 1.4 demo\main.c (1027, 2001-11-06)
GSL 1.4 demo (0, 2012-05-30)
Demonstration Workspace for GSL with Microsoft Visual C++
=========================================================
Workspace: demo.dsw
Before compiling the project you need to check that
the directory where you installed GSL is present in
the Microsoft Visual Studio include and library
paths. The directory is added automatically to
these paths if you install the library with the
automated setup program.
The Visual C++ options that need to be present are,
Tools -- Options -- Directories
Include Files
"C:\Program Files\GSL\include"
Library Files:
"C:\Program Files\GSL\lib"
With these settings you should be able to compile
and link the program main.c in this directory.
For the default installation you should build the
workspace using the project configuration
'ReleaseML' compiled with the single-threaded /ML
option, or the using the 'ReleaseDLL' configuration
compiled with the /MD option.
Note that the project settings for the ReleaseDLL
and DebugDLL configurations define the macro
GSL_DLL, which imports the DLL versions of the
functions.
To run a program compiled with 'ReleaseDLL' option
you will need to make the DLLs gsl.dll and
gslcblas.dll available by copying them from
"C:\Program Files\GSL\lib" into the same directory
as the demo.exe executable.
If you want to use other 'Release' or 'Debug'
configurations you will need to compile the
corresponding versions the library yourself,
following the instructions in main README.txt file.
The output from the program should be the same as
using GSL on Unix,
$ gcc main.c -lgsl -lgslcblas -lm
$ ./a.out
Here are ten random numbers in the range 0-99:
99 16 28 94 23 48 95 74 54 73
blas operation DAXPY
x: 1 2 3 4 5 y: 5.5 4.4 3.3 2.2 1.1 a x + y: 6.5 *** 6.3 6.2 6.1
If you see the same output, congratulations -- the
library is working.
近期下载者:
相关文件:
收藏者: