Prev Next ad_to_string

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@This is cppad-20221105 documentation. Here is a link to its current documentation .
Convert An AD or Base Type to String

Syntax
s = to_string(value) .

See Also
to_string , base_to_string

value
The argument value has prototype
    const AD<
Base>& value
    const 
Base&     value
where Base is a type that supports the base_to_string type requirement.

s
The return value has prototype
    std::string 
s
and contains a representation of the specified value . If value is an AD type, the result has the same precision as for the Base type.

Example
The file to_string.cpp includes an example and test of to_string with AD types.
Input File: include/cppad/core/ad_to_string.hpp