Boost logo

Ublas :

Subject: Re: [ublas] Doc error in norm_2?
From: Umut Tabak (utabak_at_[hidden])
Date: 2009-01-29 09:36:50


Neal Becker wrote:
> Doc says:
> // norm_2 v = sqrt (sum (v [i] * v [i]))
> http://www.boost.org/doc/libs/1_37_0/libs/numeric/ublas/doc/vector_expression.htm#vector_expression
>
> Shouldn't that be sqrt(sum (|v[i]|**2)) ?
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
two mutual terms are multiplied if they are both negative they were
'abs'ed already I suppose...