Re: [eigen] Index type for PermutationMatrix and Transpositions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Index type for PermutationMatrix and Transpositions
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 25 Jan 2011 07:54:46 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=j7GZLwgX7wKw9vqRJ7Uikmlx8W+eQ4vj6spHiUN5kpA=; b=TlZ/omCC2ws3rACeNCEs8T7dtaPdL4LjnAXx9Qht1k7BjNDnyNz/x6Ulq6nVGlOAMK KSKkQWC+WENNVT0ODK0F2pOthYjVLVOrKXTQNlg6YLq/R4TTzQATOia+w9/sh8hHZjso Ou0hHfuYHEbGqxIO18tBLMhMBeFGxb7dyZHvM=
- 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=e7/sdNxahNyKBHjc5U2EeCLUMqhWiz+5wyYS9oknnuiKcob7NyIq8pWKkpxqt5EfGm wLQRbPzRQdksjnmjFotkCIC1gdgQxVY4ZJ0dvuIvj8YGzxeD5qzvMgAJMBqLYsnFj+CO yM5lj7yPkqaRhEB9gqdl29jxedp0NJpw9dbME=
2011/1/25 Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>:
> On 25.01.2011 10:29, Helmut Jarausch wrote:
>> On 01/25/11 10:11:22, Gael Guennebaud wrote:
>>> Since it is unbelievable
>>> that one day someone will perform a LU or LDLT dec on a matrix
>>> requiring 64bits integers for the indices (think about the size of
>>> the
>>> matrix!), I think it is safe to use int there too.
>
> Just like 640k ought to be enough for everyone ;)
>
>> I agree for dense matrices, but a tridiagonal matrix of size 2^32
>> isn't out of range (IMHO). So the situation might be different for
>> sparse matrices - even in the near future.
>
> I agree on that. Why not make it default to MatrixType::Index and tell
> users to use an appropriate IndexType in the first place? This could be
> even smaller if the matrix never reaches sizes above 2^16 (2^15?).
I agree with Christian here. DenseIndex is the most sane defaut, and
let the user specify smaller integer types.
The problem with defaulting to int is that it is neither what dense
matrices use, nor the smallest integer type.
Benoit
>
> Christoph
>
> --
> ----------------------------------------------
> Dipl.-Inf. Christoph Hertzberg
> Cartesium 0.051
> Universität Bremen
> Enrique-Schmidt-Straße 5
> 28359 Bremen
>
> Tel: (+49) 421-218-64252
> ----------------------------------------------
>
>
>