Re: [eigen] On the implementation of STL iterator for Eigen::Matrix |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] On the implementation of STL iterator for Eigen::Matrix
- From: David Tellenbach <datell@xxxxxxxxxxxxx>
- Date: Wed, 3 Oct 2018 12:39:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1538563179; s=strato-dkim-0002; d=tellnotes.org; h=To:References:Message-Id:Reply-To:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=0JYXCT3DUbD0veOu+Dyabl827/4xJcH5DCpZVbulIdg=; b=dER/jiimh59fFyPP+MfQzBmJyvekURLYnd+UC9/uC0mXqg2YJdqRWwCEjkiaqo3hlu q8wcuyoSi6CK9YQsENYRkgh4WO82L714nrjMYLtgjIEiyWmxkzo10jKhBhXeE/I+UH9f IsWrHRUEpqFNotpzFCeAwbX11F4L5+YmcEAHQ4LaZ3oKET9WXZCkeoSIcp5sdo1j+ze0 MSR8goO1zocASzOr2yJFJwoQYg3utXsClbxidS6Llb0XRkrX/YgXWNm/P3WGDqzDcM2Y yHFcCyXdSGmhKPSUluZLdD85YrII6zr7lOq9FR3TqjVCb54sT33YpxKg8A3zWs0wgsRS qnRA==
Hi Gael,
thanks for the great work!
> for(auto x : A.rowwise()) { ... }
> On my side, I'm rather reading it as "iterate over all elements of A in row-major order",
Exactly what I was thinking and I would definitely have to consult the docs.
I guess
> for(auto x : A.allRows()) { … }
is okay but also not completely intuitive. Since something like
> for(auto x : A.rows()) { … }
would be the most intuitive, I really like Joseph's idea of using
something similar to
> for(auto x : A.irows()) { … }
Thanks,
David