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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user