# StepMax

Calculates the largest multiple of a vector that can be added to this vector while keeping each element of this vector nonnegative.

## Synopsis

    #include "tao_solver.h"
    int TaoVec::StepMax(TaoVec* vv,double *step1)

## Input Parameters

vv -the step direction

## Input Parameters

step1 -the maximum stepsize

## Note

This vector should contain all positive elements.

## Note

If there is no maximum steplength, the output scalar may be set to TAO_INFINITY.

Level:advanced
Location:src/vector/taovec.c
TAO Solver Index
Table of Contents