PandA-2024.02
examples
MachSuite
MachSuite
spmv
ellpack
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
{
22
TYPE
nzval
[
N
*
L
];
23
int32_t
cols
[
N
*
L
];
24
TYPE
vec
[
N
];
25
TYPE
out
[
N
];
26
};
bench_args_t::cols
int32_t cols[NNZ]
Definition:
spmv.h:23
bench_args_t::nzval
TYPE nzval[N *L]
Definition:
spmv.h:22
ellpack
void ellpack(TYPE nzval[N *L], int32_t cols[N *L], TYPE vec[N], TYPE out[N])
Definition:
spmv.c:8
bench_args_t::vec
TYPE vec[N]
Definition:
spmv.h:25
N
#define N
Definition:
spmv.h:12
L
#define L
Definition:
spmv.h:13
TYPE
#define TYPE
Definition:
spmv.h:15
bench_args_t
Definition:
aes.h:18
bench_args_t::out
TYPE out[N]
Definition:
spmv.h:26
Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by
1.8.13