Deep Learning Visualizer
Interactive visualization of basic applications of deep learning
Loading...
Searching...
No Matches
idx_matrix.h
Go to the documentation of this file.
1#pragma once
2
5#include <cstdint>
6#include <filesystem>
7#include <vector>
8
9namespace shared {
10
18public:
25 explicit idx_matrix(const std::filesystem::path &file_path);
26
27 [[nodiscard]] const std::vector<uint8_t> &data() const;
28 [[nodiscard]] std::int64_t rows() const;
29 [[nodiscard]] std::int64_t cols() const;
30
31private:
32 std::int64_t rows_{};
33 std::int64_t cols_{};
34 std::vector<uint8_t> data_;
35};
36
37} // namespace shared
Represents matrix data from an IDX file as a one dimensional vector.
Definition idx_matrix.h:17