# DSComputeFunction

Computes a matrix function.

### Synopsis

    #include "slepcds.h"
    PetscErrorCode DSComputeFunction(DS ds,SlepcFunction f)

Logically Collective on DS

### Input Parameters

| ds | - the direct solver context
| f | - the function to evaluate

### Note

This function evaluates F = f(A), where the input and the result matrices are stored in DS_MAT_A and DS_MAT_F, respectively.

### See Also

DSSetFunctionMethod(), DSMatType, SlepcFunction

Location: src/ds/interface/dsops.c
Index of all DS routines
Table of Contents for all manual pages
Index of all manual pages