\(\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}} }\)
ad_to_string¶
View page sourceConvert An AD or Base Type to String¶
Syntax¶
s =
to_string
( value ) .See Also¶
value¶
The argument value has prototype
const AD
< Base >& valueconst
Base & valuewhere 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.