refactor: name the project "CeNet"

This commit is contained in:
2026-09-20 21:22:13 +02:00
parent 6156b919b8
commit 76eff9c837
6 changed files with 55 additions and 37 deletions
+7 -3
View File
@@ -1,11 +1,13 @@
#ifndef MAT_HPP
#define MAT_HPP
#ifndef CENET_MAT_HPP
#define CENET_MAT_HPP
#include <cstddef>
#include <cstring>
#include <random>
#include <type_traits>
namespace cenet {
template <std::size_t N, typename T = double, typename = std::enable_if_t<(N >= 1)>>
class mat_col {
template <std::size_t M, std::size_t N2, typename T2, typename>
@@ -289,4 +291,6 @@ mat<M, N, T> operator/(T lhs, const mat<M, N, T>& rhs) {
return res;
}
#endif // MAT_HPP
} // namespace cenet
#endif // CENET_MAT_HPP
+7 -3
View File
@@ -1,5 +1,5 @@
#ifndef NN_HPP
#define NN_HPP
#ifndef CENET_NN_HPP
#define CENET_NN_HPP
#include "mat.hpp"
#include "tensor.hpp"
@@ -13,6 +13,8 @@
#include <type_traits>
#include <utility>
namespace cenet {
struct layer_input {
static constexpr std::uint32_t DENSE_TAG = 0x444E5345;
static constexpr std::uint32_t TENSOR_TAG = 0x544E5352;
@@ -719,4 +721,6 @@ private:
layer_types m_layers;
};
#endif // NN_HPP
} // namespace cenet
#endif // CENET_NN_HPP
@@ -1,14 +1,15 @@
#ifndef TENSOR_HPP
#define TENSOR_HPP
#ifndef CENET_TENSOR_HPP
#define CENET_TENSOR_HPP
#include <cstddef>
#include <cstring>
#include <random>
#include <stdexcept>
#include <tuple>
#include <type_traits>
#include <utility>
namespace cenet {
template <typename T, std::size_t First, std::size_t... Rest>
class tensor {
public:
@@ -180,4 +181,6 @@ private:
T m_items[SIZE];
};
#endif // TENSOR_HPP
} // namespace cenet
#endif // CENET_TENSOR_HPP