Merge pull request #123 from argriffing/remove-arb-vec-norm

MAINT: remove _arb_vec_norm which did not actually compute a norm
This commit is contained in:
Fredrik Johansson 2016-04-05 21:15:16 +02:00
commit 22928dc878
2 changed files with 0 additions and 13 deletions

9
arb.h
View file

@ -894,15 +894,6 @@ _arb_vec_dot(arb_t res, arb_srcptr vec1, arb_srcptr vec2, slong len2, slong prec
arb_addmul(res, vec1 + i, vec2 + i, prec);
}
ARB_INLINE void
_arb_vec_norm(arb_t res, arb_srcptr vec, slong len, slong prec)
{
slong i;
arb_zero(res);
for (i = 0; i < len; i++)
arb_addmul(res, vec + i, vec + i, prec);
}
ARB_INLINE void
_arb_vec_get_mag(mag_t bound, arb_srcptr vec, slong len)
{

View file

@ -1558,10 +1558,6 @@ Vector functions
Sets *res* to the dot product of *vec1* and *vec2*.
.. function:: void _arb_vec_norm(arb_t res, arb_srcptr vec, slong len, slong prec)
Sets *res* to the dot product of *vec* with itself.
.. function:: void _arb_vec_get_mag(mag_t bound, arb_srcptr vec, slong len, slong prec)
Sets *bound* to an upper bound for the entries in *vec*.