Celeritas
0.5.0-57+aeecb15
|
#include <numeric>
#include <vector>
#include "Collection.hh"
#include "Copier.hh"
#include "Filler.hh"
Functions | |
template<class T , Ownership W, MemSpace M, class I > | |
void | celeritas::fill (T &&value, Collection< T, W, M, I > *col) |
Fill the collection with the given value. More... | |
template<class T , Ownership W, MemSpace M, class I > | |
void | celeritas::fill_sequence (Collection< T, W, M, I > *dst, StreamId stream) |
Fill the collection with sequentially increasing values starting from zero. | |
template<class T , Ownership W, MemSpace M, class I , std::size_t E> | |
void | celeritas::copy_to_host (Collection< T, W, M, I > const &src, Span< T, E > dst) |
Copy from the given collection to host. | |
template<class T , Ownership W, MemSpace M, class I > | |
auto | celeritas::copy_to_host (Collection< T, W, M, I > const &src) |
Create a new host collection from the given collection. More... | |
auto celeritas::copy_to_host | ( | Collection< T, W, M, I > const & | src | ) |
Create a new host collection from the given collection.
This is useful for debugging.
void celeritas::fill | ( | T && | value, |
Collection< T, W, M, I > * | col | ||
) |
Fill the collection with the given value.
This should only be used during initialization when stream synchronization is OK. Use the Filler
directly during runtime since it supports streams.