Re: [eigen] Machine precision<> too coarse |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Machine precision<> too coarse
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 3 Feb 2009 19:36:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EjIZFCCL3RBOXwPe3Q7swRGg0XcAiDKKdVU1OYe29S8=; b=AKKaypcF/GJX9Tyv3PFwFe0/SEmggF8mNV9oxMaxhbCVG+NPk1PtPTnlTJFkQdVZ8y O5L866abN0FAtXhCYcfb86I6G4whOzl47Yb3OzOx7r7P5DYwlTK44uDtmG27lPcwLJ9f /nuZ3t0GM4W+MVH77qzW2PLIUcUdE555Gabp0=
- 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=BDwXJWjJETVV5A/KNmlLnSii9N90EbCnuIH/uKI4w3IINMzChdOm2k6irzhbcLDUSw l9jiRxN5Ga8ViltgwXa9UUUMv0WiI7aHihwAkTjt97XfOVyIk2O9xUR1cN9jMkw7K4D3 7Kny62PHOR5FVNybbrUR+vYhmpaMQeQkEU8S8=
2009/2/3 Keir Mierle <mierle@xxxxxxxxx>:
> Exactly. The user is the one who should make that choice. I have had cases
> where I was working near machine precision, and got slightly innaccurate
> results, but it was fine because I then pushed the values through a
> minimizer.
>
> If the matrix library had set a too-coarse precision then I couldn't have
> done this.
If you want we can allow the LU constructor to take an optional
precision parameter to override the default. That would make sense.
LU<MatrixXd> lu(m, prec);
result = lu.rank();
Benoit