

\newpage
{\bf \Huge optQuadVector}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
Optimized quadratic vector constructor.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt [qvect] = optQuadVector(aff, absflag, sqflag)   }
\end{quote}

{\bf Description}

\begin{quote}
Creates an optimized affine quadratic vector from {\tt optVector aff}.
{\tt absflag} and {\tt sqflag} are set to the values given.
\end{quote}

%-----------------

\newpage
{\bf \Huge optQuadVector/char, display}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
Output functions for class \optqvec.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt c = char(quadvec)} \\
{\tt display(quadvec)}
\end{quote}

{\bf Descripition}

\begin{quote}
{\tt char} converts class \optqvec\: to character for output.
{\tt display} is command window display of class \optqvec.

Displays the kernel, offset into variable pool,  pool number, and flags.
\end{quote}

%---------div


\newpage
{\bf \Huge optQuadVector/get\_absflag}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
{\tt absflag} extraction function.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt absflag = get\_absflag(quadvec) }
\end{quote}

{\bf Description}

\begin{quote}
Returns value of {\tt absflag} for {\tt quadvec}. This indicates
whether {\tt quadvec} was formed as the result of an {\tt abs} operation.
\end{quote}

%-----------------

\newpage
{\bf \Huge optQuadVector/get\_optVector}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
\optvec\: extraction function.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt vect = get\_optVector(qvect)  }
\end{quote}

{\bf Description}

\begin{quote}
Returns only the \optvec portion of {\tt qvect}.
\end{quote}

%-----------------


\newpage
{\bf \Huge optQuadVector/get\_sqflag}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
{\tt sqflag} extraction function.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt sqflag = get\_sqflag(quadvec) }
\end{quote}

{\bf Description}

\begin{quote}
Returns value of {\tt sqflag} for {\tt quadvec}. This indicates
whether {\tt quadvec} was formed as the result of a squaring operation.
\end{quote}

%-----------------

\newpage
{\bf \Huge optQuadVector/lt}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
Quadratic inequality constraint.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt [constr] = lt(a, b)  }
\end{quote}

{\bf Description}

\begin{quote}
Forms constraint of type {\tt a < b}, where {\tt a} is an \optqvec\: and
{\tt b} is an \optqvec, an \optvec,  or a scalar. The constraint is a
second-order-cone constraint, of type \sconstr.

{\tt [constr] = lt(a, b)} is called for the syntax `{\tt a < b}'.
\end{quote}

%-----------------



\newpage
{\bf \Huge optQuadVector/power}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
Elementwise power.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt [qvect] = power(a, b)  }
\end{quote}

{\bf Description}

\begin{quote}
Raises {\tt a} to the power {\tt b}. {\tt a} can only be raised to the
second power, and {\tt a} cannot already have been squared.

{\tt [constr] = power(a, b)} is called for the syntax `\verb|a .^ b|'.
\end{quote}

%---------------


\newpage
{\bf \Huge optQuadVector/set\_absflag}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
{\tt absflag} insertion function.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt quadout = set\_absflag(quadin, absflag) }
\end{quote}

{\bf Description}

\begin{quote}
Replaces {\tt absflag} with new value. 
\end{quote}

%-----------------


\newpage
{\bf \Huge optQuadVector/set\_sqflag}
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
{\tt sqflag} insertion function.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt quadout = set\_sqflag(quadin, sqflag) }
\end{quote}

{\bf Description}

\begin{quote}
Replaces {\tt sqflag} with new value.
\end{quote}

%-----------------

\newpage
{\bf \Huge optQuadVector/sum}
%\hrulefill
\hrulefill
\vspace{0.25in}

{\bf Purpose}

\begin{quote}
Sum of terms in quadratic vector.
\end{quote}

{\bf Syntax}

\begin{quote}
{\tt [quadsum] = sum(qvect)  }
\end{quote}

{\bf Description}

\begin{quote}
Returns {\tt quadsum} of class \optquad, the sum of the terms in {\tt qvect}.
\end{quote}

%-----------------
