Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6877 Discussions

## sparse_matrix_checker error value constants

Beginner
299 Views

The MKL manual lists the following constants for the error value returned by the sparse_matrix_checker subroutine: MKL_SPARSE_CHECKER_SUCCESS, MKL_SPARSE_CHECKER_NON_MONOTONIC, MKL_SPARSE_CHECKER_OUT_OF_RANGE, MKL_SPARSE_CHECKER_NONTRIANGULAR and MKL_SPARSE_CHECKER_NONORDERED.

Where are they defined?

Thank you.

4 Replies
Employee
299 Views

Hi Eugene

Thanks you for asking. It seem we really miss these definitions.  I will check the latest version and update you if any news.

Thanks

Ying H.

Intel MKL Support

Moderator
299 Views

Eugene, thanks for the issue. We missed to add this info into header files. We will add this info later into one of the updates.

here is info which we missed to add.

MKL_SPARSE_CHECKER_SUCCESS,  = 0

MKL_SPARSE_CHECKER_NON_MONOTONIC = 21,

MKL_SPARSE_CHECKER_OUT_OF_RANGE,  = 22

MKL_SPARSE_CHECKER_NONTRIANGULAR = 23

MKL_SPARSE_CHECKER_NONORDERED = 24

hope that helps.

Beginner
299 Views

Thank you very much. Now it's clear where the magic number 23 in matrix_check.f90 comes from.

Moderator
299 Views

here is the original ja array

JA = (/ 1,    3,       6, 7,
.             2, 3,    5,
.                3,             8,
.                   3,       7,
.                      5, 6, 7,
.                         6,    8,
.                            7,
.                               8 /)

*** Input check: i=4, j=ia(i)=10, ja(j)=3 are incompatible
Matrix check result code: 23
Matrix check details: (4, 10, 3)

but here how it could be

JA = (/ 1,    3,       6, 7,
.             2, 3,    5,
.                3,             8,
.                   4,       7,
.                      5, 6, 7,
.                         6,    8,
.                            7,
.                               8 /)

Matrix check result code: 0
Matrix check details: (0, 0, 0)

I hope that helps