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: Aron Ahmadia <aja2111@xxxxxxxxxxxx>
- Date: Fri, 5 Feb 2010 16:32:06 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=U/dtwYa9TwdW9bwkp9rTMcM7pe2q8dL0W5riq9u8yFM=; b=hPsexySgRrT4uD3oBoGsO2qYCWl5Hf5QpbN5a8nAag86ROnyi/I19tBUJq7zt9WQSf +3xDCUTK1Qkqt4u0jtNQx0bjuZWWucFG8ZIn0z5ZHVpM3J7eoF8eQlaYKbGcYespbZt9 LZwqDif7KTqmo6Xu558iztbXoP9DXwocjQxOo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=Gpvs0A3feDIM7Pnlorc03P70ydZo/4mR6vdX+/G4ICqUMQwLWfyuq54bZQrluHf6sz JE7AeNlZi59IrP4GXhQqqUha22XNLiccneaF35qB8Q4994VZ9X/XK4LLXEniKcN+t3oM ncu4Mgl7xXOJCW+ecx0eOu8Yk6qELMRtYdjcU=
The Fortran/MATLAB syntax has the advantage of being incredibly terse.
I come from a MATLAB background, and I strongly appreciate the way
linear algebra routines look in MATLAB/Fortran as opposed to other
languages. It would be fun to come up with a preprocessor that does
what Jinglei is asking, but I don't think any of us have that kind of
time :)
A
On Fri, Feb 5, 2010 at 4:26 PM, Rohit Garg <rpg.314@xxxxxxxxx> wrote:
> 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
>
>
>