Re: [eigen] default printing format

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


2009/8/13 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Hi,
>
> Do you think that the default IOFormat should have alignment enabled,
> so that cout << matrix has aligned columns?
> Pro: looks much better
> Con: takes 2x more time, is useless when outputting to a file that's
> not meant to be read by a human

I think that should be the default. The most common use of cout is
probably debugging/logging/something else that is meant to be read by
a human. If you need to write a non-human-readable matrix really
quickly I think most people would use a binary format...

> While i'm here, here's another request i've received: that the default
> precision be full precision (e.g. 16 digits for double). Here i have a
> rather strong opinion against this, because the correct way to achieve
> this IMO is to set the stream's precision, so that not only Eigen
> matrices but all numbers use that precision. But i still wanted to run
> this request through this list in case I missed something.

I agree, for the same reason as above.



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