NNFS p.135
Sync public mirror / sync (push) Successful in 37s

Started on the iteration, not need to rewrite matadd.h and need to make matrandom.h.
This commit is contained in:
2025-10-07 19:06:33 +02:00
parent 66b3a4ee6b
commit c164d790db
14 changed files with 366 additions and 157 deletions
+19 -1
View File
@@ -7,7 +7,7 @@
#include <initializer_list>
#include "./utils/random.h"
#include <cstdint>
#include <type_traits>
#include <stdexcept>
@@ -38,6 +38,24 @@ public:
void random(const uint64_t size, const T& lower, const T& higher){
v.resize(size, T{0});
// Copy data row by row
for (uint64_t i = 0; i < size; ++i) {
v[i] = utils::random(lower, higher);
}
}
//##########################################################
//# VECTOR: --- basic properties --- #
//##########################################################