This commit is contained in:
sprague_rick 2024-09-08 02:10:41 -04:00
parent bb2378d54e
commit ea9ec684ef
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@ filename="${filename%.*}"
mkdir -p "build/$filename"
# Compile the C++ file
g++ -o "build/$filename/$filename" "$1"
g++ -I /usr/include/eigen3 -o "build/$filename/$filename" "$1"
# Check if the compilation was successful
if [ $? -eq 0 ]; then

View File

@ -5,10 +5,14 @@
#include <unordered_map>
#include <vector>
#include <Eigen/Dense>
using std::cout;
using std::endl;
int main(int argc, char* argp[]) {
Eigen::Vector2d X = Eigen::Vector2d::Ones();
cout << "X: " << X.transpose() << endl;
int counter = 0;
int b = 10;
int x= 10;