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

◆ scatter_matrix()

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

Scatters an Eigen matrix column wise over 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
datamatrix to be scattered column-wise and a dummy argument on workers.
Returns
matrix chunk for a given worker.

Definition at line 541 of file mpi_parallel_call.hpp.