Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/22/2024
Public

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

Document Table of Contents

mkl_sparse_?_export_csc

Exports CSC matrix from internal representation.

Syntax

stat = mkl_sparse_s_export_csc (source, indexing, rows, cols, cols_start, cols_end, row_indx, values)

stat = mkl_sparse_d_export_csc (source, indexing, rows, cols, cols_start, cols_end, row_indx, values)

stat = mkl_sparse_c_export_csc (source, indexing, rows, cols, cols_start, cols_end, row_indx, values)

stat = mkl_sparse_z_export_csc (source, indexing, rows, cols, cols_start, cols_end, row_indx, values)

Include Files

  • mkl_spblas.f90

Description

If the matrix specified by the source handle is in CSC format, the mkl_sparse_?_export_csc routine exports an m-by-k matrix A in CSC format matrix from the internal representation. The routine returns pointers to the internal representation and does not allocate additional memory.

If the matrix is not already in CSC format, the routine returns SPARSE_STATUS_INVALID_VALUE.

Input Parameters

source

SPARSE_MATRIX_T.

Handle containing internal data.

Output Parameters

<!-- -->indexing

sparse_index_base_t.

Indicates how input arrays are indexed.

SPARSE_INDEX_BASE_ZERO

Zero-based (C-style) indexing: indices start at 0.

SPARSE_INDEX_BASE_ONE

One-based (Fortran-style) indexing: indices start at 1.

rows

C_INT.

Number of rows of the matrix source.

cols

C_INT.

Number of columns of the matrix source.

cols_start

C_INT.

Array of length m. This array contains column indices, such that cols_start(i) - cols_start(1) is the first index of column i in the arrays values and row_indx.

Refer to pointerb array description in csc Format for more details.

cols_end

C_INT.

Pointer to array of length m. This array contains row indices, such that cols_end(i) - cols_start(1) - 1 is the last index of column i in the arrays values and row_indx.

Refer to pointerE array description in csc Format for more details.

row_indx

C_INT.

For one-based indexing, pointer to array containing the row indices plus one for each non-zero element of the matrix source. For zero-based indexing, pointer to array containing the row indices for each non-zero element of the matrix source. Its length is cols_end(cols - 1) - cols_start(1).

values

C_FLOAT for mkl_sparse_s_export_csc

C_DOUBLE for mkl_sparse_d_export_csc

C_FLOAT_COMPLEX for mkl_sparse_c_export_csc

C_DOUBLE_COMPLEX for mkl_sparse_z_export_csc

Pointer to array containing non-zero elements of the matrix A. Its length is equal to length of the row_indx array.

Refer to values array description in csc Format for more details.

Output Parameters

stat

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.