Elffuss BraidHub

kikocis/kleidiai public

main · 913 BRawPermalink
1//
2// SPDX-FileCopyrightText: Copyright 2025-2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6
7#pragma once
8
9#include <cstddef>
10#include <ostream>
11
12#include "test/common/data_type.hpp"
13#include "test/nextgen/common/shape.hpp"
14
15namespace kai::test {
16
17/// Prints a plain multidimensional array to the output stream.
18///
19/// @param[in] os The output stream to print to.
20/// @param[in] shape The size of multidimensional array.
21/// @param[in] data The data buffer.
22/// @param[in] level The number of indentation levels.
23using PrintFn = void (*)(std::ostream& os, Shape shape, Span<const std::byte> data, size_t level);
24
25/// Gets the pointer to the print function for the specified data type.
26///
27/// @param[in] dtype The data type.
28///
29/// @return The function pointer.
30[[nodiscard]] PrintFn make_print_array(DataType dtype);
31
32} // namespace kai::test