Fittet new functions to everying in neural networks. Still need to optimise for uint64_t vs int64_t and vec vs mat in some places.

This commit is contained in:
2026-05-16 20:37:05 +02:00
parent 412a854c65
commit d2fe8aa65c
50 changed files with 489 additions and 1482 deletions
+8 -1
View File
@@ -1,12 +1,19 @@
#pragma once
#include "./core/omp_config.h"
#include "core/omp_config.h"
#include "detail/max_serial.h"
namespace numerics{
// ---------------- (Scalar, Scalar) -> Scalar ----------------
template <typename T>
inline T max(const T a, const T b) {
return detail::max_serial(a, b);
}
// ---------------- Vector -> Scalar ----------------
template <typename T>
inline T max(const utils::Vector<T>& v) {