⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gsl_cblas.h

📁 开放gsl矩阵运算
💻 H
📖 第 1 页 / 共 3 页
字号:
/* blas/gsl_cblas.h *  * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman *  * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. *  * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *//* This is a copy of the CBLAS standard header. * We carry this around so we do not have to * break our model for flexible BLAS functionality. */#ifndef CBLAS_H#define CBLAS_H#include <stddef.h>/* * Enumerated and derived types */#define CBLAS_INDEX size_t  /* this may vary between platforms */enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102};enum CBLAS_TRANSPOSE {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113};enum CBLAS_UPLO {CblasUpper=121, CblasLower=122};enum CBLAS_DIAG {CblasNonUnit=131, CblasUnit=132};enum CBLAS_SIDE {CblasLeft=141, CblasRight=142};/* * =========================================================================== * Prototypes for level 1 BLAS functions (complex are recast as routines) * =========================================================================== */float  cblas_sdsdot(const int N, const float alpha, const float *X,                    const int incX, const float *Y, const int incY);double cblas_dsdot(const int N, const float *X, const int incX, const float *Y,                   const int incY);float  cblas_sdot(const int N, const float  *X, const int incX,                  const float  *Y, const int incY);double cblas_ddot(const int N, const double *X, const int incX,                  const double *Y, const int incY);/* * Functions having prefixes Z and C only */void   cblas_cdotu_sub(const int N, const void *X, const int incX,                       const void *Y, const int incY, void *dotu);void   cblas_cdotc_sub(const int N, const void *X, const int incX,                       const void *Y, const int incY, void *dotc);void   cblas_zdotu_sub(const int N, const void *X, const int incX,                       const void *Y, const int incY, void *dotu);void   cblas_zdotc_sub(const int N, const void *X, const int incX,                       const void *Y, const int incY, void *dotc);/* * Functions having prefixes S D SC DZ */float  cblas_snrm2(const int N, const float *X, const int incX);float  cblas_sasum(const int N, const float *X, const int incX);double cblas_dnrm2(const int N, const double *X, const int incX);double cblas_dasum(const int N, const double *X, const int incX);float  cblas_scnrm2(const int N, const void *X, const int incX);float  cblas_scasum(const int N, const void *X, const int incX);double cblas_dznrm2(const int N, const void *X, const int incX);double cblas_dzasum(const int N, const void *X, const int incX);/* * Functions having standard 4 prefixes (S D C Z) */CBLAS_INDEX cblas_isamax(const int N, const float  *X, const int incX);CBLAS_INDEX cblas_idamax(const int N, const double *X, const int incX);CBLAS_INDEX cblas_icamax(const int N, const void   *X, const int incX);CBLAS_INDEX cblas_izamax(const int N, const void   *X, const int incX);/* * =========================================================================== * Prototypes for level 1 BLAS routines * =========================================================================== *//*  * Routines with standard 4 prefixes (s, d, c, z) */void cblas_sswap(const int N, float *X, const int incX,                  float *Y, const int incY);void cblas_scopy(const int N, const float *X, const int incX,                  float *Y, const int incY);void cblas_saxpy(const int N, const float alpha, const float *X,                 const int incX, float *Y, const int incY);void cblas_dswap(const int N, double *X, const int incX,                  double *Y, const int incY);void cblas_dcopy(const int N, const double *X, const int incX,                  double *Y, const int incY);void cblas_daxpy(const int N, const double alpha, const double *X,                 const int incX, double *Y, const int incY);void cblas_cswap(const int N, void *X, const int incX,                  void *Y, const int incY);void cblas_ccopy(const int N, const void *X, const int incX,                  void *Y, const int incY);void cblas_caxpy(const int N, const void *alpha, const void *X,                 const int incX, void *Y, const int incY);void cblas_zswap(const int N, void *X, const int incX,                  void *Y, const int incY);void cblas_zcopy(const int N, const void *X, const int incX,                  void *Y, const int incY);void cblas_zaxpy(const int N, const void *alpha, const void *X,                 const int incX, void *Y, const int incY);/*  * Routines with S and D prefix only */void cblas_srotg(float *a, float *b, float *c, float *s);void cblas_srotmg(float *d1, float *d2, float *b1, const float b2, float *P);void cblas_srot(const int N, float *X, const int incX,                float *Y, const int incY, const float c, const float s);void cblas_srotm(const int N, float *X, const int incX,                float *Y, const int incY, const float *P);void cblas_drotg(double *a, double *b, double *c, double *s);void cblas_drotmg(double *d1, double *d2, double *b1, const double b2, double *P);void cblas_drot(const int N, double *X, const int incX,                double *Y, const int incY, const double c, const double  s);void cblas_drotm(const int N, double *X, const int incX,                double *Y, const int incY, const double *P);/*  * Routines with S D C Z CS and ZD prefixes */void cblas_sscal(const int N, const float alpha, float *X, const int incX);void cblas_dscal(const int N, const double alpha, double *X, const int incX);void cblas_cscal(const int N, const void *alpha, void *X, const int incX);void cblas_zscal(const int N, const void *alpha, void *X, const int incX);void cblas_csscal(const int N, const float alpha, void *X, const int incX);void cblas_zdscal(const int N, const double alpha, void *X, const int incX);/* * =========================================================================== * Prototypes for level 2 BLAS * =========================================================================== *//*  * Routines with standard 4 prefixes (S, D, C, Z) */void cblas_sgemv(const enum CBLAS_ORDER order,                 const enum CBLAS_TRANSPOSE TransA, const int M, const int N,                 const float alpha, const float *A, const int lda,                 const float *X, const int incX, const float beta,                 float *Y, const int incY);void cblas_sgbmv(const enum CBLAS_ORDER order,                 const enum CBLAS_TRANSPOSE TransA, const int M, const int N,                 const int KL, const int KU, const float alpha,                 const float *A, const int lda, const float *X,                 const int incX, const float beta, float *Y, const int incY);void cblas_strmv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,                 const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag,                 const int N, const float *A, const int lda,                  float *X, const int incX);void cblas_stbmv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,                 const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag,                 const int N, const int K, const float *A, const int lda,                  float *X, const int incX);void cblas_stpmv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,                 const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag,                 const int N, const float *Ap, float *X, const int incX);void cblas_strsv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,                 const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag,                 const int N, const float *A, const int lda, float *X,                 const int incX);void cblas_stbsv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,                 const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag,                 const int N, const int K, const float *A, const int lda,                 float *X, const int incX);void cblas_stpsv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,                 const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag,                 const int N, const float *Ap, float *X, const int incX);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -