limit_search_vector Subroutine

public subroutine limit_search_vector(x, lim)

Provides a means of scaling the length of the search direction vector.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(inout), dimension(:) :: x

On input, the search direction vector. On output, the search direction vector limited in length to that specified by lim. If the vector is originally shorter than the limit length, no change is made.

real(kind=real64), intent(in) :: lim

The length limit value.


Contents