Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
mkl_sparse_?_export_coo
Exports COO matrix from internal representation.
Syntax
stat = mkl_sparse_s_export_coo (source, indexing, rows, cols, nnz, rows_indx, cols_indx, values) stat = mkl_sparse_d_export_coo (source, indexing, rows, cols, nnz, rows_indx, cols_indx, values) stat = mkl_sparse_c_export_coo (source, indexing, rows, cols, nnz, rows_indx, cols_indx, values) stat = mkl_sparse_z_export_coo (source, indexing, rows, cols, nnz, rows_indx, cols_indx, values)
Include Files
- mkl_spblas.f90
Description
If the matrix specified by the source handle is in Coordinate (COO) format, the mkl_sparse_?_export_coo routine exports a rows-by-cols matrix A using COO as the internal representation. The routine returns pointers to the internal representation and does not allocate additional memory.
If the matrix is not already in COO 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.
- nnz
-
C_INT.
Number of non-zero elements of the matrix source.
- rows_indx
-
C_INT.
Pointer to array of length rows. This array contains row indices, such that rows_start(i) - ind is the first index of row i in the arrays values and cols_indx. ind takes 0 for zero-based indexing and 1 for one-based indexing.
Refer to the COO Format description for more details.
- cols_indx
-
C_INT.
Pointer to an array of length nnz. This array contains the column indices such that cols_indx[i] is the column index of element i in COO representation. The array is indexed according to the value returned by the indexing variable.
Refer to the COO Format description for more details.
- values
-
C_FLOAT for mkl_sparse_s_export_coo
C_DOUBLE for mkl_sparse_d_export_coo
C_FLOAT_COMPLEX for mkl_sparse_c_export_coo
C_DOUBLE_COMPLEX for mkl_sparse_z_export_coo
Pointer to an array of length nnz. This array contains the values of the matrix A, such that values[i] is the value of element i in COO representation.
Refer to the COO Format description for more details.
Output Parameters
- stat
-
INTEGER.