jacobian

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit b8219cd3c6529f5c256b2273547a75949dafa053
parent 78c28114203a60bde766c8d326f5229c07c64b55
Author: David Freifeld <freifeld.david@gmail.com>
Date:   Fri, 26 Jun 2020 12:43:10 -0700

Adding more general parallel network array

Diffstat:
Amr_bpnn.cpp | 15+++++++++++++++
Mutils.cpp | 8+-------
2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/mr_bpnn.cpp b/mr_bpnn.cpp @@ -0,0 +1,15 @@ +#include "bpnn.hpp" +#include "utils.hpp" + +class ParallelNetwork : Network +{ +public: + std::function<pair*(pair)> map; + std::function<pair*(pair*)> reduce; + // See if this compiles. +}; + +int main() +{ + return 0; // Wow. +} diff --git a/utils.cpp b/utils.cpp @@ -66,14 +66,8 @@ uintmax_t wc(char const *fname) exit(1); if (!bytes_read) break; - char* prevp; for(char *p = buf; (p = (char*) memchr(p, '\n', (buf + bytes_read) - p)); ++p) { - if (lines > 1) { - for (in i = 0; p+i < prevp; i++) { - printf("START%sEND\n", p+i); - } - } - prevp = p; + printf("START%sEND\n", p); ++lines; } }