blas3_d, a C code which implements the Level 3 BLAS, or Basic Linear Algebra Subprograms, using double precision real arithmetic.
The BLAS are a small core library of linear algebra utilities, which can be highly optimized for various architectures. Software that relies on the BLAS is thus highly portable, and will typically run very efficiently.
The Level 3 BLAS are primarily for use in matrix-matrix operations, such as matrix multiplication. In certain cases, they may also be used to operate on the rows or columns of a two-dimensional array.
The Level 3 BLAS were originally written in FORTRAN77. This version of the library only contains a subset of the BLAS3 library (at the moment, mainly just DGEMM and SGEMM). Arrays are stored according to the FORTRAN convention. Thus, an M by N mathematical array might be stored in a double precision FORTRAN array called "A" that is declared as
double precision a(lda,sda)where LDA is the "leading" dimension and SDA is the "second" dimension. It is natural for LDA to equal M, but it is only necessary that M <= LDA. The matrix is stored as a vector of concatenated column vectors, and the dimension statement is used to determine that columns should be LDA units long. Thus, a typical entry A(I,J) of the mathematical matrix is actually stored in the location FORTRAN vector location I+(J-1)*LDA. Of course, in C, this location would be I-1+(J-1)*LDA.
The computer code and data files made available on this web page are distributed under the MIT license
blas3_d is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.
blas0, a C code which contains auxilliary functions for the Basic Linear Algebra Subprograms (BLAS).
blas1_c, a C code which contains basic linear algebra routines for vector-vector operations, using single precision complex arithmetic.
blas1_d, a C code which contains basic linear algebra routines for vector-vector operations, using double precision real arithmetic.
blas1_s, a C code which contains basic linear algebra routines for vector-vector operations, using single precision real arithmetic.
blas1_z, a C code which contains basic linear algebra routines for vector-vector operations, using double precision complex arithmetic.