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

Read the pattern of a file stored in Harwell-Boeing format. More...

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <poski/poski_loadmatcommon.h>
#include <poski/poski_malloc.h>
#include <poski/poski_print.h>

Functions

poski_sparse_matrix_t * poski_LoadMatrix_HBF_to_CSR (char *fname, poski_index_t MakeUnsymmetric)
 Read the pattern of a file stored in Harwell-Boeing format.
int test_main_poski_LoadMatrix_HBF_to_CSR (char *fname)
 Test the poski_LoadMatrix_HB_to_CSR's routine.

Detailed Description

Read the pattern of a file stored in Harwell-Boeing format.

This module implements the routines to read the pattern of a file stored in Harwell-Boeing format. Modified from the HB format loader routines written by Sam Williams <swwil.nosp@m.liam.nosp@m.s@lbl.nosp@m..gov>.

Attention:
Called by poski_LoadMatrixHandler.c

Also, refer poski_LoadMatrix_common.c


Function Documentation

Test the poski_LoadMatrix_HB_to_CSR's routine.

This routine is for testing the functionality of the poski_LoadMatrix_HB_to_CSR's routine.

Returns:
0 if success, or an error message otherwise.