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

◆ broadcast_vector()

template<int call_id, typename ReduceF , typename CombineF >
template<int meta_cache_id>
vector_d stan::math::mpi_parallel_call< call_id, ReduceF, CombineF >::broadcast_vector ( const vector_d data)
inlineprivate

Broadcasts an Eigen vector to the cluster.

Meta information as the data shape is treated as static data and only transferred on the first call and read from cache subsequently. This static shape data is stored with the meta_cache_id label.

Template Parameters
meta_cache_iditem label for static shape data
Parameters
datavector to be broadcasted from the root and a dummy argument on workers
Returns
broadcasted vector originating from the root

Definition at line 513 of file mpi_parallel_call.hpp.