Re: [eigen] Specializing max_coeff_visitor for some number types

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


On 07.04.2014 16:23, Christoph Hertzberg wrote:
Hm, well the question is for a matrix, e.g.,
   [ (1,1)  row1 ]
   [ (2,20) row2 ]
whether
   row2 - (2,20)/(1,1) * row1
or
   row1 - (1,1)/(2,20) * row2
is better (simplified example). [...]

Using the interval length of x/y vs y/x as a metric, it turns out that using the element for which x.lowerBound*x.upperBound is biggest should be the best choice (this even elegantly handles the case of different signed lower/upper bounds which should never be used as pivot).

Christoph


--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/