Re: [eigen] New indexing/slicing API: almost ready to be merged |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] New indexing/slicing API: almost ready to be merged
- From: Gabriel Nützi <gnuetzi@xxxxxxxxx>
- Date: Thu, 12 Jan 2017 19:58:02 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=mlIGAw4FKUgrKVtmxZuaoAYTNYFgIOHXZhpxxbSyTFo=; b=Llns38w21dndVCYEwY13nnJVp0yvIKrNqNDOz0sLtkRlfNzSoTy9Gh1sMVm9TeCmZb RR2Ga0pV3oJ6YJXMX794skxk4EPCobFrj6osxk5l2ondzR+rJIu3Iawe9OSBJjXy85Eh IKkP6i5PHEWLL/eZNMoZwH8FUGbVPjm2g0n0/3q6Kh+FjQ2/KEo0aoDIsYgIamqkVKCZ FjCEi4az+nGz2rUydWm7hH6Hondswr2t0WJO1AUcUM1lyDKTylzX8UITf3/rQVTX4FGM bkw1MPMfBNE+KW0R9zOG2UW2szjXAzgij0TCQaJrBHgEKqFEGQKO+YKUNrQG4NvYlVf7 4QKg==
awesome work :-)
why not neglecting the braceless overloads and only allowing braces which makes it a bit more consistent.
I dont think there is much of an overhead in putting all into brackets…
by the way what type is {all} ? Is it an array of the type returned by „all“ with length 1?
cheers gabriel
> Am 12.01.2017 um 10:34 schrieb Massimiliano Janes <max.jns@xxxxxxxxx>:
>
>
>> On 11 Jan 2017, at 22:13, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:
>>
>> However I don't see how to generalize it to multi-dimensional tensors
>
> a workaround could be requiring users to wrap *all* arguments into braces in this case:
>
> A( {all}, {1,2,3} )
> A( {1,2,3}, { all }, {5,6,7}, { seq(2,4) } )
>
> eventually providing braceless overloads only for <=2d
>
>
>
>