Developer Reference for Intel® oneAPI Math Kernel Library for C
sparse_matrix_checker_init
Initializes handle for sparse matrix checker.
Syntax
void sparse_matrix_checker_init ( sparse_struct *handle );
Include Files
mkl.h, mkl_sparse_handle.h
Description
The sparse_matrix_checker_init routine initializes the handle for the sparse_matrix_checker routine. The handle variable contains this data:
Field |
Type |
Possible Values |
Meaning |
|---|---|---|---|
n |
MKL_INT |
number of rows of the matrix stored in sparse array. |
|
csr_ia |
MKL_INT * |
Pointer to ia array for matrix_format = MKL_CSR |
|
csr_ja |
MKL_INT * |
Pointer to ja array for matrix_format = MKL_CSR |
|
check_result[3] |
MKL_INT |
See Sparse Matrix Checker Error Values for a description of the values returned in check_result. |
Indicates location of problem in array when message_level = MKL_NO_PRINT. |
indexing |
sparse_matrix_indexing |
|
Indexing style used in array. |
matrix_structure |
sparse_matrix_structures |
|
Type of sparse matrix stored in array. |
matrix_format |
sparse_matrix_formats |
MKL_CSR |
Format of array used for sparse matrix storage. |
message_level |
sparse_matrix_message_levels |
|
Determines whether or not feedback is provided on the screen. |
print_style |
sparse_matrix_print_styles |
|
Determines style of messages when message_level = MKL_PRINT . |
Input Parameters
handle
sparse_struct*
Pointer to the data structure describing the sparse array to check.
Output Parameters
- handle
-
Pointer to the initialized data structure.