Re: Return type of 'mean_square'

Nasos Iliopoulos <[email protected]>
Newsgroups gmane.comp.lib.boost.ublas
Message-ID <[email protected]>
I was debating this myself. I think converting to double is a good idea.

-Nasos

you cast the type do double before.

On 08/10/2015 11:40 AM, Joaquim Duran Comas wrote:
> Hello,
>
> Few days ago, I patched the function 'mean_square' for vectors and 
> matrices. Currently, the current return type of the function is 
> AE::value_type. To get better accuracy, is it better return double 
> type than AE::value_type (specially if it is an integuer)?
>
> Joaquim Duran
>
>
>
> _______________________________________________
> ublas mailing list
> [email protected]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.