Re: [eigen] 3 dimensional arrays |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] 3 dimensional arrays
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 29 Jun 2010 07:30:45 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xeHj7bsvRLubeDvHuS/Knt9Q6noF7rojYhpKXs4dVUY=; b=pF9GowB8IoVaoqc2LE0996ZDtHX+zTmo8tXgsl7oTj+dSt6JAccgvlNQyR0p+GtkuH w0LxS9YNfxm3Vedbo5tQRN7ilf3VGwD3NtC2igLO0ay/rFTxYsS570boSftHqVmbUAXI mZAXm2JTs94AksA75mNz6BlcokWLSe2vKPGus=
- 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=DfCge3Rfqq5BURkLaTqbbgsG3pAB+z8TYRKpSM22LGNVcMm1u6bJqExOza2tMbTP1I UObuBfCNjow9Yn55bZmUyzCflLhV4Ts58YpjxaZD34u17df8EERJTvjfvX2pdhwS/nOp PlpbvhQW5FqXw5pj06X3MqOjvXPV0FuE08f08=
It could be possible to add such features later, in a "tensor" module.
But Eigen is no direct replacement for Blitz++. The fact that a module
could be written later making it a suitable replacement, doesn't mean
you should hold your breath... what you seem to want is a
tensor/multidimarray library.
Benoit
2010/6/29 Mani chandra <mchandra@xxxxxxxxxx>:
> Nice. We really want to port our CFD code written using Blitz++ to Eigen
> and manipulating 3D arrays is essential. So I guess we wait then? With the
> 3D data structure that you are suggesting, can the arrays then be used just
> like 3D arrays?
>
> Mani
> On 06/29/2010 04:40 PM, Benoit Jacob wrote:
>>
>> 2010/6/29 Mani chandra<mchandra@xxxxxxxxxx>:
>>>
>>> Can one use Eigen to perform operations similar to Blitz++ on
>>> multidimensional arrays?
>>
>> Not currently. Eigen is definitely focused on the cases of 1D
>> (vectors) and 2D (matrices).
>>
>> However, as Hauke mentions (but his example is inside out :) ), we
>> support using Array as Scalar type, e.g.
>>
>> Matrix<ArrayXd, Dynamic, Dynamic>
>>
>> will give you a 3D data structure. Currently this isn't well
>> optimized, and we don't offer a tensor API, but both issues can be
>> overcome (the speed issue hopefully by the time 3.0 or 3.1 is
>> released, the tensor API would be a nice extension module).
>>
>> Benoit
>>
>>> Mani
>>> On 06/29/2010 01:12 PM, Hauke Heibel wrote:
>>>>
>>>> On Tue, Jun 29, 2010 at 9:23 AM, Mani chandra<mchandra@xxxxxxxxxx>
>>>> wrote:
>>>>>
>>>>> Any plans to support multi-dimensional arrays in Eigen in the future?
>>>>
>>>> Only to some extend. It is unlikely that you'll ever be seeing
>>>> constructors like
>>>>
>>>> ArrayXXXd m(rows,cols,slices)
>>>>
>>>> but we plan to support (maybe that is already partially working in the
>>>> development branch) so called "arrays of structures", i.e.
>>>>
>>>> Array<VectorXd, Rows, Cols>
>>>>
>>>> Our core devs, Benoit& Gael know more.
>>>>
>>>> - Hauke
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>
>