Intel® oneAPI Math Kernel Library Developer Reference - Fortran

mkl_sparse_?_update_values

Changes all or selected matrix values in internal representation.

Syntax

Note

This routine is supported for sparse matrices in BSR format only.

status = mkl_sparse_s_update_values (A, values, indx, indy, values)

status = mkl_sparse_d_update_values (A, values, indx, indy, values)

status = mkl_sparse_c_update_values (A, values, indx, indy, values)

status = mkl_sparse_z_update_values (A, values, indx, indy, values)

Include Files

Description

Use the mkl_sparse_?_update_values routine to change all or selected values of a matrix in the internal Inspector-Executor Sparse BLAS format.

The values to be updated should already be present in the matrix structure.

Input Parameters

A

SPARSE_MATRIX_T.

Specifies handle containing internal data.

nvalues

C_INT .

Total number of elements changed.

indx

C_INT .

Row indices for the new values.

Note

Currently, only updating the full matrix is supported. Set indx and indy as NULL.

indy

C_INT .

Column indices for the new values.

Note

Currently, only updating the full matrix is supported. Set indx and indy as NULL.

values

C_FLOAT for mkl_sparse_s_update_values

C_DOUBLE for mkl_sparse_d_update_values

C_FLOAT_COMPLEX for mkl_sparse_c_update_values

C_DOUBLE_COMPLEX for mkl_sparse_z_update_values

New values.

Output Parameters

A

SPARSE_MATRIX_T.

Handle containing modified internal data.

status

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_ALLOC_FAILED

Internal memory allocation failed.

SPARSE_STATUS_INVALID_VALUE

The input parameters contain an invalid value.

SPARSE_STATUS_EXECUTION_FAILED

Execution failed.

SPARSE_STATUS_INTERNAL_ERROR

An error in algorithm implementation occurred.

SPARSE_STATUS_NOT_SUPPORTED

The requested operation is not supported.