# MFNSetDS

Associates a direct solver object to the matrix function solver.

### Synopsis

    #include "slepcmfn.h"
    PetscErrorCode MFNSetDS(MFN mfn,DS ds)

Collective on MFN

### Input Parameters

| mfn | - matrix function context obtained from MFNCreate()
| ds | - the direct solver object

### Note

Use MFNGetDS() to retrieve the direct solver context (for example, to free it at the end of the computations).

### See Also

MFNGetDS()

Location: src/mfn/interface/mfnbasic.c
Index of all MFN routines
Table of Contents for all manual pages
Index of all manual pages