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

Commonly used routines to test the library's routines. More...

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

Functions

poski_sparse_matrix_t * SetTestSampleSparseMatrix ()
 Set a sample sparse matrix.
void poski_Destroy_CSR (poski_sparse_matrix_t *A)
 Destroy a sparse matrix obejct in CSR format.
poski_value_t * CreateTestSingleVec (int length, poski_value_type_t vtype)
 Create a sample vector data.

Detailed Description

Commonly used routines to test the library's routines.

This module implements the routines used to test the library's routines.

Also, refer poski_Test_NaiveSpMV.c


Function Documentation

poski_sparse_matrix_t* SetTestSampleSparseMatrix ( )

Set a sample sparse matrix.

Returns:
A sparse matrix in CSR format if success, or an error message otherwise.
void poski_Destroy_CSR ( poski_sparse_matrix_t *  A)

Destroy a sparse matrix obejct in CSR format.

Parameters:
[in]ASparse matrix object in CSR format.
poski_value_t* CreateTestSingleVec ( int  length,
poski_value_type_t  vtype 
)

Create a sample vector data.

Parameters:
[in]lengthLogical vector length.
[in]vtypeSpecified value type in {RANDOM, ZERO}.
Returns:
A valid vector data if success, or an error message otherwise.