Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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.

matrix_structure

sparse_matrix_structures

MKL_GENERAL_STRUCTURE

MKL_UPPER_TRIANGULAR

MKL_LOWER_TRIANGULAR

MKL_STRUCTURAL_SYMMETRIC

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

MKL_NO_PRINT

MKL_PRINT

Determines whether or not feedback is provided on the screen.

print_style

sparse_matrix_print_styles

MKL_C_STYLE

MKL_FORTRAN_STYLE

Determines style of messages when message_level = MKL_PRINT.

Input Parameters

handle

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

Output Parameters

handle

Pointer to the initialized data structure.