# dss_reorder

Computes permutation vector that minimizes the fill-in during the factorization phase.

## Syntax

dss_reorder(handle, opt, perm)

## Description

If opt contains the option MKL_DSS_AUTO_ORDER, then the routine dss_reorder computes a permutation vector that minimizes the fill-in during the factorization phase. For this option, the perm array is never accessed.

If opt contains the option MKL_DSS_MY_ORDER, then the array perm is considered to be a permutation vector supplied by the user. In this case, the array perm is of length nRows, where nRows is the number of rows in the matrix as defined by the previous call to dss_define_structure.

## Input Parameters

opt

  INTEGER. Option passing argument. The default option for the permutation type is MKL_DSS_AUTO_ORDER.

perm

  INTEGER. Array of length nRows. Contains a user-defined permutation vector (accessed only if opt contains MKL_DSS_MY_ORDER).

## Output Parameters

handle

  Data object of the MKL_DSS_HANDLE type (see Interface Description).

## Return Values

MKL_DSS_SUCCESS

MKL_DSS_STATE_ERR

MKL_DSS_INVALID_OPTION

MKL_DSS_OUT_OF_MEMORY

Parent topic: Direct Sparse Solver (DSS) Interface Routines