您当前的位置: 首页 >  矩阵

FPGA硅农

暂无认证

  • 0浏览

    0关注

    282博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

EIE稀疏矩阵乘法硬件模拟

FPGA硅农 发布时间:2020-10-19 16:17:38 ,浏览量:0

#include
#include
#include
#include 
using namespace std;
typedef int dtype;

typedef struct CSC{
    int a;              //存储非零元素个数
    int n;              //存储列数
    dtype* v;           //存储非零值
    int* x;           //存储每一列中非零值与上一个非零值之间0的个数
    int* p;           //存储每一列之前非零元素的个数
}csc_t;

void gen_sparse_matrix(int n,dtype** & mat,double s){
    mat=new int*[n];
    for(int i=0;i            
关注
打赏
1658642721
查看更多评论
0.0375s