Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 10/31/2024
Public
Document Table of Contents

sparse_matrix_checker_init

Initializes handle for sparse matrix checker.

Syntax

void sparse_matrix_checker_init (sparse_struct* handle);

Include Files

  • mkl.h

Description

The sparse_matrix_checker_init routine initializes the handle for the sparse_matrix_checker routine. The handle variable contains this data:

Description of sparse_matrix_checkerhandle Data
Field Type Possible Values Meaning

n

MKL_INT

Order 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

MKL_ZERO_BASED

MKL_ONE_BASED

Indexing style used in array.

Input Parameters

handle

Pointer to the data structure describing the sparse array to check.

Output Parameters

handle

Pointer to the initialized data structure.