Re: [eigen] Undesired formatting behaviour |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Undesired formatting behaviour*From*: Johan Pauwels <johan.pauwels@xxxxxxxxxxxxx>*Date*: Wed, 25 Feb 2009 11:47:18 +0100

Gael Guennebaud wrote:

What I consider an inconsistency is that you use the IOFormat class at all to define the precision, since you still are dependent on the floatfield flag of the stream to use the precision you define in IOFormat. I mean, you still need to write cout << fixed << matrix; before the precision gets used with floats for example. Either you define all the formatting behaviour in the IOFormat class and inhibit the effects of the ostream flags or you read all ostream flags and act accordingly (where I'd prefer the latter). The AlignCols flag has added value compared to a simple width(x), so to put that into IOFormat makes sense to me in both cases.the main goal of the current design was to be able to define a format object once and use it many times. This is why all options are encapsulated in IOFormat.

Either way, a trivial feature request is that I'd like setters for the variables in IO Format such that you can initialise with the default IOFormat() format; and just change the one variable you want with format.setRowPrefix = "pre"; for example.no problem to add such setters, a patch would be very much appreciated ;)

A last, completely unrelated thing is that I can find how to take the sum of a matrix, but not the product of the matrix. It could be that I'm looking over it, but if not, it's another feature request.in svn trunk we have the prod() function which does exactly that.

Great. Kind regards, Johan Pauwels

**References**:**[eigen] Undesired formatting behaviour***From:*Johan Pauwels

**Re: [eigen] Undesired formatting behaviour***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Fast QR for 2x2, 3x3** - Next by Date:
**Re: [eigen] Levenberg-marquardt and dogleg minimizer** - Previous by thread:
**Re: [eigen] Undesired formatting behaviour** - Next by thread:
**[eigen] Proposal: optimal return by value**

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