Intro to Eigen C++ Matrix Library in VS Code - PART I - Installation and Basic Usage
HTML-код
- Опубликовано: 21 авг 2024
- #cpp #programming #controlengineering #mechatronics #numerical #linearalgebra #machinelearning #electricalengineering #optimization #vscode
It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way:
- Buy me a Coffee: www.buymeacoff...
- PayPal: www.paypal.me/...
- Patreon: www.patreon.co...
- You Can also press the Thanks RUclips Dollar button
In this video tutorial, we explain how to
(1) Install Eigen C++ library in VS Code
(2) How to define matrices in VS Code
Here are additional videos mentioned in this video tutorial
(1) How to install Eigen C++ in Microsoft Visual Studio
• Intro to Eigen C++ Mat...
(2) How to install and setup VS code:
• Install VS Code - Visu...
It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way:
- Buy me a Coffee: www.buymeacoffee.com/AleksandarHaber
- PayPal: www.paypal.me/AleksandarHaber
- Patreon: www.patreon.com/user?u=32080176&fan_landing=true
- You Can also press the Thanks RUclips Dollar button
BEFORE WATCHING THIS VIDEO:
(1) MAKE SURE THAT YOU HAVE INSTALLED MICROSOFT VISUAL STUDIO COMMUNITY EDITION (FREE VERSION). BY INSTALLING THIS PROGRAM, YOU WILL ALSO INSTALL THE C++ COMPILER AND THE DEVELOPER COMMAND PROMPT. THIS VIDEO TUTORIAL IS BASED ON THE MICROSOFT VISUAL STUDIO C++ COMPILER.
(2) WATCH THE VIDEO GIVEN BELOW TO PROPERLY INSTALL AND SETUP THE VS CODE EDITOR:
ruclips.net/video/2KGM3-r8eK8/видео.html
(3) DO NOT SKIP THE STEPS EXPLAINED IN THIS VIDEO. YOU HAVE TO WATCH THE COMPLETE VIDEO IN ORDER TO PROPERLY INSTALL EIGEN LIBRARY.
THIS COMMENT section is NOT a forum, where we provide free answers to your questions. All we can do is to provide these free tutorials. We cannot answer particular questions due to the lack of time and energy, and also, we do NOT provide free consultation.
Here are additional videos mentioned in this video tutorial
(1) How to install Eigen C++ in Microsoft Visual Studio
ruclips.net/video/XmtNr1TuO-E/видео.html
(2) How to install and setup VS code:
ruclips.net/video/2KGM3-r8eK8/видео.html
Thank you dude you are a hero
Glad it helps!
Thank you, sir!
glad it helps!
I added the "-I xxx/eigenPath" in the file and added eigenPath int the c_cpp_properties.json file [includePath] as the tutorial said, there was an error about "#include " : 'Eigen/Dense' file not found. I tried many times and the result was the same.
Are you using the same compiler? Did u install the microsoft visual studio compiler? Every compiler has different setup options
Silly to reply after 2weeks but, accidently solved it for me so ill mention it, u must not put a space after "-I"
for example:
"-IC:/Libraries/eigen-3.4.0/" works
"-I C:/Libraries/eigen-3.4.0/" does not work
@@neverix_3600 Thank you very much for sharing since other people will most likely encounter these problems. Small typos are usually the ones that are the most difficult to find.
@@neverix_3600 thank you, this helped a lot
@@neverix_3600still not work unfortunately for me, any reccomendation?
I do have vs code installed in my system. But I don't have developer command prompt.
First, watch this video: 2) How to install and setup VS code:
ruclips.net/video/2KGM3-r8eK8/видео.html
There you will learn that you need a C++ compiler in the VS code. I am using the free Microsoft Visual Studio C++ Compiler that comes with the Microsoft Visual Studio Free Community Edition. After you install the Microsoft Visual Studio, you will see the development environment from where you need to start your VS Code editor.
how can I install eigen c++ in vscode in ubunto?
We will cover that in the future.
Hi Aleksander. Thanks for nice intro. Have a question pls. How to loop over 2d slices of 3 dimensional matrices. for example in matlab. a = zeros(2,2,2), b = ones(2,2), for i = 1:2 a(:,:,i) = b end. What would be the most efficient and user friendly way to implrment this in C++ using eigen. I tried using Tensor, but I got lost with the approach of using indices and offsets. Thanks in advance
Except for providing these free tutorials, we cannot answer questions.
Besides providing free tutorials, we cannot answer questions.