This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void square(std::vector<double>& v) | |
{ | |
std::transform(v.begin(), v.end(), v.begin(), [](double d) { return d*d; }); | |
} | |
double rms(std::vector<double>& v) | |
{ | |
square(v); | |
double the_mean = mean(v); | |
double the_rms = std::sqrt(the_mean); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enp100s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | |
inet 10.168.49.139 netmask 255.255.255.0 broadcast 10.168.49.255 | |
inet6 fe80::7e31:2284:8ad9:49b4 prefixlen 64 scopeid 0x20<link> | |
ether 48:21:0b:3b:f3:b1 txqueuelen 1000 (Ethernet) | |
RX packets 174145753 bytes 16889393578 (16.8 GB) | |
RX errors 0 dropped 63325674 overruns 0 frame 0 | |
TX packets 3578816 bytes 833663340 (833.6 MB) | |
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | |
device memory 0x84200000-842fffff |