Tim Murray | eee2fd8 | 2022-11-04 14:46:25 -0700 | [diff] [blame] | 1 | #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 | |
| 21 | using namespace std; |
| 22 | |
| 23 | int 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 | } |