![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shambase/exception.hpp"#include "shambackends/DeviceBuffer.hpp"#include "shambackends/typeAliasVec.hpp"#include <type_traits>#include <stdexcept>#include <utility>
Include dependency graph for flatten.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | shamalgs |
| namespace to contain everything implemented by shamalgs | |
| namespace | shamalgs::primitives |
| namespace for primitive algorithm (e.g. sort, scan, reductions, ...) | |
Functions | |
| template<class Tvec , sham::USMKindTarget target> | |
| sham::DeviceBuffer< typename shambase::VectorProperties< Tvec >::component_type, target > | shamalgs::primitives::flatten_buffer (const sham::DeviceBuffer< Tvec, target > &buffer) |
| Flatten a buffer of vector type into a buffer of scalar type. | |
| template<class Tvec , sham::USMKindTarget target> | |
| sham::DeviceBuffer< Tvec, target > | shamalgs::primitives::unflatten_buffer (const sham::DeviceBuffer< typename shambase::VectorProperties< Tvec >::component_type, target > &buffer) |
| Unflatten a buffer that contains a flattened vector. | |
Definition in file flatten.hpp.