## Developer Reference

• 0.9
• 09/09/2020
• Public Content
Contents

# mkl_?csrcsc

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

## Syntax

Include Files
• mkl.h
Description
This routine is deprecated. Use the matrix manipulation routinesfrom the
Intel® oneAPI Math Kernel Library
This routine converts a square sparse matrix
A
stored in the compressed sparse row (CSR) format (3-array variation) to the compressed sparse column (CSC) format and vice versa.
Input Parameters
job
Array, contains the following conversion parameters:
job
[0]
If
job
[0]
=0
, the matrix in the CSR format is converted to the CSC format;
if
job
[0]
=1
, the matrix in the CSC format is converted to the CSR format.
job
[1]
If
job
[1]
=0
, zero-based indexing for the matrix in CSR format is used;
if
job
[1]
=1
, one-based indexing for the matrix in CSR format is used.
job
[2]
If
job
[2]
=0
, zero-based indexing for the matrix in the CSC format is used;
if
job
[2]
=1
, one-based indexing for the matrix in the CSC format is used.
job
[5]
- job indicator.
For conversion to the CSC format:
If
job
[5]
=0
, only arrays
ja1
,
ia1
are filled in for the output storage.
If
job
[5]
≠0
, all output arrays
acsc
,
ja1
, and
ia1
are filled in for the output storage.
For conversion to the CSR format:
If
job
[5]
=0
, only arrays
ja
,
ia
are filled in for the output storage.
If
job
[5]
≠0
, all output arrays
acsr
,
ja
, and
ia
are filled in for the output storage.
m
Dimension of the square matrix
A
.
acsr
(input/output)
Array containing non-zero elements of the square matrix
A
. Its length is equal to the number of non-zero elements in the matrix
A
. Refer to
values
array description in Sparse Matrix Storage Formats for more details.
ja
(input/output). Array containing the column indices for each non-zero element of the matrix
A
.
Its length is equal to the length of the array
acsr
. Refer to
columns
array description in Sparse Matrix Storage Formats for more details.
ia
(input/output). Array of length
m
+ 1
, containing indices of elements in the array
acsr
, such that
ia
[
i
] -
ia
[0]
is the index in the array
acsr
of the first non-zero element from the row
i
. The value of
ia
[
m
] -
ia
[0]
is equal to the number of non-zeros. Refer to
rowIndex
array description in Sparse Matrix Storage Formats for more details.
acsc
(input/output)
Array containing non-zero elements of the square matrix
A
. Its length is equal to the number of non-zero elements in the matrix
A
. Refer to
values
array description in Sparse Matrix Storage Formats for more details.
ja1
(input/output). Array containing the row indices for each non-zero element of the matrix
A
.
Its length is equal to the length of the array
acsc
. Refer to
columns
array description in Sparse Matrix Storage Formats for more details.
ia1
(input/output). Array of length
m
+ 1
, containing indices of elements in the array
acsc
, such that
ia1
[
i
] -
ia1
[0]
is the index in the array
acsc
of the first non-zero element from the column
i
. The value of
ia1
[
m
] -
ia1
[0]
is equal to the number of non-zeros. Refer to
rowIndex
array description in Sparse Matrix Storage Formats for more details.
Output Parameters
info
This parameter is not used now.

#### Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804