34 #ifndef _H_ALP_SPARSEBLAS_EXT_VEC 35 #define _H_ALP_SPARSEBLAS_EXT_VEC 44 #define __SPBLAS_CONC( _a, _b ) _a ## _b 45 #define __SPBLAS_CONCAT( _a, _b ) __SPBLAS_CONC( _a, _b ) 46 #define SPCONCAT( _a, _b ) __SPBLAS_CONCAT( _a, _b ) 64 #define EXTBLAS_FUN( name ) SPCONCAT( EXTBLAS_, name ) 65 #define EXTBLAS_TYPE( name ) SPCONCAT( extblas_, name ) 69 typedef void * EXTBLAS_TYPE( sparse_vector );
80 EXTBLAS_TYPE( sparse_vector ) EXTBLAS_FUN( dusv_begin )(
const int n );
98 int EXTBLAS_FUN( dusv_insert_entry )(
99 EXTBLAS_TYPE( sparse_vector ) x,
116 int EXTBLAS_FUN( dusv_end )( EXTBLAS_TYPE( sparse_vector ) x );
130 int EXTBLAS_FUN( dusvds )( EXTBLAS_TYPE( sparse_vector ) x );
145 int EXTBLAS_FUN( dusv_nz )(
const EXTBLAS_TYPE( sparse_vector ) x,
int * nz );
162 int EXTBLAS_FUN( dusv_open )(
const EXTBLAS_TYPE( sparse_vector ) x );
192 int EXTBLAS_FUN( dusv_get )(
193 const EXTBLAS_TYPE( sparse_vector ) x,
194 double *
const val,
int *
const ind
208 int EXTBLAS_FUN( dusv_close )(
const EXTBLAS_TYPE( sparse_vector ) x );
221 int EXTBLAS_FUN( dusv_clear )( EXTBLAS_TYPE( sparse_vector ) x );
229 #endif // end `_H_ALP_SPARSEBLAS_EXT_VEC'