foadsf / cmathtuts Goto Github PK
View Code? Open in Web Editor NEWtrying to collect all useful tutorials for famous C math and linear algebra libraries such as CBLAS, CLAPACK, GSL...
License: GNU General Public License v3.0
trying to collect all useful tutorials for famous C math and linear algebra libraries such as CBLAS, CLAPACK, GSL...
License: GNU General Public License v3.0
Quoting your README.md
"I really do not understand the difference between LAPACK, LAPACKE and CLAPACK there might be some confusion in the tutorials"
You might want to check this page for clarifications:
http://nicolas.limare.net/pro/notes/2014/10/31_cblas_clapack_lapacke/
"The reference Fortran code for BLAS and LAPACK defines de facto a Fortran API, implemented by multiple vendors with code tuned to get the best performance on a given hardware."
"CBLAS is in fact just a very thin layer (no performance penalty) over BLAS, with these benefits:"
"There also is something on Netlib called CLAPACK, but it is not a standard C interface to the Fortran LAPACK. CLAPACK is a translation of the Fortran LAPACK code into C."
"For LAPACK, the native C interface is LAPACKE, not CLAPACK"
"LAPACKE is to LAPACK what CBLAS is to BLAS"
Line 9 in b91ea59
When l complied the code ,there are two errors.l have tried several times,but l don't know how to solve it.
`shentu@shentu-Lenovo-Product:~/code/vnlb-master/build$ make
[ 11%] Built target iio
[ 22%] Built target tvl1flow
[ 33%] Built target tvl1flow-bin
[ 50%] Built target vidutils
[ 66%] Built target vnlb
[ 77%] Built target awgn
[ 83%] Linking CXX executable ../bin/vnlbayes
/usr/bin/ld: /usr/local/lib/liblapack.a(xerbla.o): undefined reference to symbol
'_gfortran_string_len_trim@@GFORTRAN_1.0'
//usr/lib/x86_64-linux-gnu/libgfortran.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/vnlbayes.dir/build.make:101: recipe for target 'bin/vnlbayes' failed
make[2]: *** [bin/vnlbayes] Error 1
CMakeFiles/Makefile2:389: recipe for target 'src/CMakeFiles/vnlbayes.dir/all' failed
make[1]: *** [src/CMakeFiles/vnlbayes.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Quoting your README.md
"for some of the BLAS and CBLAS examples the -lgfortran is requred to compile. I don't know why!"
you probably mean link with -lgfortran, and not *compile.
that happens because when you want to link objects, some of which were compiled with gcc and some with gfortran, then you must use gfortran to link, or gcc plus the -lgfortran library
example:
gfortran fobject.o cobject.o -o program.bin
gcc fobject.o cobject.o -o program.bin -lgfortran
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.