[vtkusers] matrix output VERY hard to read

David Doria daviddoria+vtk at gmail.com
Mon Oct 12 11:37:14 EDT 2009


On Fri, Sep 18, 2009 at 1:42 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> I will often output a matrix that looks like this:
>
> 1 -4.12726e-10 3.91703e-10 5.2556e-12
> 4.12726e-10 1 7.75407e-10 -7.62694e-10
> -3.91703e-10 -7.75407e-10 1 7.57439e-10
> 0 0 0 1
>
> Can you tell what it is?! It's a 4x4 identity matrix! Clearly there is
> nothing that can be done about the floating point precision, but maybe a few
> setw()'s can be added or something to clean this up so at least it appears
> to have a 4x4 structure - and the widths of each column could be the same no
> matter how many significant digits that entry contains.
>
> Is this feature request-worthy?
>
> Thanks,
>
> David
>

Any comments on this?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091012/0ee8eeca/attachment.htm>


More information about the vtkusers mailing list