2016.4.2 BLAS基本知识

Level 1

Vector operations, e.g. y = /alpha x + y  向量操作

Level 2

Matrix-vector operations, e.g. y = /alpha A x + /beta y  矩阵与向量操作

Level 3

Matrix-matrix operations, e.g. C = /alpha A B + C    矩阵与矩阵的操作

Each routine has a name which specifies the operation, the type of matrices involved and their precisions. Some of the most common operations and their names are given below,

 

 

 

DOT

scalar product, x^T y

AXPY

vector sum, /alpha x + y

MV

matrix-vector product, A x

SV

matrix-vector solve, inv(A) x

MM

matrix-matrix product, A B

SM

matrix-matrix solve, inv(A) B

 

The type of matrices are,

 

GE

general   

GB

general band

SY

symmetric

SB

symmetric band

SP

symmetric packed

HE

hermitian

HB

hermitian band

HP

hermitian packed

TR

triangular

TB

triangular band

TP

triangular packed

Each operation is defined for four precisions,

 

S

single real

D

double real

C

single complex

Z

double complex

Thus, for example, the name SGEMM stands for "single-precision general matrix-matrix multiply" and ZGEMM stands for "double-precision complex matrix-matrix multiply".

 

因此,例如,命名为SGEMM的函数意思为单精度普通矩阵乘法ZGEMM双精度复数矩阵乘法

 

 更多的,可以参考:http://www.netlib.org/blas/blasqr.pdf

 

参考资料:

http://blog.csdn.net/chlele0105/article/details/21954687

基本介绍

http://blog.csdn.net/g_spider/article/details/6054990

基本介绍

http://www.cs.ubc.ca/~mpf/bcls/files.html

C源代码

https://www.gnu.org/software/gsl/manual/html_node/GSL-CBLAS-Library.html#GSL-CBLAS-Library

GNUblas

http://www.netlib.org/blas/

blas介绍网站

http://www.netlib.org/blas/blasqr.pdf

函数接口文档

https://dahuasky.wordpress.com/2009/08/15/%E5%85%B3%E4%BA%8E%E9%AB%98%E6%80%A7%E8%83%BD%E6%95%B0%E5%80%BC%E8%BF%90%E7%AE%97/

一位过来人简单总结的经验

http://www.netlib.org/blas/blast-forum/blast-forum.html

BLAS Technical Forum(推荐)

http://www.tat.physik.uni-tuebingen.de/~kley/lehre/ftn77/tutorial/blas.html

对于BLAS的简单介绍,主要面对fortran

https://developer.apple.com/library/mac/documentation/Accelerate/Reference/BLAS_Ref/index.html

apple的对于blas的实现,文档详细!(推荐)

你可能感兴趣的:(2016.4.2 BLAS基本知识)