FNEvaluateFunctionMatVec — SLEPc 3.24.2 documentation

Skip to main content
`Ctrl`+`K`

# FNEvaluateFunctionMatVec

Computes the first column of the matrix \(f(A)\) for a given matrix \(A\).

## Synopsis

    #include "slepcfn.h"
    PetscErrorCode FNEvaluateFunctionMatVec(FN fn,Mat A,Vec v)

Logically Collective

## Input Parameters

- fn - the math function context

- A - matrix on which the function must be evaluated

## Output Parameter

- v - vector to hold the first column of \(f(A)\)

## Notes

This operation is similar to `FNEvaluateFunctionMat()` but returns only the first column of \(f(A)\), hence saving computations in most cases.

## See Also

FN: Mathematical Functions, `FNEvaluateFunction()`, `FNEvaluateFunctionMat()`, `FNSetMethod()`

## Level

advanced

## Location

src/sys/classes/fn/interface/fnbasic.c

## Implementations

FNEvaluateFunctionMatVec_Combine() in src/sys/classes/fn/impls/combine/fncombine.c
FNEvaluateFunctionMatVec_Phi() in src/sys/classes/fn/impls/phi/fnphi.c
FNEvaluateFunctionMatVec_Rational() in src/sys/classes/fn/impls/rational/fnrational.c

Index of all FN routines Table of Contents for all manual pages Index of all manual pages