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

📄 cblas.c

📁 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without ev
💻 C
字号:
#include <stdio.h>#include <gsl/gsl_cblas.h>intmain (void){  int lda = 3;  float A[] = { 0.11, 0.12, 0.13,                0.21, 0.22, 0.23 };  int ldb = 2;    float B[] = { 1011, 1012,                1021, 1022,                1031, 1032 };  int ldc = 2;  float C[] = { 0.00, 0.00,                0.00, 0.00 };  /* Compute C = A B */  cblas_sgemm (CblasRowMajor,                CblasNoTrans, CblasNoTrans, 2, 2, 3,               1.0, A, lda, B, ldb, 0.0, C, ldc);  printf ("[ %g, %g\n", C[0], C[1]);  printf ("  %g, %g ]\n", C[2], C[3]);  return 0;  }

⌨️ 快捷键说明

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