ALP User Documentation  0.8.preview
Algebraic Programming User Documentation
Typedefs | Functions
blas_sparse_vec.h File Reference

This is an ALP-specific extension to the NIST Sparse BLAS standard to support sparse vectors. More...

Go to the source code of this file.

Typedefs

typedef void * extblas_sparse_vector
 A sparse vector. More...
 

Functions

extblas_sparse_vector EXTBLAS_dusv_begin (const int n)
 Creates a handle to a new sparse vector that holds no entries. More...
 
int EXTBLAS_dusv_clear (extblas_sparse_vector x)
 Removes all entries from a finalised sparse vector. More...
 
int EXTBLAS_dusv_close (const extblas_sparse_vector x)
 Closes a sparse vector read-out. More...
 
int EXTBLAS_dusv_end (extblas_sparse_vector x)
 Signals the end of sparse vector construction, making the given vector ready for use. More...
 
int EXTBLAS_dusv_get (const extblas_sparse_vector x, double *const val, int *const ind)
 Retrieves a sparse vector entry. More...
 
int EXTBLAS_dusv_insert_entry (extblas_sparse_vector x, const double val, const int index)
 Inserts a new nonzero entry into a sparse vector that is under construction. More...
 
int EXTBLAS_dusv_nz (const extblas_sparse_vector x, int *nz)
 Retrieves the number of nonzeroes in a given finalised sparse vector. More...
 
int EXTBLAS_dusv_open (const extblas_sparse_vector x)
 Opens a sparse vector for read-out. More...
 
int EXTBLAS_dusvds (extblas_sparse_vector x)
 Destroys the given sparse vector. More...
 

Detailed Description

This is an ALP-specific extension to the NIST Sparse BLAS standard to support sparse vectors.

Both the ALP SparseBLAS and SpBLAS transition path libraries have extensions that make use of the sparse vectors here defined, so that efficient sparse matrix–sparse vector routines may be employed.

Author
A. N. Yzelman
Date
2023