Intel® oneAPI Math Kernel Library Developer Reference - Fortran
Changes a single value of matrix in internal representation.
stat = mkl_sparse_s_set_value (A , row, col, value);
stat = mkl_sparse_d_set_value (A, row, col, value );
stat = mkl_sparse_c_set_value (A , row, col, value);
stat = mkl_sparse_z_set_value (A , row, col, value);
Use the mkl_sparse_?_set_value routine to change a single value of a matrix in the internal Inspector-executor Sparse BLAS format. The value should already be presented in a matrix structure.
SPARSE_MATRIX_T.
Specifies handle containing internal data.
C_INT .
Indicates row of matrix in which to set value.
C_INT .
Indicates column of matrix in which to set value.
C_FLOAT for mkl_sparse_s_create_csr
C_DOUBLE for mkl_sparse_d_create_csr
C_FLOAT_COMPLEX for mkl_sparse_c_create_csr
C_DOUBLE_COMPLEX for mkl_sparse_z_create_csr
Indicates value
Handle containing modified internal data.
INTEGER.
Value indicating whether the operation was successful or not, and why:
SPARSE_STATUS_SUCCESS |
The operation was successful. |
SPARSE_STATUS_NOT_INITIALIZED |
The routine encountered an empty handle or matrix array. |
SPARSE_STATUS_INVALID_VALUE |
The input parameters contain an invalid value. |
SPARSE_STATUS_INTERNAL_ERROR |
An error in algorithm implementation occurred. |