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 
14 #define TYPE double
15 
16 void spmv(TYPE val[NNZ], int32_t cols[NNZ], int32_t rowDelimiters[N + 1],
17  TYPE vec[N], TYPE out[N]);
19 // Test harness interface code.
20 
21 struct bench_args_t {
23  int32_t cols[NNZ];
24  int32_t rowDelimiters[N+1];
27 };
int32_t rowDelimiters[N+1]
Definition: spmv.h:24
int32_t cols[NNZ]
Definition: spmv.h:23
#define NNZ
Definition: spmv.h:11
#define TYPE
Definition: spmv.h:14
TYPE vec[N]
Definition: spmv.h:25
#define N
Definition: spmv.h:12
TYPE val[NNZ]
Definition: spmv.h:22
void spmv(TYPE val[NNZ], int32_t cols[NNZ], int32_t rowDelimiters[N+1], TYPE vec[N], TYPE out[N])
Definition: spmv.c:8
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