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...

Комментарии • 28

  • @aleksandarhaber
    @aleksandarhaber  Год назад +6

    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

  • @aleksandarhaber
    @aleksandarhaber  Год назад +1

    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.

  • @aleksandarhaber
    @aleksandarhaber  Месяц назад

    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
    @aleksandarhaber  Год назад +2

    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

  • @rushskill3518
    @rushskill3518 2 месяца назад +1

    Thank you dude you are a hero

  • @JAADAAZ
    @JAADAAZ 2 месяца назад +1

    Thank you, sir!

  • @user-jo1gg3tz9q
    @user-jo1gg3tz9q Год назад +5

    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.

    • @aleksandarhaber
      @aleksandarhaber  Год назад +1

      Are you using the same compiler? Did u install the microsoft visual studio compiler? Every compiler has different setup options

    • @neverix_3600
      @neverix_3600 Год назад +8

      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

    • @aleksandarhaber
      @aleksandarhaber  Год назад +1

      @@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.

    • @gtorres94
      @gtorres94 11 месяцев назад

      @@neverix_3600 thank you, this helped a lot

    • @corneliuslouisnathan3949
      @corneliuslouisnathan3949 9 месяцев назад

      ​@@neverix_3600still not work unfortunately for me, any reccomendation?

  • @nagarjunvinukonda162
    @nagarjunvinukonda162 Год назад +1

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

    • @aleksandarhaber
      @aleksandarhaber  Год назад +1

      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.

  • @rezarashidy5045
    @rezarashidy5045 7 месяцев назад +1

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

  • @bachirdekdouk5440
    @bachirdekdouk5440 5 месяцев назад

    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

    • @aleksandarhaber
      @aleksandarhaber  5 месяцев назад

      Except for providing these free tutorials, we cannot answer questions.

    • @aleksandarhaber
      @aleksandarhaber  5 месяцев назад

      Besides providing free tutorials, we cannot answer questions.