Developer Reference

  • 098
  • 03/30/2020
  • Public Content
Contents

mkl_?dnscsr

Convert a sparse matrix in uncompressed representation to the CSR format and vice versa (deprecated).

Syntax

call mkl_sdnscsr
(
job
,
m
,
n
,
adns
,
lda
,
acsr
,
ja
,
ia
,
info
)
call mkl_ddnscsr
(
job
,
m
,
n
,
adns
,
lda
,
acsr
,
ja
,
ia
,
info
)
call mkl_cdnscsr
(
job
,
m
,
n
,
adns
,
lda
,
acsr
,
ja
,
ia
,
info
)
call mkl_zdnscsr
(
job
,
m
,
n
,
adns
,
lda
,
acsr
,
ja
,
ia
,
info
)
Include Files
  • mkl.fi
Description
This routine is deprecated. Use the matrix manipulation routines from the
Intel® MKL
Inspector-executor Sparse BLAS interface instead.
This routine converts a sparse matrix
A
between formats: stored as a rectangular array (dense representation) and stored using compressed sparse row (CSR) format (3-array variation).
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)
    : Conversion type.
    • If
      job
      (1)
      =0
      , the rectangular matrix
      A
      is converted to the CSR format;
    • if
      job
      (1)
      =1
      , the rectangular matrix
      A
      is restored from the CSR format.
  • job
    (2)
    : index base for the rectangular matrix
    A
    .
    • If
      job
      (2)
      =0
      , zero-based indexing for the rectangular matrix
      A
      is used;
    • if
      job
      (2)
      =1
      , one-based indexing for the rectangular matrix
      A
      is used.
  • job
    (3)
    : Index base for the matrix in CSR format.
    • If
      job
      (3)
      =0
      , zero-based indexing for the matrix in CSR format is used;
    • if
      job
      (3)
      =1
      , one-based indexing for the matrix in CSR format is used.
  • job
    (4)
    : Portion of matrix.
    • If
      job
      (4)
      =0
      ,
      adns
      is a lower triangular part of matrix
      A
      ;
    • If
      job
      (4)
      =1
      ,
      adns
      is an upper triangular part of matrix
      A
      ;
    • If
      job
      (4)
      =2
      ,
      adns
      is a whole matrix
      A
      .
  • job
    (5)
    =
    nzmax
    : maximum number of the non-zero elements allowed if
    job
    (1)
    =0
    .
  • job
    (6)
    : job indicator for conversion to CSR format.
    • If
      job
      (6)
      =0
      , only array
      ia
      is generated for the output storage.
    • If
      job
      (6)
      >0
      , arrays
      acsr
      ,
      ia
      ,
      ja
      are generated for the output storage.
m
INTEGER
.
Number of rows of the matrix
A
.
n