Re: [eigen] array slicing/range |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] array slicing/range
- From: Rohit Garg <rpg.314@xxxxxxxxx>
- Date: Fri, 5 Feb 2010 18:56:23 +0530
- 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 :from:date:message-id:subject:to:content-type; bh=oxIJkCCSdMLXX/BwDpI81ijDzDLlAXJX8dAKOFCNJ4c=; b=Rf1tEyXqmIAvV0eHWWjMOfr48us+ktApKRpRujGbSoj27Q9N4PPkx5jDxGqk1bl6XE US7qD/5LuQbBN/hf7iFFsK0s7SR+y5/u5XqEsvQ7qHGyLNUnEBFALsUYxZk64uNB1PmI K/QMA/RoLg0z5w3mBvvlYktEyQmMjyjvEDjDE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Cm6E+Yc+u6D1KRGRb8esmYGfKEriUvXmbkazPNDo58No62yRJIO7n9GLF8ZouLgNho DM3+z2c02dwU4Hh0mexp065iOxYBbpXVXiYbGGJbjmvMt6qbr6ox3heh5ZLBNqyg4YQz 7+RZYDllXF9ZE52w4C2z9OrOnlg5XIR9R+gMc=
Seriously,
why do you want to hack the fortran syntax into eigen? What's the upside?
On Fri, Feb 5, 2010 at 4:23 PM, Jinglei Hu <jingleihu@xxxxxxxxx> wrote:
> Hi guys,
>
> I knew from the Eigen developer that one can use array.segment(i, j) to get
> slice of an array. I'm wondering if it's possible to use array(i:j) to get
> slice just like Fortran.
>
> Cheers,
> Jinglei
>
>
>
--
Rohit Garg
http://rpg-314.blogspot.com/
Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay