update
This commit is contained in:
parent
bb2378d54e
commit
ea9ec684ef
|
|
@ -13,7 +13,7 @@ filename="${filename%.*}"
|
||||||
mkdir -p "build/$filename"
|
mkdir -p "build/$filename"
|
||||||
|
|
||||||
# Compile the C++ file
|
# 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
|
# Check if the compilation was successful
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,14 @@
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <Eigen/Dense>
|
||||||
|
|
||||||
using std::cout;
|
using std::cout;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
int main(int argc, char* argp[]) {
|
int main(int argc, char* argp[]) {
|
||||||
|
Eigen::Vector2d X = Eigen::Vector2d::Ones();
|
||||||
|
cout << "X: " << X.transpose() << endl;
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
int b = 10;
|
int b = 10;
|
||||||
int x= 10;
|
int x= 10;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user