08 2014 档案

数组指针和指针数组的区别
摘要:数组指针(也称行指针)定义 int (*p)[n];()优先级高,首先说明p是一个指针,指向一个整型的一维数组,这个一维数组的长度是n,也可以说是p的步长。也就是说执行p+1时,p要跨过n个整型数据的长度。如要将二维数组赋给一指针,应这样赋值:int a[3][4];int (*p)[4]; //该... 阅读全文

posted @ 2014-08-26 09:50 zhxfl 阅读(248) 评论(0) 推荐(0)

cubla sample-code
摘要:cublasSscal //Example 1. Application Using C and CUBLAS: 1-based indexing#include #include #include #include "cublas_v2.h"#include #define M 6#define ... 阅读全文

posted @ 2014-08-11 22:29 zhxfl 阅读(470) 评论(0) 推荐(0)

导航