BeBOP: pOSKI  v1.0.0
parallel Optimized Sparse Kernel Interface library
 All Files Functions Variables
Functions
poski_Test_NaiveSpMV.c File Reference

Naive sparse matrix-vector computation. More...

#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <poski/poski_test.h>

Functions

int poski_NavieMatMultCSR (poski_sparse_matrix_t *A, poski_value_t alpha, poski_value_t *x, poski_value_t beta, poski_value_t *y, poski_operation_t op)
 Naive sparse matrix-vector computation (SpMV).

Detailed Description

Naive sparse matrix-vector computation.

This module implements the routines to handle naive sparse matrix-vector computations.

Attention:
Currently, only support with CSR format.

Also, refer poski_TestHandler.c


Function Documentation

int poski_NavieMatMultCSR ( poski_sparse_matrix_t *  A,
poski_value_t  alpha,
poski_value_t *  x,
poski_value_t  beta,
poski_value_t *  y,
poski_operation_t  op 
)

Naive sparse matrix-vector computation (SpMV).

Parameters:
[in]ASparse matrix object in CSR format.
[in]alphaScalar multiplier.
[in]xVector data pointer.
[in]betaScalar multiplier.
[in]yVector data pointer.
Returns:
0 if success, or an error message otherwise.