LAPACK
When calling LAPACK routines C-language programs, make sure that you follow Fortran rules:
-Pass variables by 'address' as opposed to pass by 'value'.
-Be sure to store your data Fortran -style, i.e.
data stored in column-major rather than row-major order.
BLAS
BLAS routines are Fortran-style routines. If you call BLAS routines from a C-language program,
you must follow the Fortran-style calling conventions:
-Pass variables by address as opposed to passing by value.
-Be sure to store data Fortran-style,
i.e. data stored in column-major rather than row-major order.
CBLAS
CBLAS routines are provided as the C-style interface to the BLAS routines.
Call CBLAS routines using regular C-style calls. When using the CBLAS interface,
the header file mkl.h will simplify the program development as it specifies enumerated values as
well as prototypes of all the functions. The header determines if the program is
being compiled with a C++ compiler,
and if it is, the included file will be correct for use with C++ compilation.