PandA-2024.02
spmv.h
Go to the documentation of this file.
1 /*
2 Based on algorithm described here:
3 http://www.cs.berkeley.edu/~mhoemmen/matrix-seminar/slides/UCB_sparse_tutorial_1.pdf
4 */
5 
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include "support.h"
9 
10 // These constants valid for the IEEE 494 bus interconnect matrix
11 #define NNZ 1666
12 #define N 494
13 #define L 10
14 
15 #define TYPE double
16 
17 void ellpack(TYPE nzval[N*L], int32_t cols[N*L], TYPE vec[N], TYPE out[N]);
19 // Test harness interface code.
20 
21 struct bench_args_t {
23  int32_t cols[N*L];
24  TYPE vec[N];
25  TYPE out[N];
26 };
int32_t cols[NNZ]
Definition: spmv.h:23
TYPE nzval[N *L]
Definition: spmv.h:22
void ellpack(TYPE nzval[N *L], int32_t cols[N *L], TYPE vec[N], TYPE out[N])
Definition: spmv.c:8
TYPE vec[N]
Definition: spmv.h:25
#define N
Definition: spmv.h:12
#define L
Definition: spmv.h:13
#define TYPE
Definition: spmv.h:15
TYPE out[N]
Definition: spmv.h:26

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13