Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

mkl_sparse_?_create_coo

Creates a handle for a matrix in COO format.

Syntax

stat = mkl_sparse_s_create_coo
(
A
,
indexing
,
rows
,
cols
,
nnz
,
row_indx
,
col_indx
,
values
)
stat = mkl_sparse_d_create_coo
(
A
,
indexing
,
rows
,
cols
,
nnz
,
row_indx
,
col_indx
,
values
)
stat = mkl_sparse_c_create_coo
(
A
,
indexing
,
rows
,
cols
,
nnz
,
row_indx
,
col_indx
,
values
)
stat = mkl_sparse_z_create_coo
(
A
,
indexing
,
rows
,
cols
,
nnz
,
row_indx
,
col_indx
,
values
)
Include Files
  • mkl_spblas.f90
Description
The
mkl_sparse_?_create_coo
routine creates a handle for an
m
-by-
k
matrix
A
in COO format.
The input arrays provided are left unchanged except for the call to mkl_sparse_order , which performs ordering of column indexes of the matrix. To avoid any changes to the input data, use mkl_sparse_copy .
Input 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 matrix
A
.
cols
C_INT
.
Number of columns of matrix
A
.
nnz
C_INT
.
Specifies the number of non-zero elements of the matrix
A
.
Refer to
nnz
description in Coordinate Format for more details.
row_indx
C_INT
.
Array of length
nnz
, containing the row indices for each non-zero element of matrix
A
.
Refer to
rows
array description in Coordinate Format for more details.
col_indx
C_INT
.
Array of length
nnz
, containing the column indices for each non-zero element of matrix
A
.
Refer to
columns
array description in Coordinate Format for more details.
values
C_FLOAT
for
mkl_sparse_s_create_coo
C_DOUBLE
for
mkl_sparse_d_create_coo
C_FLOAT_COMPLEX
for
mkl_sparse_c_create_coo
C_DOUBLE_COMPLEX
for
mkl_sparse_z_create_coo
Array of length
nnz
, containing the non-zero elements of matrix
A
in arbitrary order.
Refer to
values
array description in Coordinate Format for more details.
Output Parameters