BLAS1
The Basic Linear Algebra Subprograms
Level 1


BLAS1 is a MATLAB library which implements the Level 1 Basic Linear Algebra Subprograms (BLAS).

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 1 BLAS are primarily for use in vector operations, such as vector norms, dot products, vector scaling, and the addition of a scalar multiple of one vector to another.

While the entries of a typical vector are stored continguously in memory, many BLAS1 routines allow the user to specify a vector by locating its first element, and giving an increment to be used to locate the successive elements. An increment of +1 corresponds to the typical vector; however, by specifying other increments, a "logical" vector can be selected that is actually a row, column, or even a diagonal of a two-dimensional array.

The Level 1 BLAS are available in both real and complex arithmetic versions, and using single precision or double precision. In most cases, a given BLAS function has a root name, such as AXPY, and prefix is used to identify the arithmetic and precision. Thus,

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

BLAS1 is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

BLAS1_C, a MATLAB library which contains basic linear algebra routines for vector-vector operations, using single precision complex arithmetic;

BLAS1_D, a MATLAB library which contains basic linear algebra routines for vector-vector operations, using double precision real arithmetic;

BLAS1_S, a MATLAB library which contains basic linear algebra routines for vector-vector operations, using single precision real arithmetic;

BLAS1_Z, a MATLAB library which contains basic linear algebra routines for vector-vector operations, using double precision complex arithmetic;

BLAS2, a FORTRAN90 library which contains basic linear algebra routines for matrix-vector operations, using single or precision real or complex arithmetic;

BLAS3, a FORTRAN90 library which contains basic linear algebra routines for matrix-matrix operations, using single or precision real or complex arithmetic;

LAPACK_EXAMPLES, a FORTRAN90 program which demonstrates the use of the LAPACK linear algebra library.

LINPACK, a FORTRAN90 library which is a linear algebra package that uses the BLAS1 routines.

Reference:

  1. Edward Anderson, Zhaojun Bai, Christian Bischof, Susan Blackford, James Demmel, Jack Dongarra, Jeremy Du Croz, Anne Greenbaum, Sven Hammarling, Alan McKenney, Danny Sorensen,
    LAPACK User's Guide,
    Third Edition,
    SIAM, 1999,
    ISBN: 0898714478,
    LC: QA76.73.F25L36.
  2. Jack Dongarra, Jim Bunch, Cleve Moler, Pete Stewart,
    LINPACK User's Guide,
    SIAM, 1979,
    ISBN13: 978-0-898711-72-1,
    LC: QA214.L56.
  3. Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh,
    Algorithm 539: Basic Linear Algebra Subprograms for Fortran Usage,
    ACM Transactions on Mathematical Software,
    Volume 5, Number 3, September 1979, pages 308-323.

You can go up one level to the MATLAB source codes.


Last revised on 29 April 2012.