Re: [eigen] Eigen Internals |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] Eigen Internals*From*: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>*Date*: Thu, 8 Mar 2018 17:44:57 +0100*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=FRWArtYC9N8IG+osNnL/agqlXVetkdOCYn8RYh32xEg=; b=aChbokGgbOdms+6MLYrY77AvJ8ybbejpq9uTD3erTVqNqqHFqRe/0FIXmMukf1vrmU pZFWJbzj5RPjkiJ5h3iRjzufdisPIzV1JcaOLPnqZkE8pie0Cj7Lprtd+TX+y8UA/TPR hWahoXr0NdK6S6CiNWSl1eCsFDQRFWXVi2FbCUcaHs9H5iflnjzBZqIgTydkXh1qj2ir rFO7jPmBUz9ShhlvJt21L7NJT39EBbOeTjylNFZ1Jj7KZpvPs5NDKYuo/sU+MCbXlhH4 fIWIFiv1VnGZc5iHcAxW7BzBHINfQ7qRW3iRnzz39JB9QqjZP9CvFu5JQefzHgNOb8y5 Jhhw==

Hi,

that's a though question! Which part do you want to learn?

Anyhow, a good start could be to run step by step in a debugger the following code:

#define EIGEN_DONT_VECTORIZE

#include <Eigen/Core>

using namespace Eigen;

int main() {

int n = 5;

VectorXd A(n), B(n), C(n);

A = B+C;

}

This will show you what is returned by A+B, and how this simple _expression_ is evaluated. You can comment #define EIGEN_DONT_VECTORIZE to see how explicit vectorization is accomplished or try more fancy expressions.

gael

On Wed, Mar 7, 2018 at 8:07 PM, Mayank Agarwal <mayank007.win@xxxxxxxxx> wrote:

Hi,I have been going through the core Eigen folder. I am really confused about the starting point of it all as from which header file I should start understanding the Eigen internals and function definitions.Thank You,Mayank

**Follow-Ups**:**Re: [eigen] Eigen Internals***From:*Mayank Agarwal

**References**:**[eigen] Eigen Internals***From:*Mayank Agarwal

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] using views for symmetric matricies** - Next by Date:
**Re: [eigen] using views for symmetric matricies** - Previous by thread:
**[eigen] Eigen Internals** - Next by thread:
**Re: [eigen] Eigen Internals**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |