Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ read() [1/6]

template<typename T >
template<typename U , require_stan_scalar_t< U > * = nullptr, require_not_complex_t< U > * = nullptr>
T stan::math::deserializer< T >::read ( const U &  x)
inline

Read a scalar conforming to the shape of the specified argument, here a scalar.

The specified argument is only used for its shape—there is no relationship between the type of argument and type of result.

Template Parameters
Utype of pattern scalar
Parameters
xpattern argument to determine result shape and size
Returns
deserialized value with shape and size matching argument

Definition at line 66 of file serializer.hpp.