Automatic Differentiation
 
Loading...
Searching...
No Matches
serializer.hpp File Reference
#include <stan/math/prim/meta/promote_scalar_type.hpp>
#include <stan/math/prim/fun/to_vector.hpp>
#include <stan/math/prim/fun/to_array_1d.hpp>
#include <complex>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  stan::math::deserializer< T >
 A class to store a sequence of values which can be deserialized back into structured objects such as scalars, vectors, and matrices. More...
 
struct  stan::math::serializer< T >
 A structure to serialize structures to an internal stored sequence of scalars. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
deserializer< T > stan::math::to_deserializer (const std::vector< T > &vals)
 Return a deserializer based on the specified values.
 
template<typename T , require_eigen_vector_t< T > * = nullptr>
deserializer< scalar_type_t< T > > stan::math::to_deserializer (const T &vals)
 Return a deserializer based on the specified values.
 
template<typename T >
deserializer< T > stan::math::to_deserializer (const std::complex< T > &vals)
 
template<typename U >
void stan::math::serialize_helper (serializer< U > &s)
 
template<typename U , typename T , typename... Ts>
void stan::math::serialize_helper (serializer< U > &s, const T &x, const Ts... xs)
 
template<typename U , typename... Ts>
std::vector< U > stan::math::serialize (const Ts... xs)
 Serialize the specified sequence of objects, which all must have scalar types assignable to the result scalar type.
 
template<typename T >
std::vector< real_return_t< T > > stan::math::serialize_return (const T &x)
 Serialized the specified single argument.
 
template<typename... Ts>
Eigen::VectorXd stan::math::serialize_args (const Ts... xs)
 Serialize the specified sequence of structured objects with double-based scalars into an Eigen vector of double values.