![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Sparse vector for halo exchange and indexed data views. More...
#include <algorithm>#include <cstddef>#include <vector>#include <openpfc/core/backend_tags.hpp>#include <openpfc/core/databuffer.hpp>

Go to the source code of this file.
Classes | |
| class | pfc::core::SparseVector< BackendTag, T > |
| Sparse vector for indexed data views. More... | |
Typedefs | |
| using | pfc::core::HostTag = backend::CpuTag |
Functions | |
| template<typename BackendTag , typename T > | |
| bool | pfc::core::on_host (const SparseVector< BackendTag, T > &vec) |
| Check if SparseVector is on host. | |
Sparse vector for halo exchange and indexed data views.
SparseVector represents a sparse view into selected entries of a dense array. It contains:
Key optimization: Indices are sorted for optimal contiguous memory access.
Used for: