MTSOS: BLAS tipsBLAS stands for Basic Linear Algebra Subroutines and is a library of linear algebra subroutines that have been optimized for a particular system. Thus rather than manually writing out these operators one can call the BLAS subroutine as they have been optimized with respect to hardware to perform much faster. Many systems already include BLAS (for example LAPACK includes BLAS, and most Mac releases) but if not, one can download an optimized implementation which can be found from the BLAS page or it can be compiled using ATLAS. Aside from being necessary for MTSOS, many users may want to use these functions in their custom barrier and dynamics functions. Below we explain the BLAS interface for C that is provided with MATLAB, which is also the interface used by most Mac implementations, for several useful functions. NOTE: This interface is different from the ATLAS ANSI/ISO C BLAS API Reference which will result from ATLAS, and different from the C interface in the BLAS Standard. Should a BLAS library with a different interface be used, modifications may be necessary to the MTSOS code (there are three calls to dgemv in MTSOS.c). dgemvCalculates . Note that ptrdiff_t is the result of pointer subtraction, and can be considered an int.
dsyrCalculates where is symmetric. Note that ptrdiff_t is the result of pointer subtraction can can be considered an int.
dgemmCalculates . Note that ptrdiff_t is the result of pointer subtraction can can be considered an int.
|