Developer Reference

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

mkl_?csrcoo

Converts a sparse matrix in the CSR format to the coordinate format and vice versa (deprecated).

Syntax

call mkl_scsrcoo
(
job
,
n
,
acsr
,
ja
,
ia
,
nnz
,
acoo
,
rowind
,
colind
,
info
)
call mkl_dcsrcoo
(
job
,
n
,
acsr
,
ja
,
ia
,
nnz
,
acoo
,
rowind
,
colind
,
info
)
call mkl_ccsrcoo
(
job
,
n
,
acsr
,
ja
,
ia
,
nnz
,
acoo
,
rowind
,
colind
,
info
)
call mkl_zcsrcoo
(
job
,
n
,
acsr
,
ja
,
ia
,
nnz
,
acoo
,
rowind
,
colind
,
info
)
Include Files
  • mkl.fi
Description
This routine is deprecated. Use the matrix manipulation routinesfrom the
Intel® MKL
Inspector-executor Sparse BLAS interface instead.
This routine converts a sparse matrix
A
stored in the compressed sparse row (CSR) format (3-array variation) to coordinate format and vice versa.
Input Parameters
Parameter descriptions are common for all implemented interfaces with the exception of data types that refer here to the FORTRAN 77 standard types. Data types specific to the different interfaces are described in the section
"Interfaces"
below.
job
INTEGER
Array, contains the following conversion parameters:
job
(1)
If
job
(1)
=0
, the matrix in the CSR format is converted to the coordinate format;
if
job
(1)
=1
, the matrix in the coordinate format is converted to the CSR format.
if
job
(1)
=2
, the matrix in the coordinate format is converted to the CSR format, and the column indices in CSR representation are sorted in the increasing order within each row.
job
(2)
If
job
(2)
=0
, zero-based indexing for the matrix in CSR format is used;
if
job
(2)
=1
, one-based indexing for the matrix in CSR format is used.
job
(3)
If
job
(3)
=0
, zero-based indexing for the matrix in coordinate format is used;
if
job
(3)
=1
, one-based indexing for the matrix in coordinate format is used.
job
(5)
job
(5)
=
nzmax
- maximum number of the non-zero elements allowed if
job
(1)
=0
.
job
(6)
- job indicator.
For conversion to the coordinate format:
If
job
(6)
=1
, only array
rowind
is filled in for the output storage.
If
job
(6)
=2
, arrays
rowind
,
colind
are filled in for the output storage.
If
job
(6)
=3
, all arrays
rowind
,
colind
,
acoo
are filled in for the output storage.
For conversion to the CSR format:
If
job
(6)
=0
, all arrays
acsr
,
ja
,
ia
are filled in for the output storage.
If
job
(6)
=1
, only array
ia
is filled in for the output storage.
If
job
(6)
=2
, then it is assumed that the routine already has been called with the
job
(6)
=1
, and the user allocated the required space for storing the output arrays
acsr
and
ja
.
n
INTEGER
.
Dimension of the matrix
A
.
nnz