BeBOP: pOSKI
v1.0.0
parallel Optimized Sparse Kernel Interface library
|
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. |
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
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.
[in] | A | Sparse matrix object in CSR format. |
poski_value_t* CreateTestSingleVec | ( | int | length, |
poski_value_type_t | vtype | ||
) |
Create a sample vector data.
[in] | length | Logical vector length. |
[in] | vtype | Specified value type in {RANDOM, ZERO}. |