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

📄 rowcol.h

📁 Linux 下的ICS Lab5,是关于代码优化方面的
💻 H
字号:
/* Matrix row and/or column summation code *//* Size of matrices *//* $begin rcdecl */#define N 512/* $end rcdecl *//* Data types *//* Pointer type for vectors */typedef int *vecp_t;/* $begin rcdecl *//* N x N matrix */typedef int matrix_t[N][N];/* Vector of length N */typedef int vector_t[N];/* $end rcdecl *//* Different sum/product function types */typedef enum { COL, ROWCOL } rc_comp_t;/* Summation function */typedef void (*rc_fun)(matrix_t, vector_t, vector_t);typedef struct {    rc_fun f;    rc_comp_t rc_type; /* What computation does it perform? */    char *descr;} rc_fun_rec, *rc_fun_ptr;/* Table of functions to test.  Null terminated */extern rc_fun_rec rc_fun_tab[];

⌨️ 快捷键说明

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