blob: 3add21fbdd11d2b53da83347302e6c05148e392b [file] [log] [blame]
Tim Murrayeee2fd82022-11-04 14:46:25 -07001#include <arpa/inet.h>
2#include <cutils/sockets.h>
3#include <fcntl.h>
4#include <hardware/gralloc.h>
5#include <sys/stat.h>
6#include <sys/wait.h>
7#include <unistd.h>
8#include <algorithm>
9#include <chrono>
10#include <fstream>
11#include <iostream>
12#include <numeric>
13#include <string>
14#include <tuple>
15#include <vector>
16
17#define EIGEN_RUNTIME_NO_MALLOC
18
19#include <Eigen/Dense>
20
21using namespace std;
22
23int main(int, char**) {
24 Eigen::MatrixXd a(8192, 8192);
25 Eigen::MatrixXd b(8192, 8192);
26 Eigen::MatrixXd c(8192, 8192);
27
28 for (int i = 0; i < 8192; i++) {
29 for (int j = 0; j < 8192; j++) {
30 a(i, j) = 1 + i * j;
31 b(i, j) = 2 + i * j;
32 c(i, j) = 3 + i * j;
33 }
34 }
35
36 cout << "starting" << endl;
37 while (true) {
38 a.noalias() += (b * c);
39 b(1, 5) += 5.0;
40 c(5, 1) -= 5.0;
41 }
42
43 return 0;
44}