Re: [eigen] Re: yet another deep change wrt storage orders... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Re: yet another deep change wrt storage orders...
- From: Márton Danóczy <marton78@xxxxxxxxx>
- Date: Fri, 2 Jul 2010 12:07:17 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=gbZTnDdoZxxjrRiic6jEnPK8896AdSt5bswS389ec9o=; b=hZaryA2cJ6FfTb0AZswADrerFQlIadIKIlmG+iXxY7EwfScM6RQ0nnkaAjpwt1HzhD KsJjhrjL8PZK1vLtI8m2iyazmjlCXtc3wjAsIutjr4UJX98NrTssJG8wwqXH2NbAgTuM MP8zCgS5tNqq0Ui50s6HRML7KnucPKX2cop2I=
- 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:content-transfer-encoding; b=S8k9NzkWtEuxuOOvMpbQ5+EzVJKNau59hSQc+5g/TAsDEcLSr4hgj2cbBaoDR7VgEC Kl5EsCZUyX9cR4x5PRzL2wcNwDbA56cL9QKYqNcWzDQpNd3NI6b+H+qevr1d8vORsMET 7cACDyibLh6RD+lT3NryKzVge61TV1+87LpB4=
> The fix is to write:
>
> Array<Scalar, NCHAN, Dynamic, NCHAN==1 ? RowMajor : ColMajor,
> NCHAN, MAXDATA>
>
> I understand that you said that your code relies on the data being
> col-major, that's why in the above line I keep ColMajor as soon as
> NCHAN!=1. In the case NCHAN==1, you have a vector anyway, so the
> storage order is useless abstract nonsense, so it doesn't cost
> anything to call it RowMajor.
Great, this works, thanks Benoit!