Developer Reference

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

mkl_sparse_?_create_csr

Creates a handle for a CSR-format matrix.

Syntax

stat = mkl_sparse_s_create_csr
(
A
,
indexing
,
rows
,
cols
,
rows_start
,
rows_end
,
col_indx
,
values
)
stat = mkl_sparse_d_create_csr
(
A
,
indexing
,
rows
,
cols
,
rows_start
,
rows_end
,
col_indx
,
values
)
stat = mkl_sparse_c_create_csr
(
A
,
indexing
,
rows
,
cols
,
rows_start
,
rows_end
,
col_indx
,
values
)
stat = mkl_sparse_z_create_csr
(
A
,
indexing
,
rows
,
cols
,
rows_start
,
rows_end
,
col_indx
,
values
)
Include Files
  • mkl_spblas.f90
Description
The
mkl_sparse_?_create_csr
routine creates
a handle for
an
m
-by-
k
matrix
A
in CSR 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
.
rows_start
C_INT
.
Array
of length at least
m
. This array contains row indices, such that
rows_start
(
i
)
-
indexing
is the first index of row
i
in the arrays
values
and
col_indx
. The value of
indexing
is 0 for zero-based indexing and 1 for one-based indexing.
Refer to
pointerB
array description in CSR Format for more details.
rows_end
C_INT
.
Array
of at least length
m
. This array contains row indices, such that
rows_end
(
i
)
-
indexing
- 1
is the last index of row
i
in the arrays
values
and
col_indx
. The value of
indexing
is 0 for zero-based indexing and 1 for one-based indexing.
Refer to
pointerE
array description in CSR Format for more details.
col_indx
C_INT
.
For one-based indexing, array containing the column indices plus one for each non-zero element of the matrix
A
. For zero-based indexing, array containing the column indices for each non-zero element of the matrix
A
. Its length is at least
rows_end
(
rows
- 1)
-
indexing
.
The value of
indexing
is 0 for zero-based indexing and 1 for one-based indexing.
values
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
Array
containing non-zero elements of the matrix
A
. Its length is equal to length of the
col_indx
array.
Refer to
values
array description in CSR Format for more details.
Output Parameters
A
</