rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
index.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "../platform/dynamic_shared_object.h"
6
7#include <cstddef>
8
9namespace rexlib
10{
11
24REXLIB_API
25std::size_t sanitize_index(std::ptrdiff_t index, std::size_t extent);
26
27} // namespace rexlib
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
std::size_t sanitize_index(std::ptrdiff_t index, std::size_t extent)
Ensure that the index is within bounds for a given extent.