rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
broadcast_error.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "../platform/dynamic_shared_object.h"
6
7#include <stdexcept>
8#include <vector>
9
10namespace rexlib
11{
12
14 : public std::runtime_error
15{
16public:
17 REXLIB_API broadcast_error(
18 std::vector<std::size_t> first_extents,
19 std::vector<std::size_t> second_extents,
20 const char *context = nullptr
21 );
22
23 REXLIB_API
24 const std::vector<std::size_t>& get_first_extents() const noexcept;
25 REXLIB_API
26 const std::vector<std::size_t>& get_second_extents() const noexcept;
27
28private:
29 std::vector<std::size_t> m_first_extents;
30 std::vector<std::size_t> m_second_extents;
31};
32
33} // namespace rexlib
Definition broadcast_error.hpp:15
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10