TaoLineSearchGetStepDirection — PETSc 3.22.5 documentation

Skip to main content
`Ctrl`+`K`

# TaoLineSearchGetStepDirection

Gets the step direction of the line search.

## Synopsis

    #include "petsctaolinesearch.h"
    PetscErrorCode TaoLineSearchGetStepDirection(TaoLineSearch ls, Vec *s)

Not Collective

## Input Parameter

- ls - the `TaoLineSearch` context

## Output Parameter

- s - the step direction of the line search

## See Also

`TaoLineSearchGetSolution()`, `TaoLineSearchGetStartingVector()`

## Level

advanced

## Location

src/tao/linesearch/interface/taolinesearch.c

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