Intro to Eigen C++ Matrix Library in VS Code - PART I - Installation and Basic Usage

preview_player
Показать описание
#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:
- You Can also press the Thanks YouTube 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
(2) How to install and setup VS code:
Рекомендации по теме
Комментарии
Автор

It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way:
- You Can also press the Thanks YouTube Dollar button

aleksandarhaber
Автор

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:
(3) DO NOT SKIP THE STEPS EXPLAINED IN THIS VIDEO. YOU HAVE TO WATCH THE COMPLETE VIDEO IN ORDER TO PROPERLY INSTALL EIGEN LIBRARY.

aleksandarhaber
Автор

I added the "-I xxx/eigenPath" in the file <tasks.json> and added eigenPath int the c_cpp_properties.json file [includePath] as the tutorial said, there was an error about "#include <Eigen/Dense>" : 'Eigen/Dense' file not found. I tried many times and the result was the same.

xingliu-fh
Автор

I do have vs code installed in my system. But I don't have developer command prompt.

nagarjunvinukonda
Автор

how can I install eigen c++ in vscode in ubunto?

rezarashidy
Автор

Here are additional videos mentioned in this video tutorial
(1) How to install Eigen C++ in Microsoft Visual Studio
(2) How to install and setup VS code:

aleksandarhaber
Автор

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

bachirdekdouk
Автор

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.

aleksandarhaber