Re: [eigen] Iterators with dense matrices: (was: Areas of eigen3 variation and using eigen2/3 in generic code) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Iterators with dense matrices: (was: Areas of eigen3 variation and using eigen2/3 in generic code)
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 4 Jan 2010 21:31:10 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=4gAclQ9ACi+/5TzX1bC20cmR9g5soG/JlUqH0XMD8wI=; b=pew8qRqZgDeP+xoooxJi00DFZQgiNdwkDcpLtwnKogIfMjAau9Ko/CfuQ7wk43PCvb n1kTUuk/2zVFQhj4DoUsOW4Z9SqZ4NTjl3TrV+ddzmXsrypFYxaDaPrF3pVZ6S9h5fMq kHwnUqtnKL7Jk/UFhymSC/RbgirmO9w25GOkQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BbUVRxS9vVxGVQ3xHZFs7rlw+dYQ06Fiea0BhKOHV/tkcQpZRq91Danai5HjGqsdmz qg7FochHxDcFnTsRro+GvoF9p/w/IEtL/6xJpjCRifRl7aigjV6jxIuOBFR4jQ9bY9CQ mm5cJ4X3D9+t7jlDF4ZC7yMFWlp3WIlh1LgnI=
Hi,
I have done the renaming, so the names begin() and end() are now free
for you to use for iterators!
Side note: sed's syntax is *really* strange. I spent a ridiculous
amount of time getting it just 90% automated.
Benoit
2010/1/4 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Hi,
>
> Thanks for sharing all these thoughts. I put a few comments below.
>
> Later today I will do the renaming, making it possible to add proper
> iterators support with begin()/end(). But, as Hauke mentions, we are
> currently in a rush to prepare Eigen 3.0 and we can't afford to
> prioritize iterators at the moment. Also, as I mentioned above, once
> this renaming is done, nothing prevents you from adding iterators
> yourself, even without patching eigen at all:
>
> http://eigen.tuxfamily.org/dox/CustomizingEigen.html#ExtendingMatrixBase
>
> 2010/1/4 Jesse Perla <jesseperla@xxxxxxxxx>:
>> 3) Cursors for Sparse Matrices
>> This is getting above my pay grade... I hope Paul or someone who does a lot
>> of sparse algorithms can correct it.
>> Where cursors/iterators are essential is with sparse algorithms. The reason
>> is that you need to go through only the non-zero elements.
>
> We already have this, Gael who wrote the Sparse module based it
> completely on iterators.
>
>> 4) Iterators for Matrices and Tensors
>> Assuming that Eigen moves towards having multidimensional structures,
>
> In fact, Eigen is completely specialized to 1D (Vectors) and 2D
> (matrices). Given how hard the 2D case already is to optimize, and
> given how convenient it is to be able to completely specialize the API
> on these cases, we don't plan to support higher-dimensional arrays.
>
> Benoit
>